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 Details

    • addRegistrationByUsername

      boolean addRegistrationByUsername(String username, CredentialRegistration reg)
    • getRegistrationsByUsername

      Collection<CredentialRegistration> getRegistrationsByUsername(String username)
    • getRegistrationByUsernameAndCredentialId

      Optional<CredentialRegistration> getRegistrationByUsernameAndCredentialId(String username, com.yubico.webauthn.data.ByteArray credentialId)
    • getRegistrationsByUserHandle

      Collection<CredentialRegistration> getRegistrationsByUserHandle(com.yubico.webauthn.data.ByteArray userHandle)
    • userExists

      default boolean userExists(String username)
    • removeRegistrationByUsername

      boolean removeRegistrationByUsername(String username, CredentialRegistration credentialRegistration)
    • removeAllRegistrations

      boolean removeAllRegistrations(String username)
    • updateSignatureCount

      void updateSignatureCount(com.yubico.webauthn.AssertionResult result)