/// <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; }