public interface UserFederatedUserCredentialStore extends Provider
Modifier and Type | Interface and Description |
---|---|
static interface |
UserFederatedUserCredentialStore.Streams
The
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. |
void updateCredential(RealmModel realm, String userId, CredentialModel cred)
CredentialModel createCredential(RealmModel realm, String userId, CredentialModel cred)
boolean removeStoredCredential(RealmModel realm, String userId, String id)
CredentialModel getStoredCredentialById(RealmModel realm, String userId, String id)
@Deprecated List<CredentialModel> getStoredCredentials(RealmModel realm, String userId)
getStoredCredentialsStream
instead.default Stream<CredentialModel> getStoredCredentialsStream(RealmModel realm, String userId)
userId
.realm
- a reference to the realm.userId
- the user identifier.Stream
of credentials.@Deprecated List<CredentialModel> getStoredCredentialsByType(RealmModel realm, String userId, String type)
getStoredCredentialsByTypeStream
instead.default Stream<CredentialModel> getStoredCredentialsByTypeStream(RealmModel realm, String userId, String type)
type
that are associated with the federated user identified by userId
.realm
- a reference to the realm.userId
- the user identifier.type
- the credential type.Stream
of credentials.CredentialModel getStoredCredentialByNameAndType(RealmModel realm, String userId, String name, String type)
Copyright © 2021 JBoss by Red Hat. All rights reserved.