PHP Class Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContext

Inheritance: implements Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface
Show file Open project: scheb/two-factor-bundle Class Usage Examples

Protected Properties

Property Type Description
$authenticated boolean
$request Symfony\Component\HttpFoundation\Request
$token Symfony\Component\Security\Core\Authentication\Token\TokenInterface
$useTrustedOption boolean If trusted computer feature is enabled.

Public Methods

Method Description
__construct ( Request $request, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token ) Construct a two-factor authentication context.
getRequest ( ) {@inheritDoc}
getSession ( ) {@inheritDoc}
getToken ( ) {@inheritDoc}
getUser ( ) {@inheritDoc}
isAuthenticated ( ) {@inheritDoc}
setAuthenticated ( $authenticated ) {@inheritDoc}
setUseTrustedOption ( $useTrustedOption ) {@inheritDoc}
useTrustedOption ( ) {@inheritDoc}

Method Details

__construct() public method

Construct a two-factor authentication context.
public __construct ( Request $request, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token )
$request Symfony\Component\HttpFoundation\Request
$token Symfony\Component\Security\Core\Authentication\Token\TokenInterface

getRequest() public method

{@inheritDoc}
public getRequest ( )

getSession() public method

{@inheritDoc}
public getSession ( )

getToken() public method

{@inheritDoc}
public getToken ( )

getUser() public method

{@inheritDoc}
public getUser ( )

isAuthenticated() public method

{@inheritDoc}
public isAuthenticated ( )

setAuthenticated() public method

{@inheritDoc}
public setAuthenticated ( $authenticated )

setUseTrustedOption() public method

{@inheritDoc}
public setUseTrustedOption ( $useTrustedOption )

useTrustedOption() public method

{@inheritDoc}
public useTrustedOption ( )

Property Details

$authenticated protected property

protected bool $authenticated
return boolean

$request protected property

protected Request,Symfony\Component\HttpFoundation $request
return Symfony\Component\HttpFoundation\Request

$token protected property

protected TokenInterface,Symfony\Component\Security\Core\Authentication\Token $token
return Symfony\Component\Security\Core\Authentication\Token\TokenInterface

$useTrustedOption protected property

If trusted computer feature is enabled.
protected bool $useTrustedOption
return boolean