PHP Класс Scheb\TwoFactorBundle\Security\TwoFactor\Trusted\TrustedFilter

Наследование: implements Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationHandlerInterface
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationHandlerInterface $authHandler, TrustedCookieManager $cookieManager, boolean $useTrustedOption, string $trustedName ) Construct the trusted computer layer.
beginAuthentication ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface $context ) Check if user is on a trusted computer, otherwise call TwoFactorProviderRegistry.
requestAuthenticationCode ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface $context ) : Response | null Call TwoFactorProviderRegistry, set trusted computer cookie if requested.

Описание методов

__construct() публичный Метод

Construct the trusted computer layer.
public __construct ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationHandlerInterface $authHandler, TrustedCookieManager $cookieManager, boolean $useTrustedOption, string $trustedName )
$authHandler Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationHandlerInterface
$cookieManager TrustedCookieManager
$useTrustedOption boolean
$trustedName string

beginAuthentication() публичный Метод

Check if user is on a trusted computer, otherwise call TwoFactorProviderRegistry.
public beginAuthentication ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface $context )
$context Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface

requestAuthenticationCode() публичный Метод

Call TwoFactorProviderRegistry, set trusted computer cookie if requested.
public requestAuthenticationCode ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface $context ) : Response | null
$context Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface
Результат Symfony\Component\HttpFoundation\Response | null