Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public interface PublicKeyCredentialUserEntityRepository
Known subtypesInMemoryPublicKeyCredentialUserEntityRepository, JdbcPublicKeyCredentialUserEntityRepository
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.
Methods
Method details
findById
public abstract PublicKeyCredentialUserEntity findById(byte[] id)The user with this handle, or null.
findByUsername
public abstract 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
public abstract PublicKeyCredentialUserEntity save(PublicKeyCredentialUserEntity user)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 usedelete
public abstract void delete(byte[] id)Forgets the user with this handle. Their credentials are another
repository’s to remove.