Class InMemoryPublicKeyCredentialUserEntityRepository
java.lang.Object
com.codename1.backend.security.webauthn.InMemoryPublicKeyCredentialUserEntityRepository
- All Implemented Interfaces:
PublicKeyCredentialUserEntityRepository
public final class InMemoryPublicKeyCredentialUserEntityRepository
extends Object
implements PublicKeyCredentialUserEntityRepository
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.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(byte[] id) Forgets the user with this handle.findById(byte[] id) The user with this handle, or null.findByUsername(String username) The user of this name, or null.Storesuser, unless a user of that name is there already.
-
Constructor Details
-
InMemoryPublicKeyCredentialUserEntityRepository
public InMemoryPublicKeyCredentialUserEntityRepository()
-
-
Method Details
-
findById
Description copied from interface:PublicKeyCredentialUserEntityRepositoryThe user with this handle, or null.- Specified by:
findByIdin interfacePublicKeyCredentialUserEntityRepository
-
findByUsername
Description copied from interface:PublicKeyCredentialUserEntityRepositoryThe user of this name, or null. Names differing only in the case ofAtoZare the same user.- Specified by:
findByUsernamein interfacePublicKeyCredentialUserEntityRepository
-
save
Description copied from interface:PublicKeyCredentialUserEntityRepositoryStoresuser, unless a user of that name is there already.- Specified by:
savein interfacePublicKeyCredentialUserEntityRepository- 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
public void delete(byte[] id) Description copied from interface:PublicKeyCredentialUserEntityRepositoryForgets the user with this handle. Their credentials are another repository's to remove.- Specified by:
deletein interfacePublicKeyCredentialUserEntityRepository
-