Authenticate() public method

public Authenticate ( IConnectionInfoInternal connectionInfo, ISession session ) : void
connectionInfo IConnectionInfoInternal
session ISession
return void
Exemplo n.º 1
0
        /// <summary>
        /// Authenticates the specified session.
        /// </summary>
        /// <param name="session">The session to be authenticated.</param>
        /// <exception cref="ArgumentNullException"><paramref name="session"/> is null.</exception>
        /// <exception cref="SshAuthenticationException">No suitable authentication method found to complete authentication, or permission denied.</exception>
        internal void Authenticate(ISession session)
        {
            IsAuthenticated = false;
            var clientAuthentication = new ClientAuthentication();

            clientAuthentication.Authenticate(this, session);
            IsAuthenticated = true;
        }
Exemplo n.º 2
0
 /// <summary>
 /// Authenticates the specified session.
 /// </summary>
 /// <param name="session">The session to be authenticated.</param>
 /// <exception cref="ArgumentNullException"><paramref name="session"/> is null.</exception>
 /// <exception cref="SshAuthenticationException">No suitable authentication method found to complete authentication, or permission denied.</exception>
 internal void Authenticate(ISession session)
 {
     IsAuthenticated = false;
     var clientAuthentication = new ClientAuthentication();
     clientAuthentication.Authenticate(this, session);
     IsAuthenticated = true;
 }