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

public abstract class BaseRequest extends Object
Version:
April 25. 2022
Author:
Javier Rojas Blum
  • Constructor Details

    • BaseRequest

      protected BaseRequest()
  • Method Details

    • 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)
    • getCustomParameters

      public Map<String,String> getCustomParameters()
    • addCustomParameter

      public void addCustomParameter(String paramName, String paramValue)
    • 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
    • getParameters

      public Map<String,String> getParameters()
    • getJSONParameters

      public org.json.JSONObject getJSONParameters() throws org.json.JSONException
      Throws:
      org.json.JSONException
    • getQueryString

      public abstract String getQueryString()