KEYCLOAK-12086 Remove unnecessary modificator "public" from methods of interfaces in module "integration/admin-client"

This commit is contained in:
Andrei Arlou 2019-11-15 21:39:24 +03:00 committed by Stian Thorgersen
parent b092ff311d
commit 532436dfad
13 changed files with 93 additions and 93 deletions

View file

@ -43,7 +43,7 @@ public interface ClientAttributeCertificateResource {
@GET @GET
@NoCache @NoCache
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public CertificateRepresentation getKeyInfo(); CertificateRepresentation getKeyInfo();
/** /**
* Generate a new certificate with new key pair * Generate a new certificate with new key pair
@ -54,7 +54,7 @@ public interface ClientAttributeCertificateResource {
@NoCache @NoCache
@Path("generate") @Path("generate")
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public CertificateRepresentation generate(); CertificateRepresentation generate();
/** /**
* Upload certificate and eventually private key * Upload certificate and eventually private key
@ -66,7 +66,7 @@ public interface ClientAttributeCertificateResource {
@Path("upload") @Path("upload")
@Consumes(MediaType.MULTIPART_FORM_DATA) @Consumes(MediaType.MULTIPART_FORM_DATA)
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public CertificateRepresentation uploadJks(MultipartFormDataOutput output); CertificateRepresentation uploadJks(MultipartFormDataOutput output);
/** /**
* Upload only certificate, not private key * Upload only certificate, not private key
@ -78,7 +78,7 @@ public interface ClientAttributeCertificateResource {
@Path("upload-certificate") @Path("upload-certificate")
@Consumes(MediaType.MULTIPART_FORM_DATA) @Consumes(MediaType.MULTIPART_FORM_DATA)
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public CertificateRepresentation uploadJksCertificate(MultipartFormDataOutput output); CertificateRepresentation uploadJksCertificate(MultipartFormDataOutput output);
/** /**
* Get a keystore file for the client, containing private key and public certificate * Get a keystore file for the client, containing private key and public certificate
@ -91,7 +91,7 @@ public interface ClientAttributeCertificateResource {
@Path("/download") @Path("/download")
@Produces(MediaType.APPLICATION_OCTET_STREAM) @Produces(MediaType.APPLICATION_OCTET_STREAM)
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
public byte[] getKeystore(final KeyStoreConfig config); byte[] getKeystore(final KeyStoreConfig config);
/** /**
* Generate a new keypair and certificate, and get the private key file * Generate a new keypair and certificate, and get the private key file
@ -107,5 +107,5 @@ public interface ClientAttributeCertificateResource {
@Path("/generate-and-download") @Path("/generate-and-download")
@Produces(MediaType.APPLICATION_OCTET_STREAM) @Produces(MediaType.APPLICATION_OCTET_STREAM)
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
public byte[] generateAndGetKeystore(final KeyStoreConfig config); byte[] generateAndGetKeystore(final KeyStoreConfig config);
} }

View file

@ -70,28 +70,28 @@ public interface ClientResource {
ManagementPermissionReference getPermissions(); ManagementPermissionReference getPermissions();
@Path("protocol-mappers") @Path("protocol-mappers")
public ProtocolMappersResource getProtocolMappers(); ProtocolMappersResource getProtocolMappers();
@GET @GET
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public ClientRepresentation toRepresentation(); ClientRepresentation toRepresentation();
@PUT @PUT
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
public void update(ClientRepresentation clientRepresentation); void update(ClientRepresentation clientRepresentation);
@DELETE @DELETE
public void remove(); void remove();
@POST @POST
@Path("client-secret") @Path("client-secret")
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public CredentialRepresentation generateNewSecret(); CredentialRepresentation generateNewSecret();
@GET @GET
@Path("client-secret") @Path("client-secret")
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public CredentialRepresentation getSecret(); CredentialRepresentation getSecret();
/** /**
* Generate a new registration access token for the client * Generate a new registration access token for the client
@ -102,7 +102,7 @@ public interface ClientResource {
@POST @POST
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
public ClientRepresentation regenerateRegistrationAccessToken(); ClientRepresentation regenerateRegistrationAccessToken();
/** /**
* Get representation of certificate resource * Get representation of certificate resource
@ -111,22 +111,22 @@ public interface ClientResource {
* @return * @return
*/ */
@Path("certificates/{attr}") @Path("certificates/{attr}")
public ClientAttributeCertificateResource getCertficateResource(@PathParam("attr") String attributePrefix); ClientAttributeCertificateResource getCertficateResource(@PathParam("attr") String attributePrefix);
@GET @GET
@NoCache @NoCache
@Path("installation/providers/{providerId}") @Path("installation/providers/{providerId}")
public String getInstallationProvider(@PathParam("providerId") String providerId); String getInstallationProvider(@PathParam("providerId") String providerId);
@Path("session-count") @Path("session-count")
@GET @GET
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public Map<String, Integer> getApplicationSessionCount(); Map<String, Integer> getApplicationSessionCount();
@Path("user-sessions") @Path("user-sessions")
@GET @GET
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public List<UserSessionRepresentation> getUserSessions(@QueryParam("first") Integer firstResult, @QueryParam("max") Integer maxResults); List<UserSessionRepresentation> getUserSessions(@QueryParam("first") Integer firstResult, @QueryParam("max") Integer maxResults);
@Path("offline-session-count") @Path("offline-session-count")
@GET @GET
@ -144,10 +144,10 @@ public interface ClientResource {
void pushRevocation(); void pushRevocation();
@Path("/scope-mappings") @Path("/scope-mappings")
public RoleMappingResource getScopeMappings(); RoleMappingResource getScopeMappings();
@Path("/roles") @Path("/roles")
public RolesResource roles(); RolesResource roles();
/** /**
* Get default client scopes. Only name and ids are returned. * Get default client scopes. Only name and ids are returned.

View file

@ -33,21 +33,21 @@ import javax.ws.rs.core.MediaType;
public interface ClientScopeResource { public interface ClientScopeResource {
@Path("protocol-mappers") @Path("protocol-mappers")
public ProtocolMappersResource getProtocolMappers(); ProtocolMappersResource getProtocolMappers();
@Path("/scope-mappings") @Path("/scope-mappings")
public RoleMappingResource getScopeMappings(); RoleMappingResource getScopeMappings();
@GET @GET
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public ClientScopeRepresentation toRepresentation(); ClientScopeRepresentation toRepresentation();
@PUT @PUT
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
public void update(ClientScopeRepresentation rep); void update(ClientScopeRepresentation rep);
@DELETE @DELETE
public void remove(); void remove();
} }

View file

@ -36,23 +36,23 @@ import java.util.List;
public interface ClientsResource { public interface ClientsResource {
@Path("{id}") @Path("{id}")
public ClientResource get(@PathParam("id") String id); ClientResource get(@PathParam("id") String id);
@POST @POST
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
public Response create(ClientRepresentation clientRepresentation); Response create(ClientRepresentation clientRepresentation);
@GET @GET
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public List<ClientRepresentation> findAll(); List<ClientRepresentation> findAll();
@GET @GET
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public List<ClientRepresentation> findAll(@QueryParam("viewableOnly") boolean viewableOnly); List<ClientRepresentation> findAll(@QueryParam("viewableOnly") boolean viewableOnly);
@GET @GET
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public List<ClientRepresentation> findByClientId(@QueryParam("clientId") String clientId); List<ClientRepresentation> findByClientId(@QueryParam("clientId") String clientId);

View file

@ -30,12 +30,12 @@ import javax.ws.rs.core.MediaType;
*/ */
public interface ComponentResource { public interface ComponentResource {
@GET @GET
public ComponentRepresentation toRepresentation(); ComponentRepresentation toRepresentation();
@PUT @PUT
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
public void update(ComponentRepresentation rep); void update(ComponentRepresentation rep);
@DELETE @DELETE
public void remove(); void remove();
} }

View file

@ -36,19 +36,19 @@ import java.util.List;
public interface ComponentsResource { public interface ComponentsResource {
@GET @GET
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public List<ComponentRepresentation> query(); List<ComponentRepresentation> query();
@GET @GET
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public List<ComponentRepresentation> query(@QueryParam("parent") String parent); List<ComponentRepresentation> query(@QueryParam("parent") String parent);
@GET @GET
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public List<ComponentRepresentation> query(@QueryParam("parent") String parent, @QueryParam("type") String type); List<ComponentRepresentation> query(@QueryParam("parent") String parent, @QueryParam("type") String type);
@GET @GET
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public List<ComponentRepresentation> query(@QueryParam("parent") String parent, List<ComponentRepresentation> query(@QueryParam("parent") String parent,
@QueryParam("type") String type, @QueryParam("type") String type,
@QueryParam("name") String name); @QueryParam("name") String name);

View file

@ -73,7 +73,7 @@ public interface GroupResource {
@GET @GET
@NoCache @NoCache
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public GroupRepresentation toRepresentation(); GroupRepresentation toRepresentation();
/** /**
* Update group * Update group
@ -82,10 +82,10 @@ public interface GroupResource {
*/ */
@PUT @PUT
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
public void update(GroupRepresentation rep); void update(GroupRepresentation rep);
@DELETE @DELETE
public void remove(); void remove();
/** /**
@ -99,11 +99,11 @@ public interface GroupResource {
@NoCache @NoCache
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
public Response subGroup(GroupRepresentation rep); Response subGroup(GroupRepresentation rep);
@Path("role-mappings") @Path("role-mappings")
public RoleMappingResource roles(); RoleMappingResource roles();
/** /**
* Get users * Get users
@ -116,7 +116,7 @@ public interface GroupResource {
@NoCache @NoCache
@Path("/members") @Path("/members")
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public List<UserRepresentation> members(); List<UserRepresentation> members();
/** /**
* Get users * Get users
@ -131,7 +131,7 @@ public interface GroupResource {
@NoCache @NoCache
@Path("/members") @Path("/members")
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public List<UserRepresentation> members(@QueryParam("first") Integer firstResult, List<UserRepresentation> members(@QueryParam("first") Integer firstResult,
@QueryParam("max") Integer maxResults); @QueryParam("max") Integer maxResults);
/** /**
@ -150,7 +150,7 @@ public interface GroupResource {
@NoCache @NoCache
@Path("/members") @Path("/members")
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public List<UserRepresentation> members(@QueryParam("first") Integer firstResult, List<UserRepresentation> members(@QueryParam("first") Integer firstResult,
@QueryParam("max") Integer maxResults, @QueryParam("max") Integer maxResults,
@QueryParam("briefRepresentation") Boolean briefRepresentation); @QueryParam("briefRepresentation") Boolean briefRepresentation);
} }

View file

@ -38,34 +38,34 @@ public interface ProtocolMappersResource {
@GET @GET
@Path("protocol/{protocol}") @Path("protocol/{protocol}")
@Produces("application/json") @Produces("application/json")
public List<ProtocolMapperRepresentation> getMappersPerProtocol(@PathParam("protocol") String protocol); List<ProtocolMapperRepresentation> getMappersPerProtocol(@PathParam("protocol") String protocol);
@Path("models") @Path("models")
@POST @POST
@Consumes("application/json") @Consumes("application/json")
public Response createMapper(ProtocolMapperRepresentation rep); Response createMapper(ProtocolMapperRepresentation rep);
@Path("add-models") @Path("add-models")
@POST @POST
@Consumes("application/json") @Consumes("application/json")
public void createMapper(List<ProtocolMapperRepresentation> reps); void createMapper(List<ProtocolMapperRepresentation> reps);
@GET @GET
@Path("models") @Path("models")
@Produces("application/json") @Produces("application/json")
public List<ProtocolMapperRepresentation> getMappers(); List<ProtocolMapperRepresentation> getMappers();
@GET @GET
@Path("models/{id}") @Path("models/{id}")
@Produces("application/json") @Produces("application/json")
public ProtocolMapperRepresentation getMapperById(@PathParam("id") String id); ProtocolMapperRepresentation getMapperById(@PathParam("id") String id);
@PUT @PUT
@Path("models/{id}") @Path("models/{id}")
@Consumes("application/json") @Consumes("application/json")
public void update(@PathParam("id") String id, ProtocolMapperRepresentation rep); void update(@PathParam("id") String id, ProtocolMapperRepresentation rep);
@DELETE @DELETE
@Path("models/{id}") @Path("models/{id}")
public void delete(@PathParam("id") String id); void delete(@PathParam("id") String id);
} }

View file

@ -120,7 +120,7 @@ public interface RealmResource {
@GET @GET
@NoCache @NoCache
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public List<EventRepresentation> getEvents(@QueryParam("type") List<String> types, @QueryParam("client") String client, List<EventRepresentation> getEvents(@QueryParam("type") List<String> types, @QueryParam("client") String client,
@QueryParam("user") String user, @QueryParam("dateFrom") String dateFrom, @QueryParam("dateTo") String dateTo, @QueryParam("user") String user, @QueryParam("dateFrom") String dateFrom, @QueryParam("dateTo") String dateTo,
@QueryParam("ipAddress") String ipAddress, @QueryParam("first") Integer firstResult, @QueryParam("ipAddress") String ipAddress, @QueryParam("first") Integer firstResult,
@QueryParam("max") Integer maxResults); @QueryParam("max") Integer maxResults);
@ -146,31 +146,31 @@ public interface RealmResource {
@GET @GET
@Path("events/config") @Path("events/config")
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public RealmEventsConfigRepresentation getRealmEventsConfig(); RealmEventsConfigRepresentation getRealmEventsConfig();
@PUT @PUT
@Path("events/config") @Path("events/config")
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
public void updateRealmEventsConfig(RealmEventsConfigRepresentation rep); void updateRealmEventsConfig(RealmEventsConfigRepresentation rep);
@GET @GET
@Path("group-by-path/{path: .*}") @Path("group-by-path/{path: .*}")
@NoCache @NoCache
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public GroupRepresentation getGroupByPath(@PathParam("path") String path); GroupRepresentation getGroupByPath(@PathParam("path") String path);
@GET @GET
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
@Path("default-groups") @Path("default-groups")
public List<GroupRepresentation> getDefaultGroups(); List<GroupRepresentation> getDefaultGroups();
@PUT @PUT
@Path("default-groups/{groupId}") @Path("default-groups/{groupId}")
public void addDefaultGroup(@PathParam("groupId") String groupId); void addDefaultGroup(@PathParam("groupId") String groupId);
@DELETE @DELETE
@Path("default-groups/{groupId}") @Path("default-groups/{groupId}")
public void removeDefaultGroup(@PathParam("groupId") String groupId); void removeDefaultGroup(@PathParam("groupId") String groupId);
@Path("identity-provider") @Path("identity-provider")
IdentityProvidersResource identityProviders(); IdentityProvidersResource identityProviders();

View file

@ -36,14 +36,14 @@ import java.util.List;
public interface RealmsResource { public interface RealmsResource {
@Path("/{realm}") @Path("/{realm}")
public RealmResource realm(@PathParam("realm") String realm); RealmResource realm(@PathParam("realm") String realm);
@POST @POST
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
public void create(RealmRepresentation realmRepresentation); void create(RealmRepresentation realmRepresentation);
@GET @GET
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public List<RealmRepresentation> findAll(); List<RealmRepresentation> findAll();
} }

View file

@ -34,12 +34,12 @@ import javax.ws.rs.core.MediaType;
public interface RoleMappingResource { public interface RoleMappingResource {
@GET @GET
public MappingsRepresentation getAll(); MappingsRepresentation getAll();
@Path("realm") @Path("realm")
public RoleScopeResource realmLevel(); RoleScopeResource realmLevel();
@Path("clients/{clientUUID}") @Path("clients/{clientUUID}")
public RoleScopeResource clientLevel(@PathParam("clientUUID") String clientUUID); RoleScopeResource clientLevel(@PathParam("clientUUID") String clientUUID);
} }

View file

@ -36,20 +36,20 @@ import java.util.List;
public interface RoleScopeResource { public interface RoleScopeResource {
@GET @GET
public List<RoleRepresentation> listAll(); List<RoleRepresentation> listAll();
@GET @GET
@Path("available") @Path("available")
public List<RoleRepresentation> listAvailable(); List<RoleRepresentation> listAvailable();
@GET @GET
@Path("composite") @Path("composite")
public List<RoleRepresentation> listEffective(); List<RoleRepresentation> listEffective();
@POST @POST
public void add(List<RoleRepresentation> rolesToAdd); void add(List<RoleRepresentation> rolesToAdd);
@DELETE @DELETE
public void remove(List<RoleRepresentation> rolesToRemove); void remove(List<RoleRepresentation> rolesToRemove);
} }

View file

@ -45,13 +45,13 @@ import java.util.Map;
public interface UserResource { public interface UserResource {
@GET @GET
public UserRepresentation toRepresentation(); UserRepresentation toRepresentation();
@PUT @PUT
public void update(UserRepresentation userRepresentation); void update(UserRepresentation userRepresentation);
@DELETE @DELETE
public void remove(); void remove();
@Path("groups") @Path("groups")
@GET @GET
@ -81,7 +81,7 @@ public interface UserResource {
@POST @POST
@Path("logout") @Path("logout")
public void logout(); void logout();
@ -136,11 +136,11 @@ public interface UserResource {
@PUT @PUT
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
@Deprecated @Deprecated
public void disableCredentialType(List<String> credentialTypes); void disableCredentialType(List<String> credentialTypes);
@PUT @PUT
@Path("reset-password") @Path("reset-password")
public void resetPassword(CredentialRepresentation credentialRepresentation); void resetPassword(CredentialRepresentation credentialRepresentation);
/** /**
* Use executeActionsEmail and pass in the UPDATE_PASSWORD required action * Use executeActionsEmail and pass in the UPDATE_PASSWORD required action
@ -149,7 +149,7 @@ public interface UserResource {
@PUT @PUT
@Path("reset-password-email") @Path("reset-password-email")
@Deprecated @Deprecated
public void resetPasswordEmail(); void resetPasswordEmail();
/** /**
* Use executeActionsEmail and pass in the UPDATE_PASSWORD required action * Use executeActionsEmail and pass in the UPDATE_PASSWORD required action
@ -158,7 +158,7 @@ public interface UserResource {
@PUT @PUT
@Path("reset-password-email") @Path("reset-password-email")
@Deprecated @Deprecated
public void resetPasswordEmail(@QueryParam("client_id") String clientId); void resetPasswordEmail(@QueryParam("client_id") String clientId);
/** /**
* Sends an email to the user with a link within it. If they click on the link they will be asked to perform some actions * Sends an email to the user with a link within it. If they click on the link they will be asked to perform some actions
@ -169,7 +169,7 @@ public interface UserResource {
*/ */
@PUT @PUT
@Path("execute-actions-email") @Path("execute-actions-email")
public void executeActionsEmail(List<String> actions); void executeActionsEmail(List<String> actions);
/** /**
* Sends an email to the user with a link within it. If they click on the link they will be asked to perform some actions * Sends an email to the user with a link within it. If they click on the link they will be asked to perform some actions
@ -185,19 +185,19 @@ public interface UserResource {
*/ */
@PUT @PUT
@Path("execute-actions-email") @Path("execute-actions-email")
public void executeActionsEmail(@QueryParam("client_id") String clientId, @QueryParam("redirect_uri") String redirectUri, List<String> actions); void executeActionsEmail(@QueryParam("client_id") String clientId, @QueryParam("redirect_uri") String redirectUri, List<String> actions);
@PUT @PUT
@Path("send-verify-email") @Path("send-verify-email")
public void sendVerifyEmail(); void sendVerifyEmail();
@PUT @PUT
@Path("send-verify-email") @Path("send-verify-email")
public void sendVerifyEmail(@QueryParam("client_id") String clientId); void sendVerifyEmail(@QueryParam("client_id") String clientId);
@GET @GET
@Path("sessions") @Path("sessions")
public List<UserSessionRepresentation> getUserSessions(); List<UserSessionRepresentation> getUserSessions();
@GET @GET
@Path("offline-sessions/{clientId}") @Path("offline-sessions/{clientId}")
@ -205,27 +205,27 @@ public interface UserResource {
@GET @GET
@Path("federated-identity") @Path("federated-identity")
public List<FederatedIdentityRepresentation> getFederatedIdentity(); List<FederatedIdentityRepresentation> getFederatedIdentity();
@POST @POST
@Path("federated-identity/{provider}") @Path("federated-identity/{provider}")
public Response addFederatedIdentity(@PathParam("provider") String provider, FederatedIdentityRepresentation rep); Response addFederatedIdentity(@PathParam("provider") String provider, FederatedIdentityRepresentation rep);
@Path("federated-identity/{provider}") @Path("federated-identity/{provider}")
@DELETE @DELETE
public void removeFederatedIdentity(final @PathParam("provider") String provider); void removeFederatedIdentity(final @PathParam("provider") String provider);
@Path("role-mappings") @Path("role-mappings")
public RoleMappingResource roles(); RoleMappingResource roles();
@GET @GET
@Path("consents") @Path("consents")
public List<Map<String, Object>> getConsents(); List<Map<String, Object>> getConsents();
@DELETE @DELETE
@Path("consents/{client}") @Path("consents/{client}")
public void revokeConsent(@PathParam("client") String clientId); void revokeConsent(@PathParam("client") String clientId);
@POST @POST
@Path("impersonation") @Path("impersonation")