PHP Class 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.
Inheritance: implements AppserverIo\Psr\Security\PrincipalInterface
Afficher le fichier Open project: appserver-io/appserver

Méthodes publiques

Méthode Description
__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.

Method Details

__toString() public méthode

Returns the principals name as string.
public __toString ( ) : string
Résultat string The principal's name

equals() public méthode

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
Résultat boolean Will always return FALSE, because this is nobody

getName() public méthode

Return's the principals name as String.
public getName ( ) : AppserverIo\Lang\String
Résultat AppserverIo\Lang\String The principal's name