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 TypeMethodDescriptionvoidaddCustomParameter(String paramName, String paramValue) io.jans.as.model.common.AuthenticationMethodio.jans.as.model.common.AuthorizationMethodReturns the client credentials (URL encoded).Returns the client credentials encoded using base64.static StringgetEncodedCredentials(String clientId, String clientSecret) org.json.JSONObjectabstract StringbooleanvoidsetAuthenticationMethod(io.jans.as.model.common.AuthenticationMethod authenticationMethod) voidsetAuthorizationMethod(io.jans.as.model.common.AuthorizationMethod authorizationMethod) voidsetAuthPassword(String authPassword) voidsetAuthUsername(String authUsername) voidsetContentType(String contentType) voidsetMediaType(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
-