Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public final class InMemoryPublicKeyCredentialUserEntityRepository
- Object
- InMemoryPublicKeyCredentialUserEntityRepository
ImplementsPublicKeyCredentialUserEntityRepository
User handles kept in this process: gone when it stops, so that every
passkey registered before then finds no user after. For a test or a
demonstration; a deployment keeps them in the database with
JdbcPublicKeyCredentialUserEntityRepository.Constructors
public InMemoryPublicKeyCredentialUserEntityRepository() |
Methods
Inherited methods
Constructor details
InMemoryPublicKeyCredentialUserEntityRepository
public InMemoryPublicKeyCredentialUserEntityRepository()Method details
findById
public synchronized PublicKeyCredentialUserEntity findById(byte[] id)The user with this handle, or null.
findByUsername
public synchronized 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 synchronized 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 synchronized void delete(byte[] id)Forgets the user with this handle. Their credentials are another
repository’s to remove.