Class MapUserCredentialRepository
java.lang.Object
org.springframework.security.web.webauthn.management.MapUserCredentialRepository
- All Implemented Interfaces:
UserCredentialRepository
A
Map
based implementation of UserCredentialRepository
.- Since:
- 6.4
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deletes an entry by credential idfindByCredentialId
(Bytes credentialId) Finds an entry by credential id.findByUserId
(Bytes userId) Finds allCredentialRecord
instances for a specific user.void
save
(CredentialRecord credentialRecord) Saves aCredentialRecord
-
Constructor Details
-
MapUserCredentialRepository
public MapUserCredentialRepository()
-
-
Method Details
-
delete
Description copied from interface:UserCredentialRepository
Deletes an entry by credential id- Specified by:
delete
in interfaceUserCredentialRepository
- Parameters:
credentialId
-CredentialRecord.getCredentialId()
-
save
Description copied from interface:UserCredentialRepository
Saves aCredentialRecord
- Specified by:
save
in interfaceUserCredentialRepository
- Parameters:
credentialRecord
- theCredentialRecord
to save.
-
findByCredentialId
Description copied from interface:UserCredentialRepository
Finds an entry by credential id.- Specified by:
findByCredentialId
in interfaceUserCredentialRepository
- Parameters:
credentialId
-CredentialRecord.getCredentialId()
- Returns:
- the
CredentialRecord
or null if not found.
-
findByUserId
Description copied from interface:UserCredentialRepository
Finds allCredentialRecord
instances for a specific user.- Specified by:
findByUserId
in interfaceUserCredentialRepository
- Parameters:
userId
- thePublicKeyCredentialUserEntity.getId()
to search for a user.- Returns:
- all
CredentialRecord
instances for a specific user or empty if no results found. Never null. - See Also:
-