Package io.jans.as.client
Class EndSessionClient
- java.lang.Object
-
- io.jans.as.client.BaseClient<EndSessionRequest,EndSessionResponse>
-
- io.jans.as.client.EndSessionClient
-
public class EndSessionClient extends BaseClient<EndSessionRequest,EndSessionResponse>
Encapsulates functionality to make end session request calls to an authorization server via REST Services.- Version:
- August 9, 2017
- Author:
- Javier Rojas Blum
-
-
Field Summary
-
Fields inherited from class io.jans.as.client.BaseClient
clientResponse, executor, request, requestForm, response, resteasyClient, webTarget
-
-
Constructor Summary
Constructors Constructor Description EndSessionClient(String url)
Constructs an end session client by providing an URL where the REST service is located.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EndSessionResponse
exec()
Executes the call to the REST Service and processes the response.EndSessionResponse
execEndSession(String idTokenHint, String postLogoutRedirectUri, String state)
Executes the call to the REST Service requesting to end session and processes the response.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
-
-
-
-
Constructor Detail
-
EndSessionClient
public EndSessionClient(String url)
Constructs an end session client by providing an URL where the REST service is located.- Parameters:
url
- The REST service location.
-
-
Method Detail
-
getHttpMethod
public String getHttpMethod()
- Specified by:
getHttpMethod
in classBaseClient<EndSessionRequest,EndSessionResponse>
-
execEndSession
public EndSessionResponse execEndSession(String idTokenHint, String postLogoutRedirectUri, String state)
Executes the call to the REST Service requesting to end session and processes the response.- Parameters:
idTokenHint
- The issued ID Token.postLogoutRedirectUri
- The URL to which the RP is requesting that the End-User's User-Agent be redirected after a logout has been performed.state
- The state.- Returns:
- The service response.
-
exec
public EndSessionResponse exec()
Executes the call to the REST Service and processes the response.- Returns:
- The service response.
-
-