PHP 인터페이스 Symfony\Component\Security\Authentication\Token\TokenInterface

저자: Fabien Potencier ([email protected])
상속: extends Serializable
파일 보기 프로젝트 열기: pmjones/php-framework-benchmarks 0 사용 예제들

공개 메소드들

메소드 설명
__toString ( ) : string Returns a string representation of the token.
eraseCredentials ( ) Removes sensitive information from the token.
getCredentials ( ) : mixed Returns the user credentials.
getRoles ( ) : Role[] Returns the user roles.
getUser ( ) : object Returns a user instance.
isAuthenticated ( ) : boolean Checks if the user is authenticated or not.
isImmutable ( ) : boolean Checks whether the token is immutable or not.
setAuthenticated ( boolean $isAuthenticated ) Sets the authenticated flag.

메소드 상세

__toString() 공개 메소드

Returns a string representation of the token.
public __toString ( ) : string
리턴 string A string representation

eraseCredentials() 공개 메소드

Removes sensitive information from the token.
public eraseCredentials ( )

getCredentials() 공개 메소드

Returns the user credentials.
public getCredentials ( ) : mixed
리턴 mixed The user credentials

getRoles() 공개 메소드

Returns the user roles.
public getRoles ( ) : Role[]
리턴 Role[] An array of Role instances.

getUser() 공개 메소드

Returns a user instance.
public getUser ( ) : object
리턴 object The User instance

isAuthenticated() 공개 메소드

Checks if the user is authenticated or not.
public isAuthenticated ( ) : boolean
리턴 boolean true if the token has been authenticated, false otherwise

isImmutable() 공개 메소드

Checks whether the token is immutable or not.
public isImmutable ( ) : boolean
리턴 boolean true if the token is immutable, false otherwise

setAuthenticated() 공개 메소드

Sets the authenticated flag.
public setAuthenticated ( boolean $isAuthenticated )
$isAuthenticated boolean The authenticated flag