Package io.jans.as.client
Class ClientInfoRequest
- java.lang.Object
-
- io.jans.as.client.BaseRequest
-
- io.jans.as.client.ClientInfoRequest
-
public class ClientInfoRequest extends BaseRequest
Represents a Client Info request to send to the authorization server.- Version:
- April 25, 2022
- Author:
- Javier Rojas Blum
-
-
Constructor Summary
Constructors Constructor Description ClientInfoRequest(String accessToken)
Constructs a Client Info Request.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAccessToken()
Returns the access token obtained from Jans Auth authorization request.Map<String,String>
getParameters()
Returns a collection of parameters of the client info request.String
getQueryString()
Returns a query string with the parameters of the Client 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 Detail
-
ClientInfoRequest
public ClientInfoRequest(String accessToken)
Constructs a Client Info Request.- Parameters:
accessToken
- The access token obtained from the Jans Auth authorization request.
-
-
Method Detail
-
getAccessToken
public String getAccessToken()
Returns the access token obtained from Jans Auth authorization request.- Returns:
- The access token obtained from Jans Auth authorization request.
-
setAccessToken
public void setAccessToken(String accessToken)
Sets the access token obtained from Jans Auth authorization request.- Parameters:
accessToken
- The access token obtained from Jans Auth authorization request.
-
getQueryString
public String getQueryString()
Returns a query string with the parameters of the Client Info request. Anynull
or empty parameter will be omitted.- Specified by:
getQueryString
in classBaseRequest
- Returns:
- A query string of parameters.
-
getParameters
public Map<String,String> getParameters()
Returns a collection of parameters of the client info request. Anynull
or empty parameter will be omitted.- Overrides:
getParameters
in classBaseRequest
- Returns:
- A collection of parameters.
-
-