Class U2FRedisDeviceRepository

  • All Implemented Interfaces:
    org.apereo.cas.adaptors.u2f.storage.U2FDeviceRepository

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

      Fields 
      Modifier and Type Field Description
      static java.lang.String CAS_U2F_PREFIX
      Redis key prefix.
    • Constructor Summary

      Constructors 
      Constructor Description
      U2FRedisDeviceRepository​(com.github.benmanes.caffeine.cache.LoadingCache<java.lang.String,​java.lang.String> requestStorage, org.springframework.data.redis.core.RedisTemplate<java.lang.String,​org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration> redisTemplate, long expirationTime, java.util.concurrent.TimeUnit expirationTimeUnit, 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 record)  
      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
    • Field Detail

      • CAS_U2F_PREFIX

        public static final java.lang.String CAS_U2F_PREFIX
        Redis key prefix.
    • Constructor Detail

      • U2FRedisDeviceRepository

        public U2FRedisDeviceRepository​(com.github.benmanes.caffeine.cache.LoadingCache<java.lang.String,​java.lang.String> requestStorage,
                                        org.springframework.data.redis.core.RedisTemplate<java.lang.String,​org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration> redisTemplate,
                                        long expirationTime,
                                        java.util.concurrent.TimeUnit expirationTimeUnit,
                                        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 record)
      • 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)