Class MongoDbGoogleAuthenticatorTokenCredentialRepository

java.lang.Object
org.apereo.cas.otp.repository.credentials.BaseOneTimeTokenCredentialRepository
org.apereo.cas.gauth.credential.BaseGoogleAuthenticatorTokenCredentialRepository
org.apereo.cas.gauth.credential.MongoDbGoogleAuthenticatorTokenCredentialRepository
All Implemented Interfaces:
org.apereo.cas.otp.repository.credentials.OneTimeTokenCredentialRepository

public class MongoDbGoogleAuthenticatorTokenCredentialRepository extends org.apereo.cas.gauth.credential.BaseGoogleAuthenticatorTokenCredentialRepository
Since:
5.0.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    MongoDbGoogleAuthenticatorTokenCredentialRepository(com.warrenstrange.googleauth.IGoogleAuthenticator googleAuthenticator, org.springframework.data.mongodb.core.MongoOperations mongoTemplate, String collectionName, org.apereo.cas.util.crypto.CipherExecutor<String,String> tokenCredentialCipher, org.apereo.cas.util.crypto.CipherExecutor<Number,Number> scratchCodesCipher)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
    long
    count(String username)
     
    void
    delete(long id)
     
    void
    delete(String username)
     
    void
     
    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)
     
     
    org.springframework.data.mongodb.core.MongoOperations
     
    Collection<? extends org.apereo.cas.authentication.OneTimeTokenAccount>
     
    org.apereo.cas.authentication.OneTimeTokenAccount
    save(org.apereo.cas.authentication.OneTimeTokenAccount account)
     
     
    org.apereo.cas.authentication.OneTimeTokenAccount
    update(org.apereo.cas.authentication.OneTimeTokenAccount account)
     

    Methods inherited from class org.apereo.cas.gauth.credential.BaseGoogleAuthenticatorTokenCredentialRepository

    create, getGoogleAuthenticator

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MongoDbGoogleAuthenticatorTokenCredentialRepository

      public MongoDbGoogleAuthenticatorTokenCredentialRepository(com.warrenstrange.googleauth.IGoogleAuthenticator googleAuthenticator, org.springframework.data.mongodb.core.MongoOperations mongoTemplate, String collectionName, org.apereo.cas.util.crypto.CipherExecutor<String,String> tokenCredentialCipher, org.apereo.cas.util.crypto.CipherExecutor<Number,Number> scratchCodesCipher)
  • Method Details

    • 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()
    • save

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

      public org.apereo.cas.authentication.OneTimeTokenAccount update(org.apereo.cas.authentication.OneTimeTokenAccount account)
    • 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)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getMongoTemplate

      public org.springframework.data.mongodb.core.MongoOperations getMongoTemplate()
    • getCollectionName

      public String getCollectionName()