Class WAWebAuthnCredentialRepository
- java.lang.Object
-
- org.apereo.cas.webauthn.storage.BaseWebAuthnCredentialRepository
-
- org.apache.syncope.wa.starter.webauthn.WAWebAuthnCredentialRepository
-
- All Implemented Interfaces:
com.yubico.core.RegistrationStorage,com.yubico.webauthn.CredentialRepository,org.apereo.cas.webauthn.storage.WebAuthnCredentialRepository,org.apereo.cas.webauthn.storage.WebAuthnRegistrationStorageCleaner
public class WAWebAuthnCredentialRepository extends org.apereo.cas.webauthn.storage.BaseWebAuthnCredentialRepository
-
-
Field Summary
Fields Modifier and Type Field Description protected static LoggerLOGprotected WARestClientwaRestClient
-
Constructor Summary
Constructors Constructor Description WAWebAuthnCredentialRepository(org.apereo.cas.configuration.CasConfigurationProperties properties, WARestClient waRestClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<com.yubico.data.CredentialRegistration>getRegistrationsByUsername(String username)booleanremoveAllRegistrations(String username)booleanremoveRegistrationByUsername(String username, com.yubico.data.CredentialRegistration credentialRegistration)protected WebAuthnRegistrationServiceservice()Stream<? extends com.yubico.data.CredentialRegistration>stream()protected voidupdate(String username, Collection<com.yubico.data.CredentialRegistration> records)-
Methods inherited from class org.apereo.cas.webauthn.storage.BaseWebAuthnCredentialRepository
addRegistrationByUsername, clean, getCipherExecutor, getCredentialIdsForUsername, getProperties, getRegistrationByUsernameAndCredentialId, getRegistrationsByUserHandle, getUserHandleForUsername, getUsernameForUserHandle, lookup, lookupAll, updateSignatureCount
-
-
-
-
Field Detail
-
LOG
protected static final Logger LOG
-
waRestClient
protected final WARestClient waRestClient
-
-
Constructor Detail
-
WAWebAuthnCredentialRepository
public WAWebAuthnCredentialRepository(org.apereo.cas.configuration.CasConfigurationProperties properties, WARestClient waRestClient)
-
-
Method Detail
-
service
protected WebAuthnRegistrationService service()
-
removeRegistrationByUsername
public boolean removeRegistrationByUsername(String username, com.yubico.data.CredentialRegistration credentialRegistration)
- Specified by:
removeRegistrationByUsernamein interfacecom.yubico.core.RegistrationStorage- Overrides:
removeRegistrationByUsernamein classorg.apereo.cas.webauthn.storage.BaseWebAuthnCredentialRepository
-
removeAllRegistrations
public boolean removeAllRegistrations(String username)
- Specified by:
removeAllRegistrationsin interfacecom.yubico.core.RegistrationStorage- Overrides:
removeAllRegistrationsin classorg.apereo.cas.webauthn.storage.BaseWebAuthnCredentialRepository
-
stream
public Stream<? extends com.yubico.data.CredentialRegistration> stream()
-
update
protected void update(String username, Collection<com.yubico.data.CredentialRegistration> records)
- Specified by:
updatein classorg.apereo.cas.webauthn.storage.BaseWebAuthnCredentialRepository
-
getRegistrationsByUsername
public Collection<com.yubico.data.CredentialRegistration> getRegistrationsByUsername(String username)
-
-