public static interface UserFederatedUserCredentialStore.Streams extends UserFederatedUserCredentialStore
UserFederatedUserCredentialStore.Streams
interface makes all collection-based methods in UserFederatedUserCredentialStore
default by providing implementations that delegate to the Stream
-based variants instead of the other way
around.
It allows for implementations to focus on the Stream
-based approach for processing sets of data and benefit
from the potential memory and performance optimizations of that approach.UserFederatedUserCredentialStore.Streams
Modifier and Type | Method and 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 type
type that are associated with the federated user identified by userId . |
Stream<CredentialModel> |
getStoredCredentialsStream(RealmModel realm,
String userId)
Obtains the credentials associated with the federated user identified by
userId . |
createCredential, getStoredCredentialById, getStoredCredentialByNameAndType, removeStoredCredential, updateCredential
default List<CredentialModel> getStoredCredentials(RealmModel realm, String userId)
getStoredCredentials
in interface UserFederatedUserCredentialStore
Stream<CredentialModel> getStoredCredentialsStream(RealmModel realm, String userId)
UserFederatedUserCredentialStore
userId
.getStoredCredentialsStream
in interface UserFederatedUserCredentialStore
realm
- a reference to the realm.userId
- the user identifier.Stream
of credentials.default List<CredentialModel> getStoredCredentialsByType(RealmModel realm, String userId, String type)
getStoredCredentialsByType
in interface UserFederatedUserCredentialStore
Stream<CredentialModel> getStoredCredentialsByTypeStream(RealmModel realm, String userId, String type)
UserFederatedUserCredentialStore
type
that are associated with the federated user identified by userId
.getStoredCredentialsByTypeStream
in interface UserFederatedUserCredentialStore
realm
- a reference to the realm.userId
- the user identifier.type
- the credential type.Stream
of credentials.Copyright © 2021 JBoss by Red Hat. All rights reserved.