Package org.wildfly.security.http.oidc
Class ServerRequest
- java.lang.Object
-
- org.wildfly.security.http.oidc.ServerRequest
-
public class ServerRequest extends Object
- Author:
- Bill Burke, Farah Juma
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServerRequest.HttpFailure
-
Field Summary
Fields Modifier and Type Field Description private static int
BUFFER_LENGTH
-
Constructor Summary
Constructors Constructor Description ServerRequest()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
error(int status, org.apache.http.HttpEntity entity)
static AccessAndIDTokenResponse
getBearerToken(OidcClientConfiguration oidcClientConfiguration, String username, String password)
static AccessAndIDTokenResponse
invokeAccessCodeToToken(OidcClientConfiguration deployment, String code, String redirectUri)
static void
invokeClientManagementRequestForKeycloak(OidcClientConfiguration deployment, String host, String endpointUrl)
static void
invokeLogout(OidcClientConfiguration deployment, String refreshToken)
static AccessAndIDTokenResponse
invokeRefresh(OidcClientConfiguration deployment, String refreshToken)
static void
invokeRegisterNodeForKeycloak(OidcClientConfiguration deployment, String host)
static void
invokeUnregisterNodeForKeycloak(OidcClientConfiguration deployment, String host)
private static String
readString(InputStream in, Charset charset)
-
-
-
Field Detail
-
BUFFER_LENGTH
private static final int BUFFER_LENGTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
invokeRefresh
public static AccessAndIDTokenResponse invokeRefresh(OidcClientConfiguration deployment, String refreshToken) throws IOException, ServerRequest.HttpFailure
- Throws:
IOException
ServerRequest.HttpFailure
-
invokeLogout
public static void invokeLogout(OidcClientConfiguration deployment, String refreshToken) throws IOException, ServerRequest.HttpFailure
- Throws:
IOException
ServerRequest.HttpFailure
-
invokeAccessCodeToToken
public static AccessAndIDTokenResponse invokeAccessCodeToToken(OidcClientConfiguration deployment, String code, String redirectUri) throws IOException, ServerRequest.HttpFailure
- Throws:
IOException
ServerRequest.HttpFailure
-
invokeRegisterNodeForKeycloak
public static void invokeRegisterNodeForKeycloak(OidcClientConfiguration deployment, String host) throws ServerRequest.HttpFailure, IOException
- Throws:
ServerRequest.HttpFailure
IOException
-
invokeUnregisterNodeForKeycloak
public static void invokeUnregisterNodeForKeycloak(OidcClientConfiguration deployment, String host) throws ServerRequest.HttpFailure, IOException
- Throws:
ServerRequest.HttpFailure
IOException
-
invokeClientManagementRequestForKeycloak
public static void invokeClientManagementRequestForKeycloak(OidcClientConfiguration deployment, String host, String endpointUrl) throws ServerRequest.HttpFailure, IOException
- Throws:
ServerRequest.HttpFailure
IOException
-
error
public static void error(int status, org.apache.http.HttpEntity entity) throws ServerRequest.HttpFailure, IOException
- Throws:
ServerRequest.HttpFailure
IOException
-
readString
private static String readString(InputStream in, Charset charset) throws IOException
- Throws:
IOException
-
getBearerToken
public static AccessAndIDTokenResponse getBearerToken(OidcClientConfiguration oidcClientConfiguration, String username, String password) throws Exception
- Throws:
Exception
-
-