@ApplicationScoped public class AuthServerRequestExecutor extends Object
| Constructor and Description |
|---|
AuthServerRequestExecutor() |
| Modifier and Type | Method and Description |
|---|---|
String |
execute(String url,
String method) |
String |
execute(String url,
String urlParameters,
String method) |
String |
execute(String url,
String clientId,
String secret,
String method) |
String |
execute(String url,
String urlParameters,
String clientId,
String secret,
String method)
Performs an HTTP call to the Keycloak server, returning the server's response as String.
|
public String execute(String url, String urlParameters, String method) throws Exception
Exceptionpublic String execute(String url, String clientId, String secret, String method) throws Exception
Exceptionpublic String execute(String url, String urlParameters, String clientId, String secret, String method) throws Exception
url - the full URL to call, including protocol, host, port and path.urlParameters - the HTTP Query Parameters properly encoded and without the leading "?".clientId - the OAuth client ID.secret - the OAuth client secret.method - the HTTP method to use (GET or POST). If anything other than POST is sent, GET is used.Exception - if communication problems with the Keycloak server occurs.Copyright © 2015–2016. All rights reserved.