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

Any Principal or name of a Principal when compared to an NobodyPrincipal using {@link #equals(PrincipleInterface) equals} will always be found not equal to the NobodyPrincipal.
Автор: Tim Wagner ([email protected])
Наследование: implements AppserverIo\Psr\Security\PrincipalInterface
Показать файл Открыть проект

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

Метод Описание
__toString ( ) : string Returns the principals name as string.
equals ( AppserverIo\Psr\Security\PrincipalInterface $another ) : boolean Compare this NobodyPrincipal's name against another Principal.
getName ( ) : AppserverIo\Lang\String Return's the principals name as String.

Описание методов

__toString() публичный метод

Returns the principals name as string.
public __toString ( ) : string
Результат string The principal's name

equals() публичный метод

Compare this NobodyPrincipal'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 Will always return FALSE, because this is nobody

getName() публичный метод

Return's the principals name as String.
public getName ( ) : AppserverIo\Lang\String
Результат AppserverIo\Lang\String The principal's name