AppserverIo\Appserver\ServletEngine\Security\Auth\Spi\UsernamePasswordLoginModule::getUsername PHP Метод

getUsername() защищенный Метод

Return's the principal's username.
protected getUsername ( ) : AppserverIo\Lang\String
Результат AppserverIo\Lang\String The username
    protected function getUsername()
    {
        // initialize the name
        $name = null;
        // query whether or not we've an principal
        if ($identity = $this->getIdentity()) {
            $name = $identity->getName();
        }
        // return the name
        return $name;
    }