Interface RegistrationStorage
- All Superinterfaces:
com.yubico.webauthn.CredentialRepository
public interface RegistrationStorage
extends com.yubico.webauthn.CredentialRepository
This interface describes operations that are used to store and query registered webauthn credentials.
This interface extends
CredentialRepository which is used by yubico library to query details.
The methods in this interface are basically storage related. The implementation is basically used by yubico library and
Relying party server implementation to store credential data in any persistence storage.-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddRegistrationByUsername(String username, CredentialRegistration reg) getRegistrationByUsernameAndCredentialId(String username, com.yubico.webauthn.data.ByteArray credentialId) getRegistrationsByUserHandle(com.yubico.webauthn.data.ByteArray userHandle) getRegistrationsByUsername(String username) booleanremoveAllRegistrations(String username) booleanremoveRegistrationByUsername(String username, CredentialRegistration credentialRegistration) voidupdateSignatureCount(com.yubico.webauthn.AssertionResult result) default booleanuserExists(String username) Methods inherited from interface com.yubico.webauthn.CredentialRepository
getCredentialIdsForUsername, getUserHandleForUsername, getUsernameForUserHandle, lookup, lookupAll
-
Method Details
-
addRegistrationByUsername
-
getRegistrationsByUsername
-
getRegistrationByUsernameAndCredentialId
Optional<CredentialRegistration> getRegistrationByUsernameAndCredentialId(String username, com.yubico.webauthn.data.ByteArray credentialId) -
getRegistrationsByUserHandle
Collection<CredentialRegistration> getRegistrationsByUserHandle(com.yubico.webauthn.data.ByteArray userHandle) -
userExists
-
removeRegistrationByUsername
boolean removeRegistrationByUsername(String username, CredentialRegistration credentialRegistration) -
removeAllRegistrations
-
updateSignatureCount
void updateSignatureCount(com.yubico.webauthn.AssertionResult result)
-