public Authenticate ( IConnectionInfoInternal connectionInfo, ISession session ) : void | ||
connectionInfo | IConnectionInfoInternal | |
session | ISession | |
Résultat | void |
/// <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; }
/// <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; }