public interface OneTimeTokenCredentialRepository
OneTimeTokenCredentialRepository.| Modifier and Type | Method and Description |
|---|---|
org.apereo.cas.authentication.OneTimeTokenAccount |
create(java.lang.String username)
Create one time token account.
|
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.
|
org.apereo.cas.authentication.OneTimeTokenAccount get(java.lang.String username)
username - the usernamevoid save(java.lang.String userName,
java.lang.String secretKey,
int validationCode,
java.util.List<java.lang.Integer> scratchCodes)
userName - the user namesecretKey - the secret keyvalidationCode - the validation codescratchCodes - the scratch codesorg.apereo.cas.authentication.OneTimeTokenAccount create(java.lang.String username)
username - the usernameorg.apereo.cas.authentication.OneTimeTokenAccount update(org.apereo.cas.authentication.OneTimeTokenAccount account)
account - the registration recordvoid deleteAll()