PHP Класс Neos\Flow\Security\Authorization\Interceptor\PolicyEnforcement

1. If authentication has not been performed (flag is set in the security context) the configured authentication manager is called to authenticate its tokens 2. If a AuthenticationRequired exception has been thrown we look for an authentication entry point in the active tokens to redirect to authentication 3. Then the configured AccessDecisionManager is called to authorize the request/action
Наследование: implements Neos\Flow\Security\Authorization\InterceptorInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$authenticationManager Neos\Flow\Security\Authentication\AuthenticationManagerInterface
$joinPoint Neos\Flow\Aop\JoinPointInterface The current joinpoint
$privilegeManager Neos\Flow\Security\Authorization\PrivilegeManagerInterface
$securityContext Neos\Flow\Security\Context

Открытые методы

Метод Описание
__construct ( Context $securityContext, Neos\Flow\Security\Authentication\AuthenticationManagerInterface $authenticationManager, Neos\Flow\Security\Authorization\PrivilegeManagerInterface $privilegeManager )
invoke ( ) : boolean Invokes the security interception
setJoinPoint ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : void Sets the current joinpoint for this interception

Защищенные методы

Метод Описание
renderDecisionReasonMessage ( string $privilegeReasonMessage ) : string Returns a string message, giving insights what happened during privilege evaluation.

Описание методов

__construct() публичный Метод

public __construct ( Context $securityContext, Neos\Flow\Security\Authentication\AuthenticationManagerInterface $authenticationManager, Neos\Flow\Security\Authorization\PrivilegeManagerInterface $privilegeManager )
$securityContext Neos\Flow\Security\Context The current security context
$authenticationManager Neos\Flow\Security\Authentication\AuthenticationManagerInterface The authentication manager
$privilegeManager Neos\Flow\Security\Authorization\PrivilegeManagerInterface The access decision manager

invoke() публичный Метод

Invokes the security interception
public invoke ( ) : boolean
Результат boolean TRUE if the security checks was passed

renderDecisionReasonMessage() защищенный Метод

Returns a string message, giving insights what happened during privilege evaluation.
protected renderDecisionReasonMessage ( string $privilegeReasonMessage ) : string
$privilegeReasonMessage string
Результат string

setJoinPoint() публичный Метод

Sets the current joinpoint for this interception
public setJoinPoint ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : void
$joinPoint Neos\Flow\Aop\JoinPointInterface The current joinpoint
Результат void

Описание свойств

$authenticationManager защищенное свойство

protected AuthenticationManagerInterface,Neos\Flow\Security\Authentication $authenticationManager
Результат Neos\Flow\Security\Authentication\AuthenticationManagerInterface

$joinPoint защищенное свойство

The current joinpoint
protected JoinPointInterface,Neos\Flow\Aop $joinPoint
Результат Neos\Flow\Aop\JoinPointInterface

$privilegeManager защищенное свойство

protected PrivilegeManagerInterface,Neos\Flow\Security\Authorization $privilegeManager
Результат Neos\Flow\Security\Authorization\PrivilegeManagerInterface

$securityContext защищенное свойство

protected Context,Neos\Flow\Security $securityContext
Результат Neos\Flow\Security\Context