Package org.keycloak.storage.federated
Interface UserFederatedUserCredentialStore
- All Superinterfaces:
Provider
- All Known Subinterfaces:
UserFederatedStorageProvider
,UserFederatedStorageProvider.Streams
,UserFederatedUserCredentialStore.Streams
- All Known Implementing Classes:
JpaUserFederatedStorageProvider
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Deprecated.This interface is no longer necessary; collection-based methods were removed from the parent interface and therefore the parent interface can be used directly -
Method Summary
Modifier and TypeMethodDescriptioncreateCredential
(RealmModel realm, String userId, CredentialModel cred) getStoredCredentialById
(RealmModel realm, String userId, String id) getStoredCredentialByNameAndType
(RealmModel realm, String userId, String name, String type) getStoredCredentialsByTypeStream
(RealmModel realm, String userId, String type) Obtains the credentials of typetype
that are associated with the federated user identified byuserId
.getStoredCredentialsStream
(RealmModel realm, String userId) Obtains the credentials associated with the federated user identified byuserId
.boolean
removeStoredCredential
(RealmModel realm, String userId, String id) void
updateCredential
(RealmModel realm, String userId, CredentialModel cred)
-
Method Details
-
updateCredential
-
createCredential
-
removeStoredCredential
-
getStoredCredentialById
-
getStoredCredentialsStream
Obtains the credentials associated with the federated user identified byuserId
.- Parameters:
realm
- a reference to the realm.userId
- the user identifier.- Returns:
- a non-null
Stream
of credentials.
-
getStoredCredentialsByTypeStream
Stream<CredentialModel> getStoredCredentialsByTypeStream(RealmModel realm, String userId, String type) Obtains the credentials of typetype
that are associated with the federated user identified byuserId
.- Parameters:
realm
- a reference to the realm.userId
- the user identifier.type
- the credential type.- Returns:
- a non-null
Stream
of credentials.
-
getStoredCredentialByNameAndType
CredentialModel getStoredCredentialByNameAndType(RealmModel realm, String userId, String name, String type)
-