Package io.jans.as.client
Class BaseRequest
java.lang.Object
io.jans.as.client.BaseRequest
- Direct Known Subclasses:
AuthorizationRequest
,ClientAuthnRequest
,ClientInfoRequest
,EndSessionRequest
,FirebaseCloudMessagingRequest
,GluuConfigurationRequest
,JwkRequest
,OpenIdConfigurationRequest
,OpenIdConnectDiscoveryRequest
,PingCallbackRequest
,PushErrorRequest
,PushTokenDeliveryRequest
,RegisterRequest
,SsaCreateRequest
,SsaGetJwtRequest
,SsaGetRequest
,SsaRevokeRequest
,SsaValidateRequest
,StatusListRequest
,UserInfoRequest
- Version:
- April 25. 2022
- Author:
- Javier Rojas Blum
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCustomParameter
(String paramName, String paramValue) io.jans.as.model.common.AuthenticationMethod
io.jans.as.model.common.AuthorizationMethod
Returns the client credentials (URL encoded).Returns the client credentials encoded using base64.static String
getEncodedCredentials
(String clientId, String clientSecret) org.json.JSONObject
abstract String
boolean
void
setAuthenticationMethod
(io.jans.as.model.common.AuthenticationMethod authenticationMethod) void
setAuthorizationMethod
(io.jans.as.model.common.AuthorizationMethod authorizationMethod) void
setAuthPassword
(String authPassword) void
setAuthUsername
(String authUsername) void
setContentType
(String contentType) void
setMediaType
(String mediaType)
-
Constructor Details
-
BaseRequest
protected BaseRequest()
-
-
Method Details
-
getContentType
-
setContentType
-
getMediaType
-
setMediaType
-
getAuthUsername
-
setAuthUsername
-
getAuthPassword
-
setAuthPassword
-
getAuthenticationMethod
public io.jans.as.model.common.AuthenticationMethod getAuthenticationMethod() -
setAuthenticationMethod
public void setAuthenticationMethod(io.jans.as.model.common.AuthenticationMethod authenticationMethod) -
getAuthorizationMethod
public io.jans.as.model.common.AuthorizationMethod getAuthorizationMethod() -
setAuthorizationMethod
public void setAuthorizationMethod(io.jans.as.model.common.AuthorizationMethod authorizationMethod) -
getCustomParameters
-
addCustomParameter
-
hasCredentials
public boolean hasCredentials() -
getCredentials
Returns the client credentials (URL encoded).- Returns:
- The client credentials.
- Throws:
UnsupportedEncodingException
-
getEncodedCredentials
Returns the client credentials encoded using base64.- Returns:
- The encoded client credentials.
-
getEncodedCredentials
public static String getEncodedCredentials(String clientId, String clientSecret) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-
getParameters
-
getJSONParameters
public org.json.JSONObject getJSONParameters() throws org.json.JSONException- Throws:
org.json.JSONException
-
getQueryString
-