You are here

public function OauthCredentials::getAuthentication in Apigee Edge 8

Gets the authentication object which instantiated by the key type.

Return value

\Http\Message\Authentication The authentication object.

Overrides Credentials::getAuthentication

File

src/OauthCredentials.php, line 60

Class

OauthCredentials
The API credentials for OAuth.

Namespace

Drupal\apigee_edge

Code

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