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
clientRequest, clientResponse, executor, request, response
-
-
Constructor Summary
Constructors Constructor Description EndSessionClient(java.lang.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 EndSessionResponseexec()Executes the call to the REST Service and processes the response.EndSessionResponseexecEndSession(java.lang.String idTokenHint, java.lang.String postLogoutRedirectUri, java.lang.String state)Executes the call to the REST Service requesting to end session and processes the response.java.lang.StringgetHttpMethod()-
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:
getHttpMethodin classBaseClient<EndSessionRequest,EndSessionResponse>
-
execEndSession
public EndSessionResponse execEndSession(java.lang.String idTokenHint, java.lang.String postLogoutRedirectUri, java.lang.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.
-
-