PHP 8.2.30
Preview: SecurityContextInterface.php Size: 1.39 KB
/opt/cloudlinux/alt-php54/root/usr/share/pear/Symfony/Component/Security/Core/SecurityContextInterface.php

<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Security\Core;

use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;

/**
 * The SecurityContextInterface.
 *
 * @author Johannes M. Schmitt <schmittjoh@gmail.com>
 */
interface SecurityContextInterface
{
    const ACCESS_DENIED_ERROR  = '_security.403_error';
    const AUTHENTICATION_ERROR = '_security.last_error';
    const LAST_USERNAME        = '_security.last_username';

    /**
     * Returns the current security token.
     *
     * @return TokenInterface|null A TokenInterface instance or null if no authentication information is available
     */
    public function getToken();

    /**
     * Sets the authentication token.
     *
     * @param TokenInterface $token A TokenInterface token, or null if no further authentication information should be stored
     */
    public function setToken(TokenInterface $token = null);

    /**
     * Checks if the attributes are granted against the current authentication token and optionally supplied object.
     *
     * @param mixed $attributes
     * @param mixed $object
     *
     * @return Boolean
     */
    public function isGranted($attributes, $object = null);
}

Directory Contents

Dirs: 10 × Files: 3

Name Size Perms Modified Actions
- drwxr-xr-x 2024-03-03 22:54:51
Edit Download
- drwxr-xr-x 2024-03-03 22:54:51
Edit Download
Encoder DIR
- drwxr-xr-x 2024-03-03 22:54:51
Edit Download
Event DIR
- drwxr-xr-x 2024-03-03 22:54:51
Edit Download
Exception DIR
- drwxr-xr-x 2024-03-03 22:54:51
Edit Download
Resources DIR
- drwxr-xr-x 2024-03-03 22:54:50
Edit Download
Role DIR
- drwxr-xr-x 2024-03-03 22:54:51
Edit Download
User DIR
- drwxr-xr-x 2024-03-03 22:54:51
Edit Download
Util DIR
- drwxr-xr-x 2024-03-03 22:54:51
Edit Download
Validator DIR
- drwxr-xr-x 2024-03-03 22:54:50
Edit Download
1.00 KB lrw-r--r-- 2019-12-18 11:22:57
Edit Download
2.78 KB lrw-r--r-- 2019-12-18 11:22:57
Edit Download
1.39 KB lrw-r--r-- 2019-12-18 11:22:57
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).