Package org.keycloak.services.resources
Class ClientsManagementService
- java.lang.Object
-
- org.keycloak.services.resources.ClientsManagementService
-
public class ClientsManagementService extends Object
- Author:
- Marek Posolda
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.ws.rs.core.HttpHeaders
headers
protected KeycloakSession
session
-
Constructor Summary
Constructors Constructor Description ClientsManagementService(KeycloakSession session, EventBuilder event)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ClientModel
authorizeClient()
static javax.ws.rs.core.UriBuilder
clientsManagementBaseUrl(javax.ws.rs.core.UriBuilder baseUriBuilder)
protected String
getClientClusterHost(javax.ws.rs.core.MultivaluedMap<String,String> formData)
javax.ws.rs.core.Response
registerNode(String authorizationHeader, javax.ws.rs.core.MultivaluedMap<String,String> formData)
URL invoked by adapter to register new client cluster node.static javax.ws.rs.core.UriBuilder
registerNodeUrl(javax.ws.rs.core.UriBuilder baseUriBuilder)
javax.ws.rs.core.Response
unregisterNode(String authorizationHeader, javax.ws.rs.core.MultivaluedMap<String,String> formData)
URL invoked by adapter to register new client cluster node.static javax.ws.rs.core.UriBuilder
unregisterNodeUrl(javax.ws.rs.core.UriBuilder baseUriBuilder)
-
-
-
Field Detail
-
headers
protected final javax.ws.rs.core.HttpHeaders headers
-
session
protected final KeycloakSession session
-
-
Constructor Detail
-
ClientsManagementService
public ClientsManagementService(KeycloakSession session, EventBuilder event)
-
-
Method Detail
-
clientsManagementBaseUrl
public static javax.ws.rs.core.UriBuilder clientsManagementBaseUrl(javax.ws.rs.core.UriBuilder baseUriBuilder)
-
registerNodeUrl
public static javax.ws.rs.core.UriBuilder registerNodeUrl(javax.ws.rs.core.UriBuilder baseUriBuilder)
-
unregisterNodeUrl
public static javax.ws.rs.core.UriBuilder unregisterNodeUrl(javax.ws.rs.core.UriBuilder baseUriBuilder)
-
registerNode
@Path("register-node") @POST @Produces("application/json") public javax.ws.rs.core.Response registerNode(@HeaderParam("Authorization") String authorizationHeader, javax.ws.rs.core.MultivaluedMap<String,String> formData)
URL invoked by adapter to register new client cluster node. Each application cluster node will invoke this URL once it joins cluster- Parameters:
authorizationHeader
-formData
-- Returns:
-
unregisterNode
@Path("unregister-node") @POST @Produces("application/json") public javax.ws.rs.core.Response unregisterNode(@HeaderParam("Authorization") String authorizationHeader, javax.ws.rs.core.MultivaluedMap<String,String> formData)
URL invoked by adapter to register new client cluster node. Each application cluster node will invoke this URL once it joins cluster- Parameters:
authorizationHeader
-formData
-- Returns:
-
authorizeClient
protected ClientModel authorizeClient()
-
-