Package io.jans.as.client
Class RegisterClient
Encapsulates functionality to make Register request calls to an authorization server via REST Services.
- Version:
- August 20, 2019
- Author:
- Javier Rojas Blum, Yuriy Zabrovarnyy, Yuriy Movchan
-
Field Summary
Fields inherited from class io.jans.as.client.BaseClient
clientResponse, executor, request, requestForm, response, resteasyClient, webTarget
-
Constructor Summary
ConstructorsConstructorDescriptionRegisterClient
(String url) Construct a register client by providing an URL where the REST service is located. -
Method Summary
Modifier and TypeMethodDescriptionstatic RegistrationBuilder
builder()
exec()
exec
(org.jboss.resteasy.client.jaxrs.ClientHttpEngine engine) Deprecated.Engine should be shared between clientsexecRegister
(io.jans.as.model.register.ApplicationType applicationType, String clientName, List<String> redirectUri) Executes the call to the REST service requesting to register and process the response.Methods inherited from class io.jans.as.client.BaseClient
addReqParam, addReqParam, applyCookies, closeConnection, getCookies, getExecutor, getHeaders, getRequest, getRequestAsString, getResponse, getResponseAsString, getUrl, initClient, prepareAuthorizatedClientRequest, setExecutor, setRequest, setResponse, setUrl
-
Constructor Details
-
RegisterClient
Construct a register client by providing an URL where the REST service is located.- Parameters:
url
- The REST service location.
-
-
Method Details
-
builder
-
getHttpMethod
- Specified by:
getHttpMethod
in classBaseClient<RegisterRequest,
RegisterResponse>
-
execRegister
public RegisterResponse execRegister(io.jans.as.model.register.ApplicationType applicationType, String clientName, List<String> redirectUri) Executes the call to the REST service requesting to register and process the response.- Parameters:
applicationType
- The application type.clientName
- The client name.redirectUri
- A list of space-delimited redirection URIs.- Returns:
- The service response.
-
exec
-
exec
Deprecated.Engine should be shared between clients
-