Package org.keycloak.storage.federated
Interface UserFederatedUserCredentialStore.Streams
-
- All Superinterfaces:
Provider
,UserFederatedUserCredentialStore
- All Known Subinterfaces:
UserFederatedStorageProvider.Streams
- All Known Implementing Classes:
JpaUserFederatedStorageProvider
- Enclosing interface:
- UserFederatedUserCredentialStore
public static interface UserFederatedUserCredentialStore.Streams extends UserFederatedUserCredentialStore
TheUserFederatedUserCredentialStore.Streams
interface makes all collection-based methods inUserFederatedUserCredentialStore
default by providing implementations that delegate to theStream
-based variants instead of the other way around. It allows for implementations to focus on theStream
-based approach for processing sets of data and benefit from the potential memory and performance optimizations of that approach.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.storage.federated.UserFederatedUserCredentialStore
UserFederatedUserCredentialStore.Streams
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default List<CredentialModel>
getStoredCredentials(RealmModel realm, String userId)
default List<CredentialModel>
getStoredCredentialsByType(RealmModel realm, String userId, String type)
Stream<CredentialModel>
getStoredCredentialsByTypeStream(RealmModel realm, String userId, String type)
Obtains the credentials of typetype
that are associated with the federated user identified byuserId
.Stream<CredentialModel>
getStoredCredentialsStream(RealmModel realm, String userId)
Obtains the credentials associated with the federated user identified byuserId
.-
Methods inherited from interface org.keycloak.storage.federated.UserFederatedUserCredentialStore
createCredential, getStoredCredentialById, getStoredCredentialByNameAndType, removeStoredCredential, updateCredential
-
-
-
-
Method Detail
-
getStoredCredentials
default List<CredentialModel> getStoredCredentials(RealmModel realm, String userId)
- Specified by:
getStoredCredentials
in interfaceUserFederatedUserCredentialStore
-
getStoredCredentialsStream
Stream<CredentialModel> getStoredCredentialsStream(RealmModel realm, String userId)
Description copied from interface:UserFederatedUserCredentialStore
Obtains the credentials associated with the federated user identified byuserId
.- Specified by:
getStoredCredentialsStream
in interfaceUserFederatedUserCredentialStore
- Parameters:
realm
- a reference to the realm.userId
- the user identifier.- Returns:
- a non-null
Stream
of credentials.
-
getStoredCredentialsByType
default List<CredentialModel> getStoredCredentialsByType(RealmModel realm, String userId, String type)
- Specified by:
getStoredCredentialsByType
in interfaceUserFederatedUserCredentialStore
-
getStoredCredentialsByTypeStream
Stream<CredentialModel> getStoredCredentialsByTypeStream(RealmModel realm, String userId, String type)
Description copied from interface:UserFederatedUserCredentialStore
Obtains the credentials of typetype
that are associated with the federated user identified byuserId
.- Specified by:
getStoredCredentialsByTypeStream
in interfaceUserFederatedUserCredentialStore
- Parameters:
realm
- a reference to the realm.userId
- the user identifier.type
- the credential type.- Returns:
- a non-null
Stream
of credentials.
-
-