PHP Interface Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface

Mostrar archivo Open project: scheb/two-factor-bundle Interface Usage Examples

Public Methods

Method Description
getRequest ( ) : Request Return the request.
getSession ( ) : Symfony\Component\HttpFoundation\Session\SessionInterface Return the session.
getToken ( ) : Symfony\Component\Security\Core\Authentication\Token\TokenInterface Return the security token.
getUser ( ) : mixed Return the user object.
isAuthenticated ( ) : boolean Get authentication status.
setAuthenticated ( boolean $authenticated ) Set authentication status.
setUseTrustedOption ( boolean $useTrustedOption ) Set trusted option flag.
useTrustedOption ( ) : boolean Return true when trusted computer feature is enabled.

Method Details

getRequest() public method

Return the request.
public getRequest ( ) : Request
return Symfony\Component\HttpFoundation\Request

getSession() public method

Return the session.
public getSession ( ) : Symfony\Component\HttpFoundation\Session\SessionInterface
return Symfony\Component\HttpFoundation\Session\SessionInterface

getToken() public method

Return the security token.
public getToken ( ) : Symfony\Component\Security\Core\Authentication\Token\TokenInterface
return Symfony\Component\Security\Core\Authentication\Token\TokenInterface

getUser() public method

Return the user object.
public getUser ( ) : mixed
return mixed

isAuthenticated() public method

Get authentication status.
public isAuthenticated ( ) : boolean
return boolean

setAuthenticated() public method

Set authentication status.
public setAuthenticated ( boolean $authenticated )
$authenticated boolean

setUseTrustedOption() public method

Set trusted option flag.
public setUseTrustedOption ( boolean $useTrustedOption )
$useTrustedOption boolean

useTrustedOption() public method

Return true when trusted computer feature is enabled.
public useTrustedOption ( ) : boolean
return boolean