Interface ClientResource
public interface ClientResource
- Author:
- rodrigo.sasaki@icarros.com.br
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDefaultClientScope
(String clientScopeId) void
addOptionalClientScope
(String clientScopeId) getCertficateResource
(String attributePrefix) Get representation of certificate resourceGet default client scopes.jakarta.ws.rs.core.Response
getInstallationProvider
(String providerId) getOfflineUserSessions
(Integer firstResult, Integer maxResults) Get optional client scopes.Returns indicator if the fine grain permissions are enabled or not.getUserSessions
(Integer firstResult, Integer maxResults) void
void
Generate a new registration access token for the clientvoid
registerNode
(Map<String, String> formParams) void
remove()
void
removeDefaultClientScope
(String clientScopeId) void
removeOptionalClientScope
(String clientScopeId) roles()
Enables or disables the fine grain permissions feature.void
unregisterNode
(String node) void
update
(ClientRepresentation clientRepresentation)
-
Method Details
-
setPermissions
@PUT @Path("/management/permissions") @Consumes("application/json") @Produces("application/json") ManagementPermissionReference setPermissions(ManagementPermissionRepresentation status) Enables or disables the fine grain permissions feature. Returns the updated status of the server in theManagementPermissionReference
.- Parameters:
status
- status request to apply- Returns:
- permission reference indicating the updated status
-
getPermissions
@GET @Path("/management/permissions") @Produces("application/json") ManagementPermissionReference getPermissions()Returns indicator if the fine grain permissions are enabled or not.- Returns:
- current representation of the permissions feature
-
getProtocolMappers
-
toRepresentation
-
update
-
remove
@DELETE void remove() -
generateNewSecret
@POST @Path("client-secret") @Produces("application/json") CredentialRepresentation generateNewSecret() -
getSecret
-
regenerateRegistrationAccessToken
@Path("registration-access-token") @POST @Produces("application/json") @Consumes("application/json") ClientRepresentation regenerateRegistrationAccessToken()Generate a new registration access token for the client- Returns:
-
getCertficateResource
@Path("certificates/{attr}") ClientAttributeCertificateResource getCertficateResource(@PathParam("attr") String attributePrefix) Get representation of certificate resource- Parameters:
attributePrefix
-- Returns:
-
getInstallationProvider
@GET @Path("installation/providers/{providerId}") jakarta.ws.rs.core.Response getInstallationProvider(@PathParam("providerId") String providerId) -
getApplicationSessionCount
-
getUserSessions
@Path("user-sessions") @GET @Produces("application/json") List<UserSessionRepresentation> getUserSessions(@QueryParam("first") Integer firstResult, @QueryParam("max") Integer maxResults) -
getOfflineSessionCount
-
getOfflineUserSessions
@Path("offline-sessions") @GET @Produces("application/json") List<UserSessionRepresentation> getOfflineUserSessions(@QueryParam("first") Integer firstResult, @QueryParam("max") Integer maxResults) -
pushRevocation
@POST @Path("push-revocation") @Produces("application/json") void pushRevocation() -
getScopeMappings
-
roles
-
getDefaultClientScopes
@GET @Produces("application/json") @Path("default-client-scopes") List<ClientScopeRepresentation> getDefaultClientScopes()Get default client scopes. Only name and ids are returned.- Returns:
- default client scopes
-
addDefaultClientScope
@PUT @Path("default-client-scopes/{clientScopeId}") void addDefaultClientScope(@PathParam("clientScopeId") String clientScopeId) -
removeDefaultClientScope
@DELETE @Path("default-client-scopes/{clientScopeId}") void removeDefaultClientScope(@PathParam("clientScopeId") String clientScopeId) -
getOptionalClientScopes
@GET @Produces("application/json") @Path("optional-client-scopes") List<ClientScopeRepresentation> getOptionalClientScopes()Get optional client scopes. Only name and ids are returned.- Returns:
- optional client scopes
-
addOptionalClientScope
@PUT @Path("optional-client-scopes/{clientScopeId}") void addOptionalClientScope(@PathParam("clientScopeId") String clientScopeId) -
removeOptionalClientScope
@DELETE @Path("optional-client-scopes/{clientScopeId}") void removeOptionalClientScope(@PathParam("clientScopeId") String clientScopeId) -
getServiceAccountUser
@Path("/service-account-user") @GET @Produces("application/json") UserRepresentation getServiceAccountUser() -
registerNode
-
unregisterNode
-
testNodesAvailable
@Path("test-nodes-available") @GET @Produces("application/json") GlobalRequestResult testNodesAvailable() -
authorization
-
getClientRotatedSecret
@Path("client-secret/rotated") @GET @Produces("application/json") CredentialRepresentation getClientRotatedSecret() -
invalidateRotatedSecret
@Path("client-secret/rotated") @DELETE @Produces("application/json") @Consumes("application/json") void invalidateRotatedSecret()
-