/**
  * @param array $credential Limelight Credentials
  * @param array $config Configuration options
  *
  * @throws CdnClientException if either credential or config is invalid
  */
 public function __construct(array $credential, array $config)
 {
     parent::__construct($credential, $config);
     $this->validateInParams(ApiConstants::CONST_ROOT, $this->getRequiredCredential(), $this->getRequiredConfig());
     // check if the sharedKey is hex string or not
     if (!ctype_xdigit($credential[ApiConstants::CONST_ROOT][ApiConstants::CREDENTIAL_SHARED_KEY])) {
         throw new \CdnPurge\CdnClientException("Limelight SharedKey must be a hex string.");
     }
 }
 /**
  * @param array $credential CloudFront Credentials
  * @param array $config Configuration options
  *
  * @throws CdnClientException if either credential or config is invalid
  */
 public function __construct(array $credential, array $config)
 {
     parent::__construct($credential, $config);
     $this->validateInParams(ApiConstants::CONST_ROOT, $this->getRequiredCredential(), $this->getRequiredConfig());
 }