PHP 클래스 AppserverIo\Appserver\ServletEngine\Security\SimplePrincipal

상속: implements AppserverIo\Psr\Security\PrincipalInterface
파일 보기 프로젝트 열기: appserver-io/appserver 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $name ) Initialize the principal with the passed name.
__toString ( ) : string Returns the principals name as string.
equals ( AppserverIo\Psr\Security\PrincipalInterface $another ) : boolean Compare this SimplePrincipal's name against another Principal.
getName ( ) : AppserverIo\Lang\String Return's the principals name as String.

메소드 상세

__construct() 공개 메소드

Initialize the principal with the passed name.
public __construct ( string $name )
$name string The principal's name

__toString() 공개 메소드

Returns the principals name as string.
public __toString ( ) : string
리턴 string The principal's name

equals() 공개 메소드

Compare this SimplePrincipal's name against another Principal.
public equals ( AppserverIo\Psr\Security\PrincipalInterface $another ) : boolean
$another AppserverIo\Psr\Security\PrincipalInterface The other principal to compare to
리턴 boolean TRUE if name equals $another->getName();

getName() 공개 메소드

Return's the principals name as String.
public getName ( ) : AppserverIo\Lang\String
리턴 AppserverIo\Lang\String The principal's name