Class GoogleAuthenticatorMongoDbTokenRepository

java.lang.Object
org.apereo.cas.otp.repository.token.BaseOneTimeTokenRepository<org.apereo.cas.gauth.token.GoogleAuthenticatorToken>
org.apereo.cas.gauth.token.GoogleAuthenticatorMongoDbTokenRepository
All Implemented Interfaces:
org.apereo.cas.otp.repository.token.OneTimeTokenRepository<org.apereo.cas.gauth.token.GoogleAuthenticatorToken>

public class GoogleAuthenticatorMongoDbTokenRepository extends org.apereo.cas.otp.repository.token.BaseOneTimeTokenRepository<org.apereo.cas.gauth.token.GoogleAuthenticatorToken>
Since:
5.1.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    GoogleAuthenticatorMongoDbTokenRepository(org.springframework.data.mongodb.core.MongoOperations mongoTemplate, String collectionName, long expireTokensInSeconds)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
    long
     
    org.apereo.cas.gauth.token.GoogleAuthenticatorToken
    get(String uid, Integer otp)
     
    void
     
    void
     
    void
    remove(String uid, Integer otp)
     
    void
     
    void
    store(org.apereo.cas.gauth.token.GoogleAuthenticatorToken token)
     

    Methods inherited from class org.apereo.cas.otp.repository.token.BaseOneTimeTokenRepository

    clean, toString

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apereo.cas.otp.repository.token.OneTimeTokenRepository

    exists
  • Constructor Details

    • GoogleAuthenticatorMongoDbTokenRepository

      public GoogleAuthenticatorMongoDbTokenRepository(org.springframework.data.mongodb.core.MongoOperations mongoTemplate, String collectionName, long expireTokensInSeconds)
  • Method Details

    • store

      public void store(org.apereo.cas.gauth.token.GoogleAuthenticatorToken token)
    • get

      public org.apereo.cas.gauth.token.GoogleAuthenticatorToken get(String uid, Integer otp)
    • remove

      public void remove(String uid, Integer otp)
    • remove

      public void remove(String uid)
    • remove

      public void remove(Integer otp)
    • removeAll

      public void removeAll()
    • count

      public long count(String uid)
    • count

      public long count()