You are here

protected function Oauth2GrantManager::setKeyPaths in Simple OAuth (OAuth2) & OpenID Connect 8.4

Same name and namespace in other branches
  1. 8.2 src/Plugin/Oauth2GrantManager.php \Drupal\simple_oauth\Plugin\Oauth2GrantManager::setKeyPaths()
  2. 8.3 src/Plugin/Oauth2GrantManager.php \Drupal\simple_oauth\Plugin\Oauth2GrantManager::setKeyPaths()
  3. 5.x src/Plugin/Oauth2GrantManager.php \Drupal\simple_oauth\Plugin\Oauth2GrantManager::setKeyPaths()

Set the public and private key paths.

Parameters

\Drupal\Core\Config\ImmutableConfig $settings: The Simple OAuth settings configuration object.

1 call to Oauth2GrantManager::setKeyPaths()
Oauth2GrantManager::__construct in src/Plugin/Oauth2GrantManager.php
Constructor for Oauth2GrantManager objects.

File

src/Plugin/Oauth2GrantManager.php, line 175

Class

Oauth2GrantManager
Provides the OAuth2 Grant plugin manager.

Namespace

Drupal\simple_oauth\Plugin

Code

protected function setKeyPaths(ImmutableConfig $settings) {
  $this->publicKeyPath = $settings
    ->get('public_key');
  $this->privateKeyPath = $settings
    ->get('private_key');
}