public interface OneTimeTokenRepository
OneTimeTokenRepository.| Modifier and Type | Method and Description |
|---|---|
void |
clean()
Clean expired/invalid tokens from the repository.
|
default boolean |
exists(java.lang.String uid,
java.lang.Integer otp)
Determine if the otp for user exists in repository.
|
org.apereo.cas.authentication.OneTimeToken |
get(java.lang.String uid,
java.lang.Integer opt)
Get one time token.
|
void |
store(org.apereo.cas.authentication.OneTimeToken token)
Store token/code in the repository, marking it as invalid to be reused again.
|
void clean()
void store(org.apereo.cas.authentication.OneTimeToken token)
token - the tokendefault boolean exists(java.lang.String uid,
java.lang.Integer otp)
uid - the uidotp - the otporg.apereo.cas.authentication.OneTimeToken get(java.lang.String uid,
java.lang.Integer opt)
uid - the uidopt - the opt