CsrfTokenGenerator

Generates and validates CSRF tokens.

Hierarchy

See also

\Drupal\Tests\Core\Access\CsrfTokenGeneratorTest

File

core/lib/Drupal/Core/Access/CsrfTokenGenerator.php, line 15

Namespace

Drupal\Core\Access

Members

Name Modifiers Type Description
CsrfTokenGenerator::$privateKey protected property The private key service.
CsrfTokenGenerator::$sessionMetadata protected property The session metadata bag.
CsrfTokenGenerator::computeToken protected function Generates a token based on $value, the token seed, and the private key.
CsrfTokenGenerator::get public function Generates a token based on $value, the user session, and the private key.
CsrfTokenGenerator::validate public function Validates a token based on $value, the user session, and the private key.
CsrfTokenGenerator::__construct public function Constructs the token generator.
doc_Drupal
2016-10-29 08:59:12
Comments
Leave a Comment

Please login to continue.