Package io.jans.as.client
Class UserInfoRequest
java.lang.Object
io.jans.as.client.BaseRequest
io.jans.as.client.UserInfoRequest
Represents a User Info request to send to the authorization server.
- Version:
- April 25, 2022
- Author:
- Javier Rojas Blum
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the access token obtained from Jans Auth authorization request.Returns a collection of parameters of the user info request.Returns a query string with the parameters of the User Info request.void
setAccessToken
(String accessToken) Sets the access token obtained from Jans Auth authorization request.Methods inherited from class io.jans.as.client.BaseRequest
addCustomParameter, getAuthenticationMethod, getAuthorizationMethod, getAuthPassword, getAuthUsername, getContentType, getCredentials, getCustomParameters, getEncodedCredentials, getEncodedCredentials, getJSONParameters, getMediaType, hasCredentials, setAuthenticationMethod, setAuthorizationMethod, setAuthPassword, setAuthUsername, setContentType, setMediaType
-
Constructor Details
-
UserInfoRequest
Constructs a User Info Request.- Parameters:
accessToken
- The access token obtained from the Jans Auth authorization request.
-
-
Method Details
-
getAccessToken
Returns the access token obtained from Jans Auth authorization request.- Returns:
- The access token obtained from Jans Auth authorization request.
-
setAccessToken
Sets the access token obtained from Jans Auth authorization request.- Parameters:
accessToken
- The access token obtained from Jans Auth authorization request.
-
getQueryString
Returns a query string with the parameters of the User Info request. Anynull
or empty parameter will be omitted.- Specified by:
getQueryString
in classBaseRequest
- Returns:
- A query string of parameters.
-
getParameters
Returns a collection of parameters of the user info request. Anynull
or empty parameter will be omitted.- Overrides:
getParameters
in classBaseRequest
- Returns:
- A collection of parameters.
-