Package org.apereo.cas.gauth.credential
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
ConstructorsConstructorDescriptionMongoDbGoogleAuthenticatorTokenCredentialRepository(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 TypeMethodDescriptionlongcount()longvoiddelete(long id) voidvoidorg.apereo.cas.authentication.OneTimeTokenAccountget(long id) Collection<? extends org.apereo.cas.authentication.OneTimeTokenAccount> org.apereo.cas.authentication.OneTimeTokenAccountorg.springframework.data.mongodb.core.MongoOperationsCollection<? extends org.apereo.cas.authentication.OneTimeTokenAccount> load()org.apereo.cas.authentication.OneTimeTokenAccountsave(org.apereo.cas.authentication.OneTimeTokenAccount account) toString()org.apereo.cas.authentication.OneTimeTokenAccountupdate(org.apereo.cas.authentication.OneTimeTokenAccount account) Methods inherited from class org.apereo.cas.gauth.credential.BaseGoogleAuthenticatorTokenCredentialRepository
create, getGoogleAuthenticator
-
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
-
get
-
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
-
delete
public void delete(long id) -
count
public long count() -
count
-
toString
-
getMongoTemplate
public org.springframework.data.mongodb.core.MongoOperations getMongoTemplate() -
getCollectionName
-