Package org.apereo.cas.u2f.redis
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.BaseU2FDeviceRepositoryThis isU2FRedisDeviceRepository.- Since:
- 6.1.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCAS_U2F_PREFIXRedis 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, org.apereo.cas.util.crypto.CipherExecutor<java.io.Serializable,java.lang.String> cipherExecutor, org.apereo.cas.configuration.CasConfigurationProperties casProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclean()voiddeleteRegisteredDevice(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)booleanisDeviceRegisteredFor(java.lang.String username)org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistrationregisterDevice(org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration record)voidremoveAll()-
Methods inherited from class org.apereo.cas.adaptors.u2f.storage.BaseU2FDeviceRepository
getCasProperties, getCipherExecutor, getDeviceAuthenticationRequest, getDeviceExpiration, getDeviceRegistrationRequest, getRequestStorage, requestDeviceAuthentication, requestDeviceRegistration, verifyRegisteredDevice
-
-
-
-
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, org.apereo.cas.util.crypto.CipherExecutor<java.io.Serializable,java.lang.String> cipherExecutor, org.apereo.cas.configuration.CasConfigurationProperties casProperties)
-
-
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)
-
-