Class SecurityContext
Class SecurityContext
- Mapbender\CoreBundle\Component\SecurityContext implements Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface, Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface
Namespace: Mapbender\CoreBundle\Component
Package: FOM\UserBundle\Component
Copyright: 2015 by WhereGroup GmbH & Co. KG
Author: Andriy Oblivantsev <eslider@gmail.com>
Author: Mohamed Tahrioui <mohamed.tahrioui@wheregroup.com>
Located at Mapbender/CoreBundle/Component/SecurityContext.php
Package: FOM\UserBundle\Component
Copyright: 2015 by WhereGroup GmbH & Co. KG
Author: Andriy Oblivantsev <eslider@gmail.com>
Author: Mohamed Tahrioui <mohamed.tahrioui@wheregroup.com>
Located at Mapbender/CoreBundle/Component/SecurityContext.php
Methods summary
public
|
#
__construct( Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface|Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface $tokenStorage, Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface|Symfony\Component\Security\Core\Authorization\AccessDecisionManagerInterface $authorizationChecker, boolean $alwaysAuthenticate = false )
For backwards compatibility, the signature of sf <2.6 still works. |
public
|
|
public
|
|
public
|
|
public
|
|
public
array
|
|
public
boolean
|
|
public
boolean
|
#
checkGranted( string $action, object $object, boolean $throwException = true )
Checks the grant for an action and an object. |
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
Magic methods summary
Constants summary
string |
ACCESS_DENIED_ERROR
|
# Mapbender\CoreBundle\Component\Security::ACCESS_DENIED_ERROR |
string |
AUTHENTICATION_ERROR
|
# Mapbender\CoreBundle\Component\Security::AUTHENTICATION_ERROR |
string |
LAST_USERNAME
|
# Mapbender\CoreBundle\Component\Security::LAST_USERNAME |
string |
MAX_USERNAME_LENGTH
|
# Mapbender\CoreBundle\Component\Security::MAX_USERNAME_LENGTH |
string |
PERMISSION_MASTER
|
# "MASTER" |
string |
PERMISSION_OPERATOR
|
# "OPERATOR" |
string |
PERMISSION_CREATE
|
# "CREATE" |
string |
PERMISSION_DELETE
|
# "DELETE" |
string |
PERMISSION_EDIT
|
# "EDIT" |
string |
PERMISSION_VIEW
|
# "VIEW" |
integer |
USER_ANONYMOUS_ID
|
# 0 |
string |
USER_ANONYMOUS_NAME
|
# "anon." |