Class U2FRedisDeviceRepository

java.lang.Object
org.apereo.cas.adaptors.u2f.storage.BaseU2FDeviceRepository
org.apereo.cas.u2f.redis.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 final String
    Redis key prefix.

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

    casProperties
  • Constructor Summary

    Constructors
    Constructor
    Description
    U2FRedisDeviceRepository(com.github.benmanes.caffeine.cache.LoadingCache<String,String> requestStorage, org.apereo.cas.redis.core.CasRedisTemplate<String,org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration> redisTemplate, 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 record)
     
    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
  • Field Details

    • CAS_U2F_PREFIX

      public static final String CAS_U2F_PREFIX
      Redis key prefix.
  • Constructor Details

    • U2FRedisDeviceRepository

      public U2FRedisDeviceRepository(com.github.benmanes.caffeine.cache.LoadingCache<String,String> requestStorage, org.apereo.cas.redis.core.CasRedisTemplate<String,org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration> redisTemplate, 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()
    • getRegisteredDevices

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

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

      public boolean isDeviceRegisteredFor(String username)
    • clean

      public void clean()
    • removeAll

      public void removeAll()
    • deleteRegisteredDevice

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