Symfony\Component\Security\Core\SecurityContextInterface
The SecurityContextInterface.
- Author: Johannes M. Schmitt <schmittjoh@gmail.com>
Synopsis
interface SecurityContextInterface
{
- // constants
- const ACCESS_DENIED_ERROR = '_security.403_error';
- const AUTHENTICATION_ERROR = '_security.last_error';
- const LAST_USERNAME = '_security.last_username';
Constants
Name | Value |
---|---|
ACCESS_DENIED_ERROR | '_security.403_error' |
AUTHENTICATION_ERROR | '_security.last_error' |
LAST_USERNAME | '_security.last_username' |
Methods
public
- getToken() — Returns the current security token.
- isGranted() — Checks if the attributes are granted against the current authentication token and optionally supplied object.
- setToken() — Sets the authentication token.