org.keycloak.services.resources.admin

## Class OAuthClientsResource

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

-     public class OAuthClientsResource
      extends Object

  Version:
    $Revision: 1 $
  Author:
    Bill Burke

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected static org.jboss.logging.Logger` | `logger`
    `protected RealmModel` | `realm`
    `protected KeycloakSession` | `session`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `OAuthClientsResource(RealmModel realm, RealmAuth auth, KeycloakSession session)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `javax.ws.rs.core.Response` | `createOAuthClient(javax.ws.rs.core.UriInfo uriInfo, OAuthClientRepresentation rep)` Create an oauth client
    `OAuthClientResource` | `getOAuthClient(String id)` Base path to manage one specific oauth client
    `List<OAuthClientRepresentation>` | `getOAuthClients()` Get a list of oauth clients in this realm.

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

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

- - ### Field Detail

    - #### logger

          protected static final org.jboss.logging.Logger logger

    - #### realm

          protected RealmModel realm

    - #### session

          protected KeycloakSession session

  - ### Constructor Detail

    - #### OAuthClientsResource

          public OAuthClientsResource(RealmModel realm,
                              RealmAuth auth,
                              KeycloakSession session)

  - ### Method Detail

    - #### getOAuthClients

          @GET
          @Produces(value="application/json")
          public List<OAuthClientRepresentation> getOAuthClients()

      Get a list of oauth clients in this realm.
      Returns:

    - #### createOAuthClient

          @POST
          @Consumes(value="application/json")
          public javax.ws.rs.core.Response createOAuthClient(@Context
                                                                  javax.ws.rs.core.UriInfo uriInfo,
                                                                  OAuthClientRepresentation rep)

      Create an oauth client
      Parameters:
        `uriInfo` -
        `rep` -
      Returns:

    - #### getOAuthClient

          @Path(value="{id}")
          public OAuthClientResource getOAuthClient(@PathParam(value="id")
                                                String id)

      Base path to manage one specific oauth client
      Parameters:
        `id` - oauth client's id (not clientId!)
      Returns:

Copyright © 2014. All Rights Reserved.