public abstract class BaseInMemoryOneTimeTokenCredentialRepository extends BaseOneTimeTokenCredentialRepository
| Constructor and Description |
|---|
BaseInMemoryOneTimeTokenCredentialRepository()
Instantiates a new In memory google authenticator account registry.
|
| Modifier and Type | Method and Description |
|---|---|
OneTimeTokenAccount |
get(java.lang.String userName)
Gets secret.
|
void |
remove(java.lang.String username)
Remove.
|
void |
save(java.lang.String userName,
java.lang.String secretKey,
int validationCode,
java.util.List<java.lang.Integer> scratchCodes)
Save.
|
void |
update(OneTimeTokenAccount account)
Update an existing account.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatepublic BaseInMemoryOneTimeTokenCredentialRepository()
public 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 void update(OneTimeTokenAccount account)
OneTimeTokenCredentialRepositoryaccount - the registration recordpublic void remove(java.lang.String username)
username - the username