Class UserManagedPermissionService
- java.lang.Object
-
- org.keycloak.authorization.protection.policy.UserManagedPermissionService
-
public class UserManagedPermissionService extends Object
- Author:
- Federico M. Facca
-
-
Constructor Summary
Constructors Constructor Description UserManagedPermissionService(KeycloakIdentity identity, ResourceServer resourceServer, AuthorizationProvider authorization, AdminEventBuilder eventBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Responsecreate(String resourceId, UmaPermissionRepresentation representation)javax.ws.rs.core.Responsedelete(String policyId)javax.ws.rs.core.Responsefind(String name, String resource, String scope, Integer firstResult, Integer maxResult)javax.ws.rs.core.ResponsefindById(String policyId)javax.ws.rs.core.Responseupdate(String policyId, String payload)
-
-
-
Constructor Detail
-
UserManagedPermissionService
public UserManagedPermissionService(KeycloakIdentity identity, ResourceServer resourceServer, AuthorizationProvider authorization, AdminEventBuilder eventBuilder)
-
-
Method Detail
-
create
@POST @Path("{resourceId}") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response create(@PathParam("resourceId") String resourceId, UmaPermissionRepresentation representation)
-
update
@Path("{policyId}") @PUT @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response update(@PathParam("policyId") String policyId, String payload)
-
delete
@Path("{policyId}") @DELETE public javax.ws.rs.core.Response delete(@PathParam("policyId") String policyId)
-
findById
@Path("{policyId}") @GET @Produces("application/json") public javax.ws.rs.core.Response findById(@PathParam("policyId") String policyId)
-
-