publicKeyId = $publicKeyId; try { $this->privateKey = file_get_contents($privateKeyFile); } catch (Exception $exception) { throw new ClientException( $exception->getMessage(), SDK::INVALID_CREDENTIAL ); } } /** * @return mixed */ public function getPrivateKey() { return $this->privateKey; } /** * @return string */ public function getPublicKeyId() { return $this->publicKeyId; } /** * @return string */ public function __toString() { return "publicKeyId#$this->publicKeyId"; } }