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
clientResponse, executor, request, requestForm, response, resteasyClient, webTarget
-
-
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 Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static RegistrationBuilder
builder()
RegisterResponse
exec()
RegisterResponse
exec(org.jboss.resteasy.client.jaxrs.ClientHttpEngine engine)
Deprecated.Engine should be shared between clientsRegisterResponse
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, applyCookies, closeConnection, getCookies, getExecutor, getHeaders, getRequest, getRequestAsString, getResponse, getResponseAsString, getUrl, initClient, prepareAuthorizatedClientRequest, setExecutor, setRequest, setResponse, setUrl
-
-
-
-
Method Detail
-
builder
public static RegistrationBuilder builder()
-
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.jaxrs.ClientHttpEngine engine)
Deprecated.Engine should be shared between clients
-
-