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
,UserInfoRequest
public abstract class BaseRequest extends Object
- Version:
- April 25. 2022
- Author:
- Javier Rojas Blum
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseRequest()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addCustomParameter(String paramName, String paramValue)
io.jans.as.model.common.AuthenticationMethod
getAuthenticationMethod()
io.jans.as.model.common.AuthorizationMethod
getAuthorizationMethod()
String
getAuthPassword()
String
getAuthUsername()
String
getContentType()
String
getCredentials()
Returns the client credentials (URL encoded).Map<String,String>
getCustomParameters()
String
getEncodedCredentials()
Returns the client credentials encoded using base64.static String
getEncodedCredentials(String clientId, String clientSecret)
org.json.JSONObject
getJSONParameters()
String
getMediaType()
Map<String,String>
getParameters()
abstract String
getQueryString()
boolean
hasCredentials()
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)
-
-
-
Method Detail
-
getContentType
public String getContentType()
-
setContentType
public void setContentType(String contentType)
-
getMediaType
public String getMediaType()
-
setMediaType
public void setMediaType(String mediaType)
-
getAuthUsername
public String getAuthUsername()
-
setAuthUsername
public void setAuthUsername(String authUsername)
-
getAuthPassword
public String getAuthPassword()
-
setAuthPassword
public void setAuthPassword(String authPassword)
-
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)
-
hasCredentials
public boolean hasCredentials()
-
getCredentials
public String getCredentials() throws UnsupportedEncodingException
Returns the client credentials (URL encoded).- Returns:
- The client credentials.
- Throws:
UnsupportedEncodingException
-
getEncodedCredentials
public String 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
-
getJSONParameters
public org.json.JSONObject getJSONParameters() throws org.json.JSONException
- Throws:
org.json.JSONException
-
getQueryString
public abstract String getQueryString()
-
-