PHP Interface Scheb\TwoFactorBundle\Security\TwoFactor\Trusted\TrustedComputerManagerInterface

Afficher le fichier Open project: scheb/two-factor-bundle Interface Usage Examples

Méthodes publiques

Méthode Description
addTrustedComputer ( mixed $user, string $token, DateTime $validUntil ) Add a trusted computer token for a user.
isTrustedComputer ( mixed $user, string $token ) : boolean Validate a trusted computer token for a user.

Method Details

addTrustedComputer() public méthode

Add a trusted computer token for a user.
public addTrustedComputer ( mixed $user, string $token, DateTime $validUntil )
$user mixed
$token string
$validUntil DateTime

isTrustedComputer() public méthode

Validate a trusted computer token for a user.
public isTrustedComputer ( mixed $user, string $token ) : boolean
$user mixed
$token string
Résultat boolean