Class U2FCouchDbDeviceRepository
- java.lang.Object
-
- org.apereo.cas.adaptors.u2f.storage.BaseU2FDeviceRepository
-
- org.apereo.cas.adaptors.u2f.storage.U2FCouchDbDeviceRepository
-
- All Implemented Interfaces:
org.apereo.cas.adaptors.u2f.storage.U2FDeviceRepository,org.springframework.beans.factory.DisposableBean
public class U2FCouchDbDeviceRepository extends org.apereo.cas.adaptors.u2f.storage.BaseU2FDeviceRepository implements org.springframework.beans.factory.DisposableBeanThis isU2FCouchDbDeviceRepository.- Since:
- 6.0.0
-
-
Constructor Summary
Constructors Constructor Description U2FCouchDbDeviceRepository(com.github.benmanes.caffeine.cache.LoadingCache<java.lang.String,java.lang.String> requestStorage, U2FDeviceRegistrationCouchDbRepository couchDb, org.apereo.cas.configuration.CasConfigurationProperties casProperties, 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 voidclean()voiddeleteRegisteredDevice(org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration registration)voiddestroy()java.util.Collection<? extends org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration>getRegisteredDevices()java.util.Collection<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 registration)voidremoveAll()-
Methods inherited from class org.apereo.cas.adaptors.u2f.storage.BaseU2FDeviceRepository
getCasProperties, getCipherExecutor, getDeviceAuthenticationRequest, getDeviceExpiration, getDeviceRegistrationRequest, getRequestStorage, requestDeviceAuthentication, requestDeviceRegistration, verifyRegisteredDevice
-
-
-
-
Constructor Detail
-
U2FCouchDbDeviceRepository
public U2FCouchDbDeviceRepository(com.github.benmanes.caffeine.cache.LoadingCache<java.lang.String,java.lang.String> requestStorage, U2FDeviceRegistrationCouchDbRepository couchDb, org.apereo.cas.configuration.CasConfigurationProperties casProperties, 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()
- Specified by:
getRegisteredDevicesin interfaceorg.apereo.cas.adaptors.u2f.storage.U2FDeviceRepository
-
getRegisteredDevices
public java.util.Collection<org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration> getRegisteredDevices(java.lang.String username)
- Specified by:
getRegisteredDevicesin interfaceorg.apereo.cas.adaptors.u2f.storage.U2FDeviceRepository
-
registerDevice
public org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration registerDevice(org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration registration)
- Specified by:
registerDevicein interfaceorg.apereo.cas.adaptors.u2f.storage.U2FDeviceRepository
-
isDeviceRegisteredFor
public boolean isDeviceRegisteredFor(java.lang.String username)
- Specified by:
isDeviceRegisteredForin interfaceorg.apereo.cas.adaptors.u2f.storage.U2FDeviceRepository
-
clean
public void clean()
- Specified by:
cleanin interfaceorg.apereo.cas.adaptors.u2f.storage.U2FDeviceRepository
-
removeAll
public void removeAll()
- Specified by:
removeAllin interfaceorg.apereo.cas.adaptors.u2f.storage.U2FDeviceRepository
-
deleteRegisteredDevice
public void deleteRegisteredDevice(org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration registration)
- Specified by:
deleteRegisteredDevicein interfaceorg.apereo.cas.adaptors.u2f.storage.U2FDeviceRepository
-
destroy
public void destroy()
- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean
-
-