Interface UserCredentialRepository
- All Known Implementing Classes:
MapUserCredentialRepository
public interface UserCredentialRepository
A repository for managing
CredentialRecord
s associated to a user.- Since:
- 6.4
-
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
-
Method Details
-
delete
Deletes an entry by credential id- Parameters:
credentialId
-CredentialRecord.getCredentialId()
-
save
Saves aCredentialRecord
- Parameters:
credentialRecord
- theCredentialRecord
to save.
-
findByCredentialId
Finds an entry by credential id.- Parameters:
credentialId
-CredentialRecord.getCredentialId()
- Returns:
- the
CredentialRecord
or null if not found.
-
findByUserId
Finds allCredentialRecord
instances for a specific user.- 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:
-