Class U2FMongoDbDeviceRepository
java.lang.Object
org.apereo.cas.adaptors.u2f.storage.BaseU2FDeviceRepository
org.apereo.cas.adaptors.u2f.storage.U2FMongoDbDeviceRepository
- All Implemented Interfaces:
org.apereo.cas.adaptors.u2f.storage.U2FDeviceRepository
public class U2FMongoDbDeviceRepository
extends org.apereo.cas.adaptors.u2f.storage.BaseU2FDeviceRepository
This is
U2FMongoDbDeviceRepository.- Since:
- 5.2.0
-
Field Summary
Fields inherited from class org.apereo.cas.adaptors.u2f.storage.BaseU2FDeviceRepository
casProperties -
Constructor Summary
ConstructorsConstructorDescriptionU2FMongoDbDeviceRepository(com.github.benmanes.caffeine.cache.LoadingCache<String, String> requestStorage, org.springframework.data.mongodb.core.MongoOperations mongoTemplate, 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 registration) 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
-
Constructor Details
-
U2FMongoDbDeviceRepository
public U2FMongoDbDeviceRepository(com.github.benmanes.caffeine.cache.LoadingCache<String, String> requestStorage, org.springframework.data.mongodb.core.MongoOperations mongoTemplate, 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(String username) -
getRegisteredDevices
public Collection<? extends org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration> getRegisteredDevices() -
registerDevice
public org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration registerDevice(org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration registration) -
deleteRegisteredDevice
public void deleteRegisteredDevice(org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration record) -
isDeviceRegisteredFor
-
clean
public void clean() -
removeAll
public void removeAll()
-