Interface ClientResource


  • public interface ClientResource
    Author:
    rodrigo.sasaki@icarros.com.br
    • Method Detail

      • 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
      • update

        @PUT
        @Consumes("application/json")
        void update​(ClientRepresentation clientRepresentation)
      • remove

        @DELETE
        void remove()
      • generateNewSecret

        @POST
        @Path("client-secret")
        @Produces("application/json")
        CredentialRepresentation generateNewSecret()
      • 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}")
        String getInstallationProvider​(@PathParam("providerId")
                                       String providerId)
      • getApplicationSessionCount

        @Path("session-count")
        @GET
        @Produces("application/json")
        Map<String,​Integer> getApplicationSessionCount()
      • getOfflineSessionCount

        @Path("offline-session-count")
        @GET
        @Produces("application/json")
        Map<String,​Long> 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()
      • 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

        @Path("nodes")
        @POST
        @Consumes("application/json")
        void registerNode​(Map<String,​String> formParams)
      • unregisterNode

        @Path("nodes/{node}")
        @DELETE
        void unregisterNode​(@PathParam("node")
                            String node)
      • testNodesAvailable

        @Path("test-nodes-available")
        @GET
        @Produces("application/json")
        GlobalRequestResult testNodesAvailable()
      • 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()