PHP 클래스 Symfony\Component\Security\Core\Authentication\Token\AnonymousToken

저자: Fabien Potencier ([email protected])
상속: extends AbstractToken
파일 보기 프로젝트 열기: symfony/symfony 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $secret, string | object $user, array $roles = [] ) Constructor.
getCredentials ( )
getSecret ( ) : string Returns the secret.
serialize ( )
unserialize ( $serialized )

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( string $secret, string | object $user, array $roles = [] )
$secret string A secret used to make sure the token is created by the app and not by a malicious client
$user string | object The user can be a UserInterface instance, or an object implementing a __toString method or the username as a regular string
$roles array An array of roles

getCredentials() 공개 메소드

public getCredentials ( )

getSecret() 공개 메소드

Returns the secret.
public getSecret ( ) : string
리턴 string

serialize() 공개 메소드

public serialize ( )

unserialize() 공개 메소드

public unserialize ( $serialized )