massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / paramiko / paramiko / ssh_gss.pyi
1 from typing import Any, Tuple, Type
2
3 GSS_AUTH_AVAILABLE: bool
4 GSS_EXCEPTIONS: Tuple[Type[Exception], ...]
5
6 def GSSAuth(auth_method: str, gss_deleg_creds: bool = ...) -> _SSH_GSSAuth: ...
7
8 class _SSH_GSSAuth:
9     cc_file: None
10     def __init__(self, auth_method: str, gss_deleg_creds: bool) -> None: ...
11     def set_service(self, service: str) -> None: ...
12     def set_username(self, username: str) -> None: ...
13     def ssh_gss_oids(self, mode: str = ...) -> bytes: ...
14     def ssh_check_mech(self, desired_mech: str) -> bool: ...
15
16 class _SSH_GSSAPI_OLD(_SSH_GSSAuth):
17     def __init__(self, auth_method: str, gss_deleg_creds: bool) -> None: ...
18     def ssh_init_sec_context(
19         self, target: str, desired_mech: str | None = ..., username: str | None = ..., recv_token: str | None = ...
20     ) -> str | None: ...
21     def ssh_get_mic(self, session_id: bytes, gss_kex: bool = ...) -> Any: ...
22     def ssh_accept_sec_context(self, hostname: str, recv_token: str, username: str | None = ...) -> str | None: ...
23     def ssh_check_mic(self, mic_token: str, session_id: bytes, username: str | None = ...) -> None: ...
24     @property
25     def credentials_delegated(self) -> bool: ...
26     def save_client_creds(self, client_token: str) -> None: ...
27
28 _SSH_GSSAPI = _SSH_GSSAPI_OLD
29
30 class _SSH_GSSAPI_NEW(_SSH_GSSAuth):
31     def __init__(self, auth_method: str, gss_deleg_creds: bool) -> None: ...
32     def ssh_init_sec_context(
33         self, target: str, desired_mech: str | None = ..., username: str | None = ..., recv_token: str | None = ...
34     ) -> str: ...
35     def ssh_get_mic(self, session_id: bytes, gss_kex: bool = ...) -> Any: ...
36     def ssh_accept_sec_context(self, hostname: str, recv_token: str, username: str | None = ...) -> str | None: ...
37     def ssh_check_mic(self, mic_token: str, session_id: bytes, username: str | None = ...) -> None: ...
38     @property
39     def credentials_delegated(self) -> bool: ...
40     def save_client_creds(self, client_token: str) -> None: ...
41
42 class _SSH_SSPI(_SSH_GSSAuth):
43     def __init__(self, auth_method: str, gss_deleg_creds: bool) -> None: ...
44     def ssh_init_sec_context(
45         self, target: str, desired_mech: str | None = ..., username: str | None = ..., recv_token: str | None = ...
46     ) -> str: ...
47     def ssh_get_mic(self, session_id: bytes, gss_kex: bool = ...) -> Any: ...
48     def ssh_accept_sec_context(self, hostname: str, username: str, recv_token: str) -> str | None: ...
49     def ssh_check_mic(self, mic_token: str, session_id: bytes, username: str | None = ...) -> None: ...
50     @property
51     def credentials_delegated(self) -> bool: ...
52     def save_client_creds(self, client_token: str) -> None: ...