public class OAuthClientsResource extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.jboss.logging.Logger |
logger |
protected RealmModel |
realm |
protected KeycloakSession |
session |
Constructor and Description |
---|
OAuthClientsResource(RealmModel realm,
RealmAuth auth,
KeycloakSession session) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createOAuthClient(javax.ws.rs.core.UriInfo uriInfo,
OAuthClientRepresentation rep)
Create an oauth client
|
protected String |
getClientPath(OAuthClientModel oauth) |
OAuthClientResource |
getOAuthClient(String clientId)
Base path to manage one specific oauth client
|
protected OAuthClientModel |
getOAuthClientModel(String clientId) |
List<OAuthClientRepresentation> |
getOAuthClients()
Get a list of oauth clients in this realm.
|
protected static final org.jboss.logging.Logger logger
protected RealmModel realm
protected KeycloakSession session
public OAuthClientsResource(RealmModel realm, RealmAuth auth, KeycloakSession session)
@GET @Produces(value="application/json") public List<OAuthClientRepresentation> getOAuthClients()
@POST @Consumes(value="application/json") public javax.ws.rs.core.Response createOAuthClient(@Context javax.ws.rs.core.UriInfo uriInfo, OAuthClientRepresentation rep)
uriInfo
- rep
- protected String getClientPath(OAuthClientModel oauth)
@Path(value="{clientId}") public OAuthClientResource getOAuthClient(@PathParam(value="clientId") String clientId)
clientId
- oauth client's clientIdprotected OAuthClientModel getOAuthClientModel(String clientId)
Copyright © 2014. All Rights Reserved.