インターフェース UserCredentialRepository
- すべての既知の実装クラス:
JdbcUserCredentialRepository,MapUserCredentialRepository
public interface UserCredentialRepository
ユーザーに関連付けられた
CredentialRecord を管理するためのリポジトリ。- 導入:
- 6.4
方法の概要
修飾子と型メソッド説明void資格情報 ID でエントリを削除します@Nullable CredentialRecordfindByCredentialId(Bytes credentialId) 資格情報 ID でエントリを検索します。findByUserId(Bytes userId) 特定のユーザーのすべてのCredentialRecordインスタンスを検索します。voidsave(CredentialRecord credentialRecord) CredentialRecordを節約
メソッドの詳細
delete
資格情報 ID でエントリを削除します- パラメーター:
credentialId-CredentialRecord.getCredentialId()
save
CredentialRecordを節約- パラメーター:
credentialRecord-CredentialRecordを保存します。
findByCredentialId
資格情報 ID でエントリを検索します。- パラメーター:
credentialId-CredentialRecord.getCredentialId()- 戻り値:
CredentialRecord、見つからない場合は null。
findByUserId
特定のユーザーのすべてのCredentialRecordインスタンスを検索します。- パラメーター:
userId-PublicKeyCredentialUserEntity.getId()を使用してユーザーを検索します。- 戻り値:
- 特定のユーザーのすべての
CredentialRecordインスタンス、または結果が見つからない場合は空。null にはなりません。 - 関連事項: