Class WAGoogleMfaAuthCredentialRepository

  • All Implemented Interfaces:
    org.apereo.cas.otp.repository.credentials.OneTimeTokenCredentialRepository

    public class WAGoogleMfaAuthCredentialRepository
    extends org.apereo.cas.gauth.credential.BaseGoogleAuthenticatorTokenCredentialRepository
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static Logger LOG  
      protected WARestClient waRestClient  
      • Fields inherited from class org.apereo.cas.gauth.credential.BaseGoogleAuthenticatorTokenCredentialRepository

        googleAuthenticator
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long count()  
      long count​(String username)  
      void delete​(long id)  
      void delete​(String username)  
      void deleteAll()  
      org.apereo.cas.authentication.OneTimeTokenAccount get​(long id)  
      Collection<? extends org.apereo.cas.authentication.OneTimeTokenAccount> get​(String username)  
      org.apereo.cas.authentication.OneTimeTokenAccount get​(String username, long id)  
      Collection<? extends org.apereo.cas.authentication.OneTimeTokenAccount> load()  
      protected org.apereo.cas.gauth.credential.GoogleAuthenticatorAccount mapGoogleMfaAuthAccount​(GoogleMfaAuthAccount gmfaa)  
      protected GoogleMfaAuthAccount mapOneTimeTokenAccount​(org.apereo.cas.authentication.OneTimeTokenAccount otta)  
      org.apereo.cas.authentication.OneTimeTokenAccount save​(org.apereo.cas.authentication.OneTimeTokenAccount otta)  
      org.apereo.cas.authentication.OneTimeTokenAccount update​(org.apereo.cas.authentication.OneTimeTokenAccount tokenAccount)  
      • Methods inherited from class org.apereo.cas.gauth.credential.BaseGoogleAuthenticatorTokenCredentialRepository

        create, getGoogleAuthenticator
      • Methods inherited from class org.apereo.cas.otp.repository.credentials.BaseOneTimeTokenCredentialRepository

        decode, decode, encode
    • Field Detail

      • LOG

        protected static final Logger LOG
    • Constructor Detail

      • WAGoogleMfaAuthCredentialRepository

        public WAGoogleMfaAuthCredentialRepository​(WARestClient waRestClient,
                                                   com.warrenstrange.googleauth.IGoogleAuthenticator googleAuthenticator)
    • Method Detail

      • mapGoogleMfaAuthAccount

        protected org.apereo.cas.gauth.credential.GoogleAuthenticatorAccount mapGoogleMfaAuthAccount​(GoogleMfaAuthAccount gmfaa)
      • get

        public org.apereo.cas.authentication.OneTimeTokenAccount get​(long id)
      • get

        public org.apereo.cas.authentication.OneTimeTokenAccount get​(String username,
                                                                     long id)
      • get

        public Collection<? extends org.apereo.cas.authentication.OneTimeTokenAccount> get​(String username)
      • load

        public Collection<? extends org.apereo.cas.authentication.OneTimeTokenAccount> load()
      • mapOneTimeTokenAccount

        protected GoogleMfaAuthAccount mapOneTimeTokenAccount​(org.apereo.cas.authentication.OneTimeTokenAccount otta)
      • save

        public org.apereo.cas.authentication.OneTimeTokenAccount save​(org.apereo.cas.authentication.OneTimeTokenAccount otta)
      • update

        public org.apereo.cas.authentication.OneTimeTokenAccount update​(org.apereo.cas.authentication.OneTimeTokenAccount tokenAccount)
      • deleteAll

        public void deleteAll()
      • delete

        public void delete​(String username)
      • delete

        public void delete​(long id)
      • count

        public long count()
      • count

        public long count​(String username)