Class MapPublicKeyCredentialUserEntityRepository
java.lang.Object
org.springframework.security.web.webauthn.management.MapPublicKeyCredentialUserEntityRepository
- All Implemented Interfaces:
PublicKeyCredentialUserEntityRepository
public class MapPublicKeyCredentialUserEntityRepository
extends Object
implements PublicKeyCredentialUserEntityRepository
A
Map
based implementation of PublicKeyCredentialUserEntityRepository
.- Since:
- 6.4
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
findByUsername
(String username) Finds thePublicKeyCredentialUserEntity
by the username.void
save
(PublicKeyCredentialUserEntity userEntity) Saves thePublicKeyCredentialUserEntity
to the associated username.
-
Constructor Details
-
MapPublicKeyCredentialUserEntityRepository
public MapPublicKeyCredentialUserEntityRepository()
-
-
Method Details
-
findById
Description copied from interface:PublicKeyCredentialUserEntityRepository
- Specified by:
findById
in interfacePublicKeyCredentialUserEntityRepository
- Parameters:
id
- the id to lookup the username by- Returns:
- the username or null if not found.
-
findByUsername
Description copied from interface:PublicKeyCredentialUserEntityRepository
Finds thePublicKeyCredentialUserEntity
by the username.- Specified by:
findByUsername
in interfacePublicKeyCredentialUserEntityRepository
- Parameters:
username
- the username to lookup thePublicKeyCredentialUserEntity
- Returns:
- the
PublicKeyCredentialUserEntity
or null if not found.
-
save
Description copied from interface:PublicKeyCredentialUserEntityRepository
Saves thePublicKeyCredentialUserEntity
to the associated username.- Specified by:
save
in interfacePublicKeyCredentialUserEntityRepository
- Parameters:
userEntity
- thePublicKeyCredentialUserEntity
to associate to the provided username. If null, any existing entry is deleted.
-
delete
- Specified by:
delete
in interfacePublicKeyCredentialUserEntityRepository
-