PHP Класс AppserverIo\Appserver\ServletEngine\Security\SimplePrincipal

Автор: Tim Wagner ([email protected])
Наследование: implements AppserverIo\Psr\Security\PrincipalInterface
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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