interface SecurityContextInterface implements TokenStorageInterface, AuthorizationCheckerInterface
deprecated
since version 2.6, to be removed in 3.0.
The SecurityContextInterface.
Constants
| ACCESS_DENIED_ERROR | |
| AUTHENTICATION_ERROR | |
| LAST_USERNAME |
Methods
| TokenInterface|null | getToken() Returns the current security token. | from TokenStorageInterface |
| setToken(TokenInterface $token = null) Sets the authentication token. | from TokenStorageInterface | |
| bool | isGranted(mixed $attributes, mixed $object = null) Checks if the attributes are granted against the current authentication token and optionally supplied object. | from AuthorizationCheckerInterface |
Details
TokenInterface|null getToken()
Returns the current security token.
setToken(TokenInterface $token = null)
Sets the authentication token.
bool isGranted(mixed $attributes, mixed $object = null)
Checks if the attributes are granted against the current authentication token and optionally supplied object.
Please login to continue.