You are here

public function Storage::getPrivateKey in OAuth2 Server 7

File

lib/Drupal/oauth2_server/Storage.php, line 475

Class

Storage
Provides Drupal storage (through the underlying Entity API) for the library.

Namespace

Drupal\oauth2_server

Code

public function getPrivateKey($client_key = null) {

  // The library allows for per-client keys. The module uses global keys
  // that are regenerated every day, following Google's example.
  $keys = oauth2_server_get_keys();
  return $keys['private_key'];
}