Drupal 8  8.0.2
PrivateKey Class Reference

Public Member Functions

 __construct (StateInterface $state)
 
 get ()
 
 set ($key)
 

Protected Member Functions

 create ()
 

Protected Attributes

 $state
 

Detailed Description

Manages the Drupal private key.

Constructor & Destructor Documentation

__construct ( StateInterface  $state)

Constructs the token generator.

Parameters
\Drupal\Core\State\StateInterface$stateThe state service.

References Drupal\state().

Here is the call graph for this function:

Member Function Documentation

create ( )
protected

Creates a new private key.

Returns
string The private key.

References Crypt\randomBytesBase64().

Referenced by PrivateKey\get().

Here is the call graph for this function:

Here is the caller graph for this function:

get ( )

Gets the private key.

Returns
string The private key.

References PrivateKey\create(), PrivateKey\set(), and Drupal\state().

Here is the call graph for this function:

set (   $key)

Sets the private key.

Parameters
string$keyThe private key to set.

References Drupal\state().

Referenced by PrivateKey\get().

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: