1 from threading import Event
2 from typing import Callable, List, Tuple
4 from paramiko.pkey import PKey
5 from paramiko.ssh_gss import _SSH_GSSAuth
6 from paramiko.transport import Transport
8 _InteractiveCallback = Callable[[str, str, List[Tuple[str, bool]]], List[str]]
14 auth_event: Event | None
18 private_key: PKey | None
19 interactive_handler: _InteractiveCallback | None
20 submethods: str | None
21 auth_username: str | None
25 def __init__(self, transport: Transport) -> None: ...
26 def is_authenticated(self) -> bool: ...
27 def get_username(self) -> str | None: ...
28 def auth_none(self, username: str, event: Event) -> None: ...
29 def auth_publickey(self, username: str, key: PKey, event: Event) -> None: ...
30 def auth_password(self, username: str, password: str, event: Event) -> None: ...
31 def auth_interactive(self, username: str, handler: _InteractiveCallback, event: Event, submethods: str = ...) -> None: ...
32 def auth_gssapi_with_mic(self, username: str, gss_host: str, gss_deleg_creds: bool, event: Event) -> None: ...
33 def auth_gssapi_keyex(self, username: str, event: Event) -> None: ...
34 def abort(self) -> None: ...
35 def wait_for_response(self, event: Event) -> list[str]: ...
37 class GssapiWithMicAuthHandler:
40 def __init__(self, delegate: AuthHandler, sshgss: _SSH_GSSAuth) -> None: ...
41 def abort(self) -> None: ...
43 def transport(self) -> Transport: ...
45 def auth_username(self) -> str: ...
47 def gss_host(self) -> str: ...