clientCredentials = $clientCredentials; } /** * {@inheritDoc} */ public function setCredentials(CredentialsInterface $credentials) { $this->credentials = $credentials; } /** * Generate a signing key. * * @return string */ protected function key() { $key = rawurlencode($this->clientCredentials->getSecret()).'&'; if ($this->credentials !== null) { $key .= rawurlencode($this->credentials->getSecret()); } return $key; } }