public class ServerRequest extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ServerRequest.HttpFailure |
Constructor and Description |
---|
ServerRequest() |
Modifier and Type | Method and Description |
---|---|
static void |
error(int status,
org.apache.http.HttpEntity entity) |
static AccessTokenResponse |
invokeAccessCodeToToken(org.apache.http.client.HttpClient client,
boolean publicClient,
String code,
String codeUrl,
String redirectUri,
String client_id,
Map<String,String> credentials,
String sessionId) |
static AccessTokenResponse |
invokeAccessCodeToToken(KeycloakDeployment deployment,
String code,
String redirectUri,
String sessionId) |
static void |
invokeClientManagementRequest(org.apache.http.client.HttpClient client,
String host,
String endpointUrl,
String clientId,
Map<String,String> credentials) |
static void |
invokeLogout(KeycloakDeployment deployment,
String refreshToken) |
static AccessTokenResponse |
invokeRefresh(org.apache.http.client.HttpClient client,
boolean publicClient,
String refreshToken,
String refreshUrl,
String client_id,
Map<String,String> credentials) |
static AccessTokenResponse |
invokeRefresh(KeycloakDeployment deployment,
String refreshToken) |
static void |
invokeRegisterNode(KeycloakDeployment deployment,
String host) |
static void |
invokeUnregisterNode(KeycloakDeployment deployment,
String host) |
protected static String |
stripOauthParametersFromRedirect(String uri) |
public static void invokeLogout(KeycloakDeployment deployment, String refreshToken) throws IOException, ServerRequest.HttpFailure
IOException
ServerRequest.HttpFailure
public static AccessTokenResponse invokeAccessCodeToToken(KeycloakDeployment deployment, String code, String redirectUri, String sessionId) throws ServerRequest.HttpFailure, IOException
ServerRequest.HttpFailure
IOException
public static AccessTokenResponse invokeAccessCodeToToken(org.apache.http.client.HttpClient client, boolean publicClient, String code, String codeUrl, String redirectUri, String client_id, Map<String,String> credentials, String sessionId) throws IOException, ServerRequest.HttpFailure
IOException
ServerRequest.HttpFailure
public static AccessTokenResponse invokeRefresh(KeycloakDeployment deployment, String refreshToken) throws IOException, ServerRequest.HttpFailure
IOException
ServerRequest.HttpFailure
public static AccessTokenResponse invokeRefresh(org.apache.http.client.HttpClient client, boolean publicClient, String refreshToken, String refreshUrl, String client_id, Map<String,String> credentials) throws IOException, ServerRequest.HttpFailure
IOException
ServerRequest.HttpFailure
public static void invokeRegisterNode(KeycloakDeployment deployment, String host) throws ServerRequest.HttpFailure, IOException
ServerRequest.HttpFailure
IOException
public static void invokeUnregisterNode(KeycloakDeployment deployment, String host) throws ServerRequest.HttpFailure, IOException
ServerRequest.HttpFailure
IOException
public static void invokeClientManagementRequest(org.apache.http.client.HttpClient client, String host, String endpointUrl, String clientId, Map<String,String> credentials) throws ServerRequest.HttpFailure, IOException
ServerRequest.HttpFailure
IOException
public static void error(int status, org.apache.http.HttpEntity entity) throws ServerRequest.HttpFailure, IOException
ServerRequest.HttpFailure
IOException
Copyright © 2015. All Rights Reserved.