Logo Search packages:      
Sourcecode: paramiko version File versions  Download package

def paramiko::transport::Transport::get_username (   self  ) 

Return the username this connection is authenticated for.  If the
session is not authenticated (or authentication failed), this method
returns C{None}.

@return: username that was authenticated, or C{None}.
@rtype: string

@since: fearow

Definition at line 891 of file transport.py.

00891                           :
        """
        Return the username this connection is authenticated for.  If the
        session is not authenticated (or authentication failed), this method
        returns C{None}.

        @return: username that was authenticated, or C{None}.
        @rtype: string

        @since: fearow
        """
        if not self.active or (self.auth_handler is None):
            return None
        return self.auth_handler.get_username()

    def auth_none(self, username):


Generated by  Doxygen 1.6.0   Back to index