Class ClientsManagementService

java.lang.Object
org.keycloak.services.resources.ClientsManagementService

public class ClientsManagementService extends Object
Author:
Marek Posolda
  • Field Details

    • headers

      protected final jakarta.ws.rs.core.HttpHeaders headers
    • session

      protected final KeycloakSession session
  • Constructor Details

  • Method Details

    • clientsManagementBaseUrl

      public static jakarta.ws.rs.core.UriBuilder clientsManagementBaseUrl(jakarta.ws.rs.core.UriBuilder baseUriBuilder)
    • registerNodeUrl

      public static jakarta.ws.rs.core.UriBuilder registerNodeUrl(jakarta.ws.rs.core.UriBuilder baseUriBuilder)
    • unregisterNodeUrl

      public static jakarta.ws.rs.core.UriBuilder unregisterNodeUrl(jakarta.ws.rs.core.UriBuilder baseUriBuilder)
    • registerNode

      @Path("register-node") @POST @Produces("application/json") public jakarta.ws.rs.core.Response registerNode(@HeaderParam("Authorization") String authorizationHeader, jakarta.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 jakarta.ws.rs.core.Response unregisterNode(@HeaderParam("Authorization") String authorizationHeader, jakarta.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()
    • getClientClusterHost

      protected String getClientClusterHost(jakarta.ws.rs.core.MultivaluedMap<String,String> formData)