public abstract class BaseJsonOneTimeTokenCredentialRepository extends BaseOneTimeTokenCredentialRepository
| Constructor and Description |
|---|
BaseJsonOneTimeTokenCredentialRepository(org.springframework.core.io.Resource location) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
update(OneTimeTokenAccount account)
Update an existing account.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatepublic BaseJsonOneTimeTokenCredentialRepository(org.springframework.core.io.Resource location)
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 record