PHP Class AppserverIo\Appserver\ServletEngine\Security\AnybodyPrincipal
Any Principal or name of a Principal when compared to an AnybodyPrincipal
using {@link #equals(PrincipleInterface) equals} will always be found
equals to the AnybodyPrincipal.
Show file
Open project: appserver-io/appserver
Public Methods
Method |
Description |
|
__toString ( ) : string |
Returns the principals name as string. |
|
equals ( AppserverIo\Psr\Security\PrincipalInterface $another ) : boolean |
Compare this AnybodyPrincipal's name against another Principal. |
|
getName ( ) : AppserverIo\Lang\String |
Return's the principals name as String. |
|
Method Details
__toString()
public method
Returns the principals name as string.
Compare this AnybodyPrincipal's name against another Principal.
public equals ( AppserverIo\Psr\Security\PrincipalInterface $another ) : boolean |
$another |
AppserverIo\Psr\Security\PrincipalInterface |
The other principal to compare to |
return |
boolean |
Will always return TRUE, because we're anybody |
Return's the principals name as String.
public getName ( ) : AppserverIo\Lang\String |
return |
AppserverIo\Lang\String |
The principal's name |