org.keycloak.storage.federated

## Interface UserConsentFederatedStorage

- All Known Subinterfaces:
    UserFederatedStorageProvider
  All Known Implementing Classes:
    JpaUserFederatedStorageProvider

      public interface UserConsentFederatedStorage

  Version:
    $Revision: 1 $
  Author:
    Bill Burke

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addConsent(RealmModel realm, UserModel user, UserConsentModel consent)`
    `UserConsentModel` | `getConsentByClient(RealmModel realm, UserModel user, String clientInternalId)`
    `List<UserConsentModel>` | `getConsents(RealmModel realm, UserModel user)`
    `boolean` | `revokeConsentForClient(RealmModel realm, UserModel user, String clientInternalId)`
    `void` | `updateConsent(RealmModel realm, UserModel user, UserConsentModel consent)`

- - ### Method Detail

    - #### addConsent

          void addConsent(RealmModel realm,
                          UserModel user,
                          UserConsentModel consent)

    - #### getConsentByClient

          UserConsentModel getConsentByClient(RealmModel realm,
                                              UserModel user,
                                              String clientInternalId)

    - #### getConsents

          List<UserConsentModel> getConsents(RealmModel realm,
                                             UserModel user)

    - #### updateConsent

          void updateConsent(RealmModel realm,
                             UserModel user,
                             UserConsentModel consent)

    - #### revokeConsentForClient

          boolean revokeConsentForClient(RealmModel realm,
                                         UserModel user,
                                         String clientInternalId)

Copyright © 2016 JBoss by Red Hat. All rights reserved.