PHP 클래스 Scheb\TwoFactorBundle\Security\TwoFactor\Session\SessionFlagManager

파일 보기 프로젝트 열기: scheb/two-factor-bundle 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$flagGenerator Scheb\TwoFactorBundle\Security\TwoFactor\Session\SessionFlagGenerator
$session Symfony\Component\HttpFoundation\Session\SessionInterface

공개 메소드들

메소드 설명
__construct ( Symfony\Component\HttpFoundation\Session\SessionInterface $session, Scheb\TwoFactorBundle\Security\TwoFactor\Session\SessionFlagGenerator $flagGenerator ) Construct a manager that takes care of session flags.
isNotAuthenticated ( string $provider, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token ) : boolean Check if session flag is set and is not complete.
setBegin ( string $provider, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token ) Set session flag to ask for two-factor authentication.
setComplete ( string $provider, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token ) Set session flag completed.

보호된 메소드들

메소드 설명
getSessionFlag ( string $provider, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token ) : string Generate session token.

메소드 상세

__construct() 공개 메소드

Construct a manager that takes care of session flags.
public __construct ( Symfony\Component\HttpFoundation\Session\SessionInterface $session, Scheb\TwoFactorBundle\Security\TwoFactor\Session\SessionFlagGenerator $flagGenerator )
$session Symfony\Component\HttpFoundation\Session\SessionInterface
$flagGenerator Scheb\TwoFactorBundle\Security\TwoFactor\Session\SessionFlagGenerator

getSessionFlag() 보호된 메소드

Generate session token.
protected getSessionFlag ( string $provider, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token ) : string
$provider string Two-factor provider name
$token Symfony\Component\Security\Core\Authentication\Token\TokenInterface
리턴 string

isNotAuthenticated() 공개 메소드

Check if session flag is set and is not complete.
public isNotAuthenticated ( string $provider, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token ) : boolean
$provider string
$token Symfony\Component\Security\Core\Authentication\Token\TokenInterface
리턴 boolean

setBegin() 공개 메소드

Set session flag to ask for two-factor authentication.
public setBegin ( string $provider, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token )
$provider string
$token Symfony\Component\Security\Core\Authentication\Token\TokenInterface

setComplete() 공개 메소드

Set session flag completed.
public setComplete ( string $provider, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token )
$provider string
$token Symfony\Component\Security\Core\Authentication\Token\TokenInterface

프로퍼티 상세

$flagGenerator 보호되어 있는 프로퍼티

protected SessionFlagGenerator,Scheb\TwoFactorBundle\Security\TwoFactor\Session $flagGenerator
리턴 Scheb\TwoFactorBundle\Security\TwoFactor\Session\SessionFlagGenerator

$session 보호되어 있는 프로퍼티

protected SessionInterface,Symfony\Component\HttpFoundation\Session $session
리턴 Symfony\Component\HttpFoundation\Session\SessionInterface