PolicyEnforcement
class PolicyEnforcement implements InterceptorInterface (View source)
This is the main security interceptor, which enforces the current security policy and is usually called by the central security aspect:
- If authentication has not been performed (flag is set in the security context) the configured authentication manager is called to authenticate its tokens
- If a AuthenticationRequired exception has been thrown we look for an authentication entry point in the active tokens to redirect to authentication
- Then the configured AccessDecisionManager is called to authorize the request/action
Properties
protected Context | $securityContext | ||
protected AuthenticationManagerInterface | $authenticationManager | ||
protected PrivilegeManagerInterface | $privilegeManager | ||
protected JoinPointInterface | $joinPoint | The current joinpoint |
Methods
__construct(Context $securityContext, AuthenticationManagerInterface $authenticationManager, PrivilegeManagerInterface $privilegeManager)
No description
void
bool
invoke()
Invokes the security interception
string
renderDecisionReasonMessage(string $privilegeReasonMessage)
Returns a string message, giving insights what happened during privilege evaluation.
Details
__construct(Context $securityContext, AuthenticationManagerInterface $authenticationManager, PrivilegeManagerInterface $privilegeManager)
No description
void
setJoinPoint(JoinPointInterface $joinPoint)
Sets the current joinpoint for this interception
bool
invoke()
Invokes the security interception
protected string
renderDecisionReasonMessage(string $privilegeReasonMessage)
Returns a string message, giving insights what happened during privilege evaluation.