Package io.jans.as.client
Class UserInfoClient
- java.lang.Object
-
- io.jans.as.client.BaseClient<UserInfoRequest,UserInfoResponse>
-
- io.jans.as.client.UserInfoClient
-
public class UserInfoClient extends BaseClient<UserInfoRequest,UserInfoResponse>
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
clientRequest, clientResponse, executor, request, response
-
-
Constructor Summary
Constructors Constructor Description UserInfoClient(java.lang.String url)Constructs an User Info client by providing a REST url where the service is located.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserInfoResponseexec()Executes the call to the REST Service and processes the response.UserInfoResponseexecUserInfo(java.lang.String accessToken)Executes the call to the REST Service and processes the response.java.lang.StringgetHttpMethod()java.lang.StringgetJwksUri()voidsetJwksUri(java.lang.String jwksUri)voidsetPrivateKey(java.security.PrivateKey privateKey)voidsetSharedKey(java.lang.String sharedKey)-
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<UserInfoRequest,UserInfoResponse>
-
execUserInfo
public UserInfoResponse execUserInfo(java.lang.String accessToken)
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
public UserInfoResponse exec()
Executes the call to the REST Service and processes the response.- Returns:
- The service response.
-
setSharedKey
public void setSharedKey(java.lang.String sharedKey)
-
setPrivateKey
public void setPrivateKey(java.security.PrivateKey privateKey)
-
getJwksUri
public java.lang.String getJwksUri()
-
setJwksUri
public void setJwksUri(java.lang.String jwksUri)
-
-