Package org.keycloak.adapters
Class ServerRequest
java.lang.Object
org.keycloak.adapters.ServerRequest
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiderror(int status, org.apache.http.HttpEntity entity) static AccessTokenResponseinvokeAccessCodeToToken(KeycloakDeployment deployment, String code, String redirectUri, String sessionId) static AccessTokenResponseinvokeAccessCodeToToken(KeycloakDeployment deployment, String code, String redirectUri, String sessionId, String codeVerifier) static voidinvokeClientManagementRequest(KeycloakDeployment deployment, String host, String endpointUrl) static voidinvokeLogout(KeycloakDeployment deployment, String refreshToken) static AccessTokenResponseinvokeRefresh(KeycloakDeployment deployment, String refreshToken) static voidinvokeRegisterNode(KeycloakDeployment deployment, String host) static voidinvokeUnregisterNode(KeycloakDeployment deployment, String host) protected static String
-
Constructor Details
-
ServerRequest
public ServerRequest()
-
-
Method Details
-
invokeLogout
public static void invokeLogout(KeycloakDeployment deployment, String refreshToken) throws IOException, ServerRequest.HttpFailure - Throws:
IOExceptionServerRequest.HttpFailure
-
invokeAccessCodeToToken
public static AccessTokenResponse invokeAccessCodeToToken(KeycloakDeployment deployment, String code, String redirectUri, String sessionId) throws IOException, ServerRequest.HttpFailure - Throws:
IOExceptionServerRequest.HttpFailure
-
invokeAccessCodeToToken
public static AccessTokenResponse invokeAccessCodeToToken(KeycloakDeployment deployment, String code, String redirectUri, String sessionId, String codeVerifier) throws IOException, ServerRequest.HttpFailure - Throws:
IOExceptionServerRequest.HttpFailure
-
invokeRefresh
public static AccessTokenResponse invokeRefresh(KeycloakDeployment deployment, String refreshToken) throws IOException, ServerRequest.HttpFailure - Throws:
IOExceptionServerRequest.HttpFailure
-
invokeRegisterNode
public static void invokeRegisterNode(KeycloakDeployment deployment, String host) throws ServerRequest.HttpFailure, IOException - Throws:
ServerRequest.HttpFailureIOException
-
invokeUnregisterNode
public static void invokeUnregisterNode(KeycloakDeployment deployment, String host) throws ServerRequest.HttpFailure, IOException - Throws:
ServerRequest.HttpFailureIOException
-
invokeClientManagementRequest
public static void invokeClientManagementRequest(KeycloakDeployment deployment, String host, String endpointUrl) throws ServerRequest.HttpFailure, IOException - Throws:
ServerRequest.HttpFailureIOException
-
error
public static void error(int status, org.apache.http.HttpEntity entity) throws ServerRequest.HttpFailure, IOException - Throws:
ServerRequest.HttpFailureIOException
-
stripOauthParametersFromRedirect
-