Logo Search packages:      
Sourcecode: jenkins-trilead-ssh2 version File versions  Download package

synchronized Session com::trilead::ssh2::Connection::openSession (  ) throws IOException [inline]

Open a new Session on this connection. Works only after one has passed successfully the authentication step. There is no limit on the number of concurrent sessions.

A Session object.

Definition at line 1039 of file Connection.java.

Referenced by exec(), com::trilead::ssh2::SCPClient::get(), com::trilead::ssh2::SCPClient::put(), and com::trilead::ssh2::SFTPv3Client::SFTPv3Client().

            if (tm == null)
                  throw new IllegalStateException("Cannot open session, you need to establish a connection first.");

            if (!authenticated)
                  throw new IllegalStateException("Cannot open session, connection is not authenticated.");

            return new Session(cm, getOrCreateSecureRND());

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index