Class Authorization

java.lang.Object
com.cybersource.authsdk.core.Authorization

public class Authorization extends Object
This class calls for the generation of Signature message depending on the authentication type.
  • Constructor Details

    • Authorization

      public Authorization()
  • Method Details

    • setJWTRequestBody

      public void setJWTRequestBody(String jwtrequestBody)
      Parameters:
      jwtrequestBody - - not null and required values for JWT
    • getToken

      public String getToken(MerchantConfig merchantConfig) throws ConfigException
      Parameters:
      merchantConfig - -contains merchant information.
      Returns:
      token generated as per http_signature or JWT.
      Throws:
      ConfigException - - if some value will be wrong or missing for merchant.