‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Context\SecurityAspect Class Reference
Inheritance diagram for TYPO3\CMS\Core\Context\SecurityAspect:
TYPO3\CMS\Core\Context\AspectInterface

Public Member Functions

 __construct ()
 
 get (string $name)
 
 getReceivedRequestToken ()
 
 setReceivedRequestToken (RequestToken|false|null $receivedRequestToken)
 
 getSigningSecretResolver ()
 
 getNoncePool ()
 
 provideNonce ()
 

Static Public Member Functions

static provideIn (Context $context)
 

Protected Attributes

RequestToken false null $receivedRequestToken = null
 
SigningSecretResolver $signingSecretResolver
 
NoncePool $noncePool
 

Detailed Description

Definition at line 29 of file SecurityAspect.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Context\SecurityAspect::__construct ( )

Definition at line 53 of file SecurityAspect.php.

Member Function Documentation

◆ get()

TYPO3\CMS\Core\Context\SecurityAspect::get ( string  $name)

Get a property from an aspect

Returns
‪mixed
Exceptions
AspectPropertyNotFoundException

Implements TYPO3\CMS\Core\Context\AspectInterface.

Definition at line 65 of file SecurityAspect.php.

References TYPO3\CMS\Core\Context\SecurityAspect\$noncePool, TYPO3\CMS\Core\Context\SecurityAspect\$receivedRequestToken, and TYPO3\CMS\Core\Context\SecurityAspect\$signingSecretResolver.

◆ getNoncePool()

TYPO3\CMS\Core\Context\SecurityAspect::getNoncePool ( )

◆ getReceivedRequestToken()

TYPO3\CMS\Core\Context\SecurityAspect::getReceivedRequestToken ( )

◆ getSigningSecretResolver()

TYPO3\CMS\Core\Context\SecurityAspect::getSigningSecretResolver ( )

Resolves corresponding signing secret providers (such as NoncePool). Example: ‘...->getSigningSecretResolver->findByType('nonce’)resolvesNoncePool`

Definition at line 89 of file SecurityAspect.php.

References TYPO3\CMS\Core\Context\SecurityAspect\$signingSecretResolver.

◆ provideIn()

◆ provideNonce()

TYPO3\CMS\Core\Context\SecurityAspect::provideNonce ( )

Shortcut function to NoncePool, providing a SigningSecret

Todo:
‪this is a "comfort function", might be dropped

Definition at line 103 of file SecurityAspect.php.

◆ setReceivedRequestToken()

TYPO3\CMS\Core\Context\SecurityAspect::setReceivedRequestToken ( RequestToken|false|null  $receivedRequestToken)

Member Data Documentation

◆ $noncePool

NoncePool TYPO3\CMS\Core\Context\SecurityAspect::$noncePool
protected

◆ $receivedRequestToken

RequestToken false null TYPO3\CMS\Core\Context\SecurityAspect::$receivedRequestToken = null
protected

null in case no request token was received false in case a request token was received, which was invalid

Definition at line 35 of file SecurityAspect.php.

Referenced by TYPO3\CMS\Core\Context\SecurityAspect\get(), TYPO3\CMS\Core\Context\SecurityAspect\getReceivedRequestToken(), and TYPO3\CMS\Core\Context\SecurityAspect\setReceivedRequestToken().

◆ $signingSecretResolver

SigningSecretResolver TYPO3\CMS\Core\Context\SecurityAspect::$signingSecretResolver
protected