import { SshService } from './sshService'; import { SshSession } from '../sshSession'; import { AuthenticationMessage } from '../messages/authenticationMessages'; import { CancellationToken } from 'vscode-jsonrpc'; import { KeyPair } from '../algorithms/publicKeyAlgorithm'; import { SshClientCredentials } from '../sshCredentials'; /** * Handles SSH protocol messages related to client authentication. */ export declare class AuthenticationService extends SshService { static readonly serviceName = "ssh-userauth"; readonly publicKeyAlgorithmName: string; private clientAuthenticationMethods?; private currentRequestMessage?; private authenticationFailureCount; private readonly disposeCancellationSource; constructor(session: SshSession); handleMessage(message: AuthenticationMessage, cancellation?: CancellationToken): void | Promise; private handleAuthenticationRequestMessage; private setCurrentRequest; private handlePublicKeyRequestMessage; /** * Verifies the signature on a public-key or host-based authentication request, proving * that the sender possesses the private key corresponding to the presented public key. * * @returns True if the signature is valid. False if it is missing or invalid, in which case * an authentication failure has already been sent and the caller MUST NOT proceed to raise * the `Authenticating` event. */ private verifySignature; private handlePasswordRequestMessage; private beginInteractiveAuthentication; private handleInfoRequestMessage; private handleInfoResponseMessage; private handleAuthenticating; private handleAuthenticationFailure; authenticateClient(credentials: SshClientCredentials, cancellation?: CancellationToken): Promise; private requestUsernameAuthentication; requestPublicKeyAuthentication(username: string, key: KeyPair, cancellation?: CancellationToken): Promise; requestPasswordAuthentication(username: string, password: string | null, cancellation?: CancellationToken): Promise; private requestInteractiveAuthentication; private handleFailureMessage; private handleSuccessMessage; private createAuthenticationSignature; dispose(): void; } //# sourceMappingURL=authenticationService.d.ts.map