/** * @param $serviceName * @param $requestPayload string Data encrypted using service private key (binary form!). */ public function __construct($serviceName, $requestPayload) { $this->config = Config::getInstance(); $this->service = $this->config->getService($serviceName); $this->encryptedPayload = $requestPayload; $this->decryptPayloadToCache(); }