public abstract class BaseJsonOneTimeTokenCredentialRepository extends BaseOneTimeTokenCredentialRepository
| Constructor and Description |
|---|
BaseJsonOneTimeTokenCredentialRepository(org.springframework.core.io.Resource location,
org.apereo.cas.CipherExecutor<java.lang.String,java.lang.String> tokenCredentialCipher) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteAll()
Delete all tokens in the repository.
|
org.apereo.cas.authentication.OneTimeTokenAccount |
get(java.lang.String username)
Gets secret.
|
void |
save(java.lang.String userName,
java.lang.String secretKey,
int validationCode,
java.util.List<java.lang.Integer> scratchCodes)
Save.
|
org.apereo.cas.authentication.OneTimeTokenAccount |
update(org.apereo.cas.authentication.OneTimeTokenAccount account)
Update an existing account.
|
decode, encodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatepublic BaseJsonOneTimeTokenCredentialRepository(org.springframework.core.io.Resource location,
org.apereo.cas.CipherExecutor<java.lang.String,java.lang.String> tokenCredentialCipher)
public org.apereo.cas.authentication.OneTimeTokenAccount get(java.lang.String username)
OneTimeTokenCredentialRepositoryusername - the usernamepublic void save(java.lang.String userName,
java.lang.String secretKey,
int validationCode,
java.util.List<java.lang.Integer> scratchCodes)
OneTimeTokenCredentialRepositoryuserName - the user namesecretKey - the secret keyvalidationCode - the validation codescratchCodes - the scratch codespublic org.apereo.cas.authentication.OneTimeTokenAccount update(org.apereo.cas.authentication.OneTimeTokenAccount account)
OneTimeTokenCredentialRepositoryaccount - the registration recordpublic void deleteAll()
OneTimeTokenCredentialRepository