Package org.keycloak.storage.federated
Interface UserConsentFederatedStorage
-
- All Known Subinterfaces:
UserConsentFederatedStorage.Streams,UserFederatedStorageProvider,UserFederatedStorageProvider.Streams
- All Known Implementing Classes:
JpaUserFederatedStorageProvider
public interface UserConsentFederatedStorage- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceUserConsentFederatedStorage.StreamsTheUserConsentFederatedStorage.Streamsinterface makes all collection-based methods inUserConsentFederatedStoragedefault by providing implementations that delegate to theStream-based variants instead of the other way around.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description voidaddConsent(RealmModel realm, String userId, UserConsentModel consent)UserConsentModelgetConsentByClient(RealmModel realm, String userId, String clientInternalId)List<UserConsentModel>getConsents(RealmModel realm, String userId)Deprecated.UsegetConsentsStreaminstead.default Stream<UserConsentModel>getConsentsStream(RealmModel realm, String userId)Obtains the consents associated with the federated user identified byuserId.booleanrevokeConsentForClient(RealmModel realm, String userId, String clientInternalId)voidupdateConsent(RealmModel realm, String userId, UserConsentModel consent)
-
-
-
Method Detail
-
addConsent
void addConsent(RealmModel realm, String userId, UserConsentModel consent)
-
getConsentByClient
UserConsentModel getConsentByClient(RealmModel realm, String userId, String clientInternalId)
-
getConsents
@Deprecated List<UserConsentModel> getConsents(RealmModel realm, String userId)
Deprecated.UsegetConsentsStreaminstead.
-
getConsentsStream
default Stream<UserConsentModel> getConsentsStream(RealmModel realm, String userId)
Obtains the consents associated with the federated user identified byuserId.- Parameters:
realm- a reference to the realm.userId- the user identifier.- Returns:
- a non-null
Streamof consents associated with the user.
-
updateConsent
void updateConsent(RealmModel realm, String userId, UserConsentModel consent)
-
revokeConsentForClient
boolean revokeConsentForClient(RealmModel realm, String userId, String clientInternalId)
-
-