Class 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
    • Constructor Summary

      Constructors 
      Constructor Description
      U2FMongoDbDeviceRepository​(com.github.benmanes.caffeine.cache.LoadingCache<java.lang.String,​java.lang.String> requestStorage, org.springframework.data.mongodb.core.MongoTemplate mongoTemplate, long expirationTime, java.util.concurrent.TimeUnit expirationTimeUnit, java.lang.String collectionName, 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 record)  
      java.util.Collection<? extends org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration> getRegisteredDevices()  
      java.util.Collection<? extends 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

      • U2FMongoDbDeviceRepository

        public U2FMongoDbDeviceRepository​(com.github.benmanes.caffeine.cache.LoadingCache<java.lang.String,​java.lang.String> requestStorage,
                                          org.springframework.data.mongodb.core.MongoTemplate mongoTemplate,
                                          long expirationTime,
                                          java.util.concurrent.TimeUnit expirationTimeUnit,
                                          java.lang.String collectionName,
                                          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()
      • getRegisteredDevices

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

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

        public boolean isDeviceRegisteredFor​(java.lang.String username)
      • clean

        public void clean()
      • removeAll

        public void removeAll()
      • deleteRegisteredDevice

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