org.keycloak.services.resources.admin

## Class ClaimResource

- java.lang.Object
- - org.keycloak.services.resources.admin.ClaimResource

-     public class ClaimResource
      extends Object

  Base resource class for managing allowed claims for an application or oauth client
  Version:
    $Revision: 1 $
  Author:
    Bill Burke

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected RealmAuth` | `auth`
    `protected ClientModel` | `model`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ClaimResource(ClientModel model, RealmAuth auth)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `ClaimRepresentation` | `getClaims()` Get the claims a client is allowed to ask for
    `void` | `updateClaims(ClaimRepresentation rep)` Set the cliams a client is allowed to ask for.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### model

          protected ClientModel model

    - #### auth

          protected RealmAuth auth

  - ### Constructor Detail

    - #### ClaimResource

          public ClaimResource(ClientModel model,
                       RealmAuth auth)

  - ### Method Detail

    - #### getClaims

          @GET
          @Produces(value="application/json")
          public ClaimRepresentation getClaims()

      Get the claims a client is allowed to ask for
      Returns:

    - #### updateClaims

          @PUT
          @Consumes(value="application/json")
          public void updateClaims(ClaimRepresentation rep)

      Set the cliams a client is allowed to ask for.
      Parameters:
        `rep` -

Copyright © 2014. All Rights Reserved.