Méthode | Description | |
---|---|---|
__construct ( Scheb\TwoFactorBundle\Security\TwoFactor\Trusted\TrustedTokenGenerator $tokenGenerator, Scheb\TwoFactorBundle\Security\TwoFactor\Trusted\TrustedComputerManagerInterface $trustedComputerManager, string $cookieName, integer $cookieLifetime, boolean $cookieSecure ) | Construct a manager for the trusted cookie. | |
createTrustedCookie ( |
Create a cookie for trusted computer. | |
isTrustedComputer ( |
Check if request has trusted cookie and if it's valid. |
Méthode | Description | |
---|---|---|
getDateTimeNow ( ) : DateTime | Return current DateTime object. |
public __construct ( Scheb\TwoFactorBundle\Security\TwoFactor\Trusted\TrustedTokenGenerator $tokenGenerator, Scheb\TwoFactorBundle\Security\TwoFactor\Trusted\TrustedComputerManagerInterface $trustedComputerManager, string $cookieName, integer $cookieLifetime, boolean $cookieSecure ) | ||
$tokenGenerator | Scheb\TwoFactorBundle\Security\TwoFactor\Trusted\TrustedTokenGenerator | |
$trustedComputerManager | Scheb\TwoFactorBundle\Security\TwoFactor\Trusted\TrustedComputerManagerInterface | |
$cookieName | string | |
$cookieLifetime | integer | |
$cookieSecure | boolean |
public createTrustedCookie ( |
||
$request | ||
$user | mixed | |
Résultat |
protected getDateTimeNow ( ) : DateTime | ||
Résultat | DateTime |
public isTrustedComputer ( |
||
$request | ||
$user | mixed | |
Résultat | boolean |