Package io.jans.as.client
Class UserInfoClient
Encapsulates functionality to make user info request calls to an authorization server via REST Services.
- Version:
- December 26, 2016
- Author:
- Javier Rojas Blum
-
Field Summary
Fields inherited from class io.jans.as.client.BaseClient
clientResponse, executor, request, requestForm, response, resteasyClient, webTarget
-
Constructor Summary
ConstructorsConstructorDescriptionUserInfoClient
(String url) Constructs an User Info client by providing a REST url where the service is located. -
Method Summary
Modifier and TypeMethodDescriptionexec()
Executes the call to the REST Service and processes the response.execUserInfo
(String accessToken) Executes the call to the REST Service and processes the response.void
setJwksUri
(String jwksUri) void
setPrivateKey
(PrivateKey privateKey) void
setSharedKey
(String sharedKey) 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
-
UserInfoClient
Constructs an User Info client by providing a REST url where the service is located.- Parameters:
url
- The REST Service location.
-
-
Method Details
-
getHttpMethod
- Specified by:
getHttpMethod
in classBaseClient<UserInfoRequest,
UserInfoResponse>
-
execUserInfo
Executes the call to the REST Service and processes the response.- Parameters:
accessToken
- The access token obtained from the Jans Auth authorization request.- Returns:
- The service response.
-
exec
Executes the call to the REST Service and processes the response.- Returns:
- The service response.
-
setPrivateKey
-
getJwksUri
-
setJwksUri
-