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

Show file Open project: scheb/two-factor-bundle Interface Usage Examples

Public Methods

Method 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 method

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

isTrustedComputer() public method

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