AppserverIo\Appserver\ServletEngine\Security\AnybodyPrincipal::equals PHP Method

equals() public method

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
    public function equals(PrincipalInterface $another)
    {
        return true;
    }