public class ClientsResource extends Object
Modifier and Type | Field and Description |
---|---|
protected static ServicesLogger |
logger |
protected RealmModel |
realm |
protected KeycloakSession |
session |
Constructor and Description |
---|
ClientsResource(RealmModel realm,
RealmAuth auth,
AdminEventBuilder adminEvent) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createClient(javax.ws.rs.core.UriInfo uriInfo,
ClientRepresentation rep)
Create a new client
Client's client_id must be unique!
|
ClientResource |
getClient(String id)
Base path for managing a specific client.
|
List<ClientRepresentation> |
getClients(String clientId)
Get clients belonging to the realm
Returns a list of clients belonging to the realm
|
protected static final ServicesLogger logger
protected RealmModel realm
@Context protected KeycloakSession session
public ClientsResource(RealmModel realm, RealmAuth auth, AdminEventBuilder adminEvent)
@GET @Produces(value="application/json") public List<ClientRepresentation> getClients(@QueryParam(value="clientId") String clientId)
clientId
- filter by clientId@POST @Consumes(value="application/json") public javax.ws.rs.core.Response createClient(@Context javax.ws.rs.core.UriInfo uriInfo, ClientRepresentation rep)
uriInfo
- rep
- @Path(value="{id}") public ClientResource getClient(@PathParam(value="id") String id)
id
- id of client (not client-id)Copyright © 2016 JBoss by Red Hat. All rights reserved.