Class ClientScopesResource
- java.lang.Object
- 
- org.keycloak.services.resources.admin.ClientScopesResource
 
- 
 public class ClientScopesResource extends Object Base resource class for managing a realm's client scopes.- Version:
- $Revision: 1 $
- Author:
- Bill Burke
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected static org.jboss.logging.Loggerloggerprotected RealmModelrealmprotected KeycloakSessionsession
 - 
Constructor SummaryConstructors Constructor Description ClientScopesResource(KeycloakSession session, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsecreateClientScope(ClientScopeRepresentation rep)Create a new client scope Client Scope's name must be unique!ClientScopeResourcegetClientScope(String id)Base path for managing a specific client scope.Stream<ClientScopeRepresentation>getClientScopes()Get client scopes belonging to the realm Returns a list of client scopes belonging to the realm
 
- 
- 
- 
Field Detail- 
loggerprotected static final org.jboss.logging.Logger logger 
 - 
realmprotected final RealmModel realm 
 - 
sessionprotected final KeycloakSession session 
 
- 
 - 
Constructor Detail- 
ClientScopesResourcepublic ClientScopesResource(KeycloakSession session, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) 
 
- 
 - 
Method Detail- 
getClientScopes@GET @Produces("application/json") public Stream<ClientScopeRepresentation> getClientScopes()Get client scopes belonging to the realm Returns a list of client scopes belonging to the realm
 - 
createClientScope@POST @Consumes("application/json") public javax.ws.rs.core.Response createClientScope(ClientScopeRepresentation rep)Create a new client scope Client Scope's name must be unique!- Parameters:
- rep-
- Returns:
 
 - 
getClientScope@Path("{id}") public ClientScopeResource getClientScope(@PathParam("id") String id)Base path for managing a specific client scope.- Parameters:
- id- id of client scope (not name)
- Returns:
 
 
- 
 
-