Package org.apereo.cas.gauth.credential
Class JpaGoogleAuthenticatorTokenCredentialRepository
java.lang.Object
org.apereo.cas.otp.repository.credentials.BaseOneTimeTokenCredentialRepository
org.apereo.cas.gauth.credential.BaseGoogleAuthenticatorTokenCredentialRepository
org.apereo.cas.gauth.credential.JpaGoogleAuthenticatorTokenCredentialRepository
- All Implemented Interfaces:
org.apereo.cas.otp.repository.credentials.OneTimeTokenCredentialRepository
@EnableTransactionManagement(proxyTargetClass=false)
@Transactional(transactionManager="transactionManagerGoogleAuthenticator")
public class JpaGoogleAuthenticatorTokenCredentialRepository
extends org.apereo.cas.gauth.credential.BaseGoogleAuthenticatorTokenCredentialRepository
This is
JpaGoogleAuthenticatorTokenCredentialRepository that stores gauth data into a RDBMS database.- Since:
- 5.0.0
-
Field Summary
Fields inherited from class org.apereo.cas.gauth.credential.BaseGoogleAuthenticatorTokenCredentialRepository
BEAN_NAME -
Constructor Summary
ConstructorsConstructorDescriptionJpaGoogleAuthenticatorTokenCredentialRepository(org.apereo.cas.util.crypto.CipherExecutor<String, String> tokenCredentialCipher, org.apereo.cas.util.crypto.CipherExecutor<Number, Number> scratchCodesCipher, org.apereo.cas.gauth.CasGoogleAuthenticator googleAuthenticator) -
Method Summary
Modifier and TypeMethodDescriptionlongcount()longvoiddelete(long id) voidvoidorg.apereo.cas.authentication.OneTimeTokenAccountget(long id) Collection<? extends org.apereo.cas.authentication.OneTimeTokenAccount> org.apereo.cas.authentication.OneTimeTokenAccountjakarta.persistence.EntityManagerCollection<? extends org.apereo.cas.authentication.OneTimeTokenAccount> load()org.apereo.cas.authentication.OneTimeTokenAccountsave(org.apereo.cas.authentication.OneTimeTokenAccount account) toString()org.apereo.cas.authentication.OneTimeTokenAccountupdate(org.apereo.cas.authentication.OneTimeTokenAccount account) Methods inherited from class org.apereo.cas.gauth.credential.BaseGoogleAuthenticatorTokenCredentialRepository
create, getGoogleAuthenticator
-
Constructor Details
-
JpaGoogleAuthenticatorTokenCredentialRepository
-
-
Method Details
-
get
public org.apereo.cas.authentication.OneTimeTokenAccount get(long id) -
get
-
get
-
load
-
save
public org.apereo.cas.authentication.OneTimeTokenAccount save(org.apereo.cas.authentication.OneTimeTokenAccount account) -
update
public org.apereo.cas.authentication.OneTimeTokenAccount update(org.apereo.cas.authentication.OneTimeTokenAccount account) -
deleteAll
public void deleteAll() -
delete
-
delete
public void delete(long id) -
count
public long count() -
count
-
toString
-
getEntityManager
public jakarta.persistence.EntityManager getEntityManager()
-