Interface PublicKeyCredentialUserEntityRepository

All Known Implementing Classes:
InMemoryPublicKeyCredentialUserEntityRepository, JdbcPublicKeyCredentialUserEntityRepository

public interface PublicKeyCredentialUserEntityRepository

Where each user's passkey handle is kept; see PublicKeyCredentialUserEntity.

A user has one handle for as long as they have the account: it is written into every authenticator they register, and a sign-in without a user name finds them by it. InMemoryPublicKeyCredentialUserEntityRepository keeps them in this process; JdbcPublicKeyCredentialUserEntityRepository in the server's database.

  • Method Details

    • findById

      PublicKeyCredentialUserEntity findById(byte[] id)
      The user with this handle, or null.
    • findByUsername

      PublicKeyCredentialUserEntity findByUsername(String username)
      The user of this name, or null. Names differing only in the case of A to Z are the same user.
    • save

      Stores user, unless a user of that name is there already.
      Returns:
      the user of that name as stored: user, or the one that was there first -- whose handle is then the one to use
    • delete

      void delete(byte[] id)
      Forgets the user with this handle. Their credentials are another repository's to remove.