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) |
static AccessTokenResponse |
invokeAccessCodeToToken(KeycloakDeployment deployment,
String code,
String redirectUri) |
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) |
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) 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) 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 error(int status, org.apache.http.HttpEntity entity) throws ServerRequest.HttpFailure, IOException
ServerRequest.HttpFailure
IOException
Copyright © 2014. All Rights Reserved.