Class U2FMongoDbDeviceRepository

java.lang.Object
org.apereo.cas.adaptors.u2f.storage.BaseU2FDeviceRepository
org.apereo.cas.adaptors.u2f.storage.U2FMongoDbDeviceRepository
All Implemented Interfaces:
org.apereo.cas.adaptors.u2f.storage.U2FDeviceRepository

public class U2FMongoDbDeviceRepository extends org.apereo.cas.adaptors.u2f.storage.BaseU2FDeviceRepository
Since:
5.2.0
  • Field Summary

    Fields inherited from class org.apereo.cas.adaptors.u2f.storage.BaseU2FDeviceRepository

    casProperties
  • Constructor Summary

    Constructors
    Constructor
    Description
    U2FMongoDbDeviceRepository(com.github.benmanes.caffeine.cache.LoadingCache<String,String> requestStorage, org.springframework.data.mongodb.core.MongoOperations mongoTemplate, org.apereo.cas.util.crypto.CipherExecutor<Serializable,String> cipherExecutor, org.apereo.cas.configuration.CasConfigurationProperties casProperties)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    deleteRegisteredDevice(org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration record)
     
    Collection<? extends org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration>
     
    Collection<? extends org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration>
     
    boolean
     
    org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration
    registerDevice(org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration registration)
     
    void
     

    Methods inherited from class org.apereo.cas.adaptors.u2f.storage.BaseU2FDeviceRepository

    getCasProperties, getCipherExecutor, getDeviceAuthenticationRequest, getDeviceExpiration, getDeviceRegistrationRequest, getRequestStorage, requestDeviceAuthentication, requestDeviceRegistration, verifyRegisteredDevice

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apereo.cas.adaptors.u2f.storage.U2FDeviceRepository

    decode
  • Constructor Details

    • U2FMongoDbDeviceRepository

      public U2FMongoDbDeviceRepository(com.github.benmanes.caffeine.cache.LoadingCache<String,String> requestStorage, org.springframework.data.mongodb.core.MongoOperations mongoTemplate, org.apereo.cas.util.crypto.CipherExecutor<Serializable,String> cipherExecutor, org.apereo.cas.configuration.CasConfigurationProperties casProperties)
  • Method Details

    • getRegisteredDevices

      public Collection<? extends org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration> getRegisteredDevices(String username)
    • getRegisteredDevices

      public Collection<? extends org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration> getRegisteredDevices()
    • registerDevice

      public org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration registerDevice(org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration registration)
    • deleteRegisteredDevice

      public void deleteRegisteredDevice(org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration record)
    • isDeviceRegisteredFor

      public boolean isDeviceRegisteredFor(String username)
    • clean

      public void clean()
    • removeAll

      public void removeAll()