PHP 클래스 Scheb\TwoFactorBundle\Security\TwoFactor\Trusted\TrustedComputerManager

상속: implements Scheb\TwoFactorBundle\Security\TwoFactor\Trusted\TrustedComputerManagerInterface
파일 보기 프로젝트 열기: scheb/two-factor-bundle 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Scheb\TwoFactorBundle\Model\PersisterInterface $persister )
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.

메소드 상세

__construct() 공개 메소드

public __construct ( Scheb\TwoFactorBundle\Model\PersisterInterface $persister )
$persister Scheb\TwoFactorBundle\Model\PersisterInterface

addTrustedComputer() 공개 메소드

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

isTrustedComputer() 공개 메소드

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