You are here

public function Credentials::getAuthentication in Apigee Edge 8

Gets the authentication object which instantiated by the key type.

Return value

\Http\Message\Authentication The authentication object.

Overrides CredentialsInterface::getAuthentication

1 method overrides Credentials::getAuthentication()
OauthCredentials::getAuthentication in src/OauthCredentials.php
Gets the authentication object which instantiated by the key type.

File

src/Credentials.php, line 69

Class

Credentials
The API credentials.

Namespace

Drupal\apigee_edge

Code

public function getAuthentication() : Authentication {
  return $this->keyType
    ->getAuthenticationMethod($this->key);
}