Package org.keycloak.authorization.admin
Class PolicyResourceService
java.lang.Object
org.keycloak.authorization.admin.PolicyResourceService
- Direct Known Subclasses:
PolicyTypeResourceService
- Author:
- Pedro Igor
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AdminPermissionEvaluator
protected final AuthorizationProvider
protected final ResourceServer
-
Constructor Summary
ConstructorDescriptionPolicyResourceService
(Policy policy, ResourceServer resourceServer, AuthorizationProvider authorization, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
delete()
protected AbstractPolicyRepresentation
doCreateRepresentation
(String payload) jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
protected Policy
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
protected AbstractPolicyRepresentation
toRepresentation
(Policy policy, String fields, AuthorizationProvider authorization) jakarta.ws.rs.core.Response
-
Field Details
-
resourceServer
-
authorization
-
auth
-
-
Constructor Details
-
PolicyResourceService
public PolicyResourceService(Policy policy, ResourceServer resourceServer, AuthorizationProvider authorization, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent)
-
-
Method Details
-
update
@PUT @Consumes("application/json") @Produces("application/json") public jakarta.ws.rs.core.Response update(String payload) -
delete
@DELETE public jakarta.ws.rs.core.Response delete() -
findById
@GET @Produces("application/json") public jakarta.ws.rs.core.Response findById(@QueryParam("fields") String fields) -
toRepresentation
protected AbstractPolicyRepresentation toRepresentation(Policy policy, String fields, AuthorizationProvider authorization) -
getDependentPolicies
@Path("/dependentPolicies") @GET @Produces("application/json") public jakarta.ws.rs.core.Response getDependentPolicies() -
getScopes
@Path("/scopes") @GET @Produces("application/json") public jakarta.ws.rs.core.Response getScopes() -
getResources
@Path("/resources") @GET @Produces("application/json") public jakarta.ws.rs.core.Response getResources() -
getAssociatedPolicies
@Path("/associatedPolicies") @GET @Produces("application/json") public jakarta.ws.rs.core.Response getAssociatedPolicies() -
doCreateRepresentation
-
getPolicy
-