Class WAGoogleMfaAuthTokenRepository
- java.lang.Object
-
- org.apereo.cas.otp.repository.token.BaseOneTimeTokenRepository<org.apereo.cas.gauth.token.GoogleAuthenticatorToken>
-
- org.apache.syncope.wa.starter.gauth.WAGoogleMfaAuthTokenRepository
-
- All Implemented Interfaces:
org.apereo.cas.otp.repository.token.OneTimeTokenRepository<org.apereo.cas.gauth.token.GoogleAuthenticatorToken>
public class WAGoogleMfaAuthTokenRepository extends org.apereo.cas.otp.repository.token.BaseOneTimeTokenRepository<org.apereo.cas.gauth.token.GoogleAuthenticatorToken>
-
-
Field Summary
Fields Modifier and Type Field Description protected long
expireTokensInSeconds
protected static Logger
LOG
protected WARestClient
waRestClient
-
Constructor Summary
Constructors Constructor Description WAGoogleMfaAuthTokenRepository(WARestClient waRestClient, long expireTokensInSeconds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
cleanInternal()
long
count()
long
count(String username)
org.apereo.cas.gauth.token.GoogleAuthenticatorToken
get(String username, Integer otp)
void
remove(Integer otp)
void
remove(String username)
void
remove(String username, Integer otp)
void
removeAll()
protected GoogleMfaAuthTokenService
service()
void
store(org.apereo.cas.gauth.token.GoogleAuthenticatorToken token)
-
Methods inherited from class org.apereo.cas.otp.repository.token.BaseOneTimeTokenRepository
clean, toString
-
-
-
-
Field Detail
-
LOG
protected static final Logger LOG
-
waRestClient
protected final WARestClient waRestClient
-
expireTokensInSeconds
protected final long expireTokensInSeconds
-
-
Constructor Detail
-
WAGoogleMfaAuthTokenRepository
public WAGoogleMfaAuthTokenRepository(WARestClient waRestClient, long expireTokensInSeconds)
-
-
Method Detail
-
service
protected GoogleMfaAuthTokenService service()
-
cleanInternal
protected void cleanInternal()
- Specified by:
cleanInternal
in classorg.apereo.cas.otp.repository.token.BaseOneTimeTokenRepository<org.apereo.cas.gauth.token.GoogleAuthenticatorToken>
-
store
public void store(org.apereo.cas.gauth.token.GoogleAuthenticatorToken token)
-
remove
public void remove(String username)
-
remove
public void remove(Integer otp)
-
removeAll
public void removeAll()
-
count
public long count(String username)
-
count
public long count()
-
-