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.BaseU2FDeviceRepository
This is
U2FRedisDeviceRepository.- Since:
- 6.1.0
-
Field Summary
FieldsFields inherited from class org.apereo.cas.adaptors.u2f.storage.BaseU2FDeviceRepository
casProperties -
Constructor Summary
ConstructorsConstructorDescriptionU2FRedisDeviceRepository(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 TypeMethodDescriptionvoidclean()voiddeleteRegisteredDevice(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>getRegisteredDevices(String username) booleanisDeviceRegisteredFor(String username) org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistrationregisterDevice(org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration record) voidMethods inherited from class org.apereo.cas.adaptors.u2f.storage.BaseU2FDeviceRepository
getCasProperties, getCipherExecutor, getDeviceAuthenticationRequest, getDeviceExpiration, getDeviceRegistrationRequest, getRequestStorage, requestDeviceAuthentication, requestDeviceRegistration, verifyRegisteredDeviceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apereo.cas.adaptors.u2f.storage.U2FDeviceRepository
decode
-
Field Details
-
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
-
clean
public void clean() -
removeAll
public void removeAll() -
deleteRegisteredDevice
public void deleteRegisteredDevice(org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration record)
-