Class WAU2FDeviceRepository
- java.lang.Object
-
- org.apereo.cas.adaptors.u2f.storage.BaseU2FDeviceRepository
-
- org.apache.syncope.wa.starter.u2f.WAU2FDeviceRepository
-
- All Implemented Interfaces:
org.apereo.cas.adaptors.u2f.storage.U2FDeviceRepository
public class WAU2FDeviceRepository extends org.apereo.cas.adaptors.u2f.storage.BaseU2FDeviceRepository
-
-
Field Summary
Fields Modifier and Type Field Description protected OffsetDateTime
expirationDate
protected WARestClient
waRestClient
-
Constructor Summary
Constructors Constructor Description WAU2FDeviceRepository(org.apereo.cas.configuration.CasConfigurationProperties casProperties, com.github.benmanes.caffeine.cache.LoadingCache<String,String> requestStorage, WARestClient waRestClient, OffsetDateTime expirationDate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clean()
void
deleteRegisteredDevice(org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration registration)
Collection<? extends org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration>
getRegisteredDevices()
Collection<? extends org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration>
getRegisteredDevices(String owner)
boolean
isDeviceRegisteredFor(String owner)
protected static org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration
parseRegistrationRecord(String owner, U2FDevice device)
org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration
registerDevice(org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration registration)
void
removeAll()
protected U2FRegistrationService
service()
-
Methods inherited from class org.apereo.cas.adaptors.u2f.storage.BaseU2FDeviceRepository
getCasProperties, getCipherExecutor, getDeviceAuthenticationRequest, getDeviceExpiration, getDeviceRegistrationRequest, getRequestStorage, requestDeviceAuthentication, requestDeviceRegistration, verifyRegisteredDevice
-
-
-
-
Field Detail
-
waRestClient
protected final WARestClient waRestClient
-
expirationDate
protected final OffsetDateTime expirationDate
-
-
Constructor Detail
-
WAU2FDeviceRepository
public WAU2FDeviceRepository(org.apereo.cas.configuration.CasConfigurationProperties casProperties, com.github.benmanes.caffeine.cache.LoadingCache<String,String> requestStorage, WARestClient waRestClient, OffsetDateTime expirationDate)
-
-
Method Detail
-
parseRegistrationRecord
protected static org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration parseRegistrationRecord(String owner, U2FDevice device)
-
service
protected U2FRegistrationService service()
-
getRegisteredDevices
public Collection<? extends org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration> getRegisteredDevices(String owner)
-
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 registration)
-
isDeviceRegisteredFor
public boolean isDeviceRegisteredFor(String owner)
-
clean
public void clean()
-
removeAll
public void removeAll()
-
-