interface SecurityContextInterface
The SecurityContextInterface.
Constants
| ACCESS_DENIED_ERROR |
|
| AUTHENTICATION_ERROR |
|
| LAST_USERNAME |
|
Methods
| TokenInterface|null |
getToken()
Returns the current security token. |
|
|
setToken(TokenInterface $token = null)
Sets the authentication token. |
||
| Boolean |
isGranted(array $attributes, mixed $object = null)
Checks if the attributes are granted against the current authentication token and optionally supplied object. |
Details
at line 32
public TokenInterface|null
getToken()
Returns the current security token.
at line 39
public
setToken(TokenInterface $token = null)
Sets the authentication token.
at line 49
public Boolean
isGranted(array $attributes, mixed $object = null)
Checks if the attributes are granted against the current authentication token and optionally supplied object.