You are here

private function SDKConnector::setCredentials in Apigee Edge 8

Changes credentials used by the API client.

Parameters

\Drupal\apigee_edge\CredentialsInterface $credentials: The new credentials object.

1 call to SDKConnector::setCredentials()
SDKConnector::testConnection in src/SDKConnector.php
Test connection with the Edge Management Server.

File

src/SDKConnector.php, line 217

Class

SDKConnector
Provides an Apigee Edge SDK connector.

Namespace

Drupal\apigee_edge

Code

private function setCredentials(CredentialsInterface $credentials) {
  self::$credentials = $credentials;

  // Ensure that client will be rebuilt with the new key.
  self::$client = NULL;
}