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;
    }
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;
    }
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 ; }
Return's the principal's username.

@return \AppserverIo\Lang\String The username
Return s the principal s username .