Class U2FCouchDbDeviceRepository

  • All Implemented Interfaces:
    org.apereo.cas.adaptors.u2f.storage.U2FDeviceRepository, org.springframework.beans.factory.DisposableBean

    public class U2FCouchDbDeviceRepository
    extends org.apereo.cas.adaptors.u2f.storage.BaseU2FDeviceRepository
    implements org.springframework.beans.factory.DisposableBean
    Since:
    6.0.0
    • Constructor Summary

      Constructors 
      Constructor Description
      U2FCouchDbDeviceRepository​(com.github.benmanes.caffeine.cache.LoadingCache<java.lang.String,​java.lang.String> requestStorage, U2FDeviceRegistrationCouchDbRepository couchDb, long expirationTime, java.util.concurrent.TimeUnit expirationTimeUnit, boolean asynchronous, org.apereo.cas.util.crypto.CipherExecutor<java.io.Serializable,​java.lang.String> cipherExecutor)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clean()  
      void deleteRegisteredDevice​(org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration registration)  
      void destroy()  
      java.util.Collection<? extends org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration> getRegisteredDevices()  
      java.util.Collection<org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration> getRegisteredDevices​(java.lang.String username)  
      boolean isDeviceRegisteredFor​(java.lang.String username)  
      org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration registerDevice​(org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration registration)  
      void removeAll()  
      • Methods inherited from class org.apereo.cas.adaptors.u2f.storage.BaseU2FDeviceRepository

        getCipherExecutor, getDeviceAuthenticationRequest, 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 Detail

      • U2FCouchDbDeviceRepository

        public U2FCouchDbDeviceRepository​(com.github.benmanes.caffeine.cache.LoadingCache<java.lang.String,​java.lang.String> requestStorage,
                                          U2FDeviceRegistrationCouchDbRepository couchDb,
                                          long expirationTime,
                                          java.util.concurrent.TimeUnit expirationTimeUnit,
                                          boolean asynchronous,
                                          org.apereo.cas.util.crypto.CipherExecutor<java.io.Serializable,​java.lang.String> cipherExecutor)
    • Method Detail

      • getRegisteredDevices

        public java.util.Collection<? extends org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration> getRegisteredDevices()
        Specified by:
        getRegisteredDevices in interface org.apereo.cas.adaptors.u2f.storage.U2FDeviceRepository
      • getRegisteredDevices

        public java.util.Collection<org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration> getRegisteredDevices​(java.lang.String username)
        Specified by:
        getRegisteredDevices in interface org.apereo.cas.adaptors.u2f.storage.U2FDeviceRepository
      • registerDevice

        public org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration registerDevice​(org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration registration)
        Specified by:
        registerDevice in interface org.apereo.cas.adaptors.u2f.storage.U2FDeviceRepository
      • isDeviceRegisteredFor

        public boolean isDeviceRegisteredFor​(java.lang.String username)
        Specified by:
        isDeviceRegisteredFor in interface org.apereo.cas.adaptors.u2f.storage.U2FDeviceRepository
      • clean

        public void clean()
        Specified by:
        clean in interface org.apereo.cas.adaptors.u2f.storage.U2FDeviceRepository
      • removeAll

        public void removeAll()
        Specified by:
        removeAll in interface org.apereo.cas.adaptors.u2f.storage.U2FDeviceRepository
      • deleteRegisteredDevice

        public void deleteRegisteredDevice​(org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration registration)
        Specified by:
        deleteRegisteredDevice in interface org.apereo.cas.adaptors.u2f.storage.U2FDeviceRepository
      • destroy

        public void destroy()
        Specified by:
        destroy in interface org.springframework.beans.factory.DisposableBean