Package io.jans.as.client
Class RegisterClient
- java.lang.Object
-
- io.jans.as.client.BaseClient<RegisterRequest,RegisterResponse>
-
- io.jans.as.client.RegisterClient
-
public class RegisterClient extends BaseClient<RegisterRequest,RegisterResponse>
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
clientRequest, clientResponse, executor, request, response
-
-
Constructor Summary
Constructors Constructor Description RegisterClient(java.lang.String url)
Construct a register client by providing an URL where the REST service is located.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RegisterResponse
exec()
RegisterResponse
exec(org.jboss.resteasy.client.ClientExecutor clientExecutor)
Deprecated.RegisterResponse
execRegister(io.jans.as.model.register.ApplicationType applicationType, java.lang.String clientName, java.util.List<java.lang.String> redirectUri)
Executes the call to the REST service requesting to register and process the response.java.lang.String
getHttpMethod()
-
Methods inherited from class io.jans.as.client.BaseClient
addReqParam, addReqParam, closeConnection, getCookies, getExecutor, getHeaders, getRequest, getRequestAsString, getResponse, getResponseAsString, getUrl, initClientRequest, putAllFormParameters, setExecutor, setRequest, setResponse, setUrl
-
-
-
-
Method Detail
-
getHttpMethod
public java.lang.String getHttpMethod()
- Specified by:
getHttpMethod
in classBaseClient<RegisterRequest,RegisterResponse>
-
execRegister
public RegisterResponse execRegister(io.jans.as.model.register.ApplicationType applicationType, java.lang.String clientName, java.util.List<java.lang.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
public RegisterResponse exec()
-
exec
@Deprecated public RegisterResponse exec(org.jboss.resteasy.client.ClientExecutor clientExecutor)
Deprecated.
-
-