public interface UserConsentFederatedStorage
| Modifier and Type | Interface and Description |
|---|---|
static interface |
UserConsentFederatedStorage.Streams
The
UserConsentFederatedStorage.Streams interface makes all collection-based methods in UserConsentFederatedStorage
default by providing implementations that delegate to the Stream-based variants instead of the other way
around. |
| Modifier and Type | Method and Description |
|---|---|
void |
addConsent(RealmModel realm,
String userId,
UserConsentModel consent) |
UserConsentModel |
getConsentByClient(RealmModel realm,
String userId,
String clientInternalId) |
List<UserConsentModel> |
getConsents(RealmModel realm,
String userId)
Deprecated.
Use
getConsentsStream instead. |
default Stream<UserConsentModel> |
getConsentsStream(RealmModel realm,
String userId)
Obtains the consents associated with the federated user identified by
userId. |
boolean |
revokeConsentForClient(RealmModel realm,
String userId,
String clientInternalId) |
void |
updateConsent(RealmModel realm,
String userId,
UserConsentModel consent) |
void addConsent(RealmModel realm, String userId, UserConsentModel consent)
UserConsentModel getConsentByClient(RealmModel realm, String userId, String clientInternalId)
@Deprecated List<UserConsentModel> getConsents(RealmModel realm, String userId)
getConsentsStream instead.default Stream<UserConsentModel> getConsentsStream(RealmModel realm, String userId)
userId.realm - a reference to the realm.userId - the user identifier.Stream of consents associated with the user.void updateConsent(RealmModel realm, String userId, UserConsentModel consent)
boolean revokeConsentForClient(RealmModel realm, String userId, String clientInternalId)
Copyright © 2022 JBoss by Red Hat. All rights reserved.