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 SummaryNested 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 SummaryAll 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- 
addConsentvoid addConsent(RealmModel realm, String userId, UserConsentModel consent) 
 - 
getConsentByClientUserConsentModel getConsentByClient(RealmModel realm, String userId, String clientInternalId) 
 - 
getConsents@Deprecated List<UserConsentModel> getConsents(RealmModel realm, String userId) Deprecated.UsegetConsentsStreaminstead.
 - 
getConsentsStreamdefault 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.
 
 - 
updateConsentvoid updateConsent(RealmModel realm, String userId, UserConsentModel consent) 
 - 
revokeConsentForClientboolean revokeConsentForClient(RealmModel realm, String userId, String clientInternalId) 
 
- 
 
-