File: ext_rfc5801.pyi

package info (click to toggle)
python-gssapi 1.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 876 kB
  • sloc: python: 3,707; sh: 198; makefile: 154; ansic: 60
file content (39 lines) | stat: -rw-r--r-- 962 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import typing as t

if t.TYPE_CHECKING:
    from gssapi.raw.named_tuples import InquireSASLNameResult
    from gssapi.raw.oids import OID


def inquire_saslname_for_mech(
    mech: "OID",
) -> "InquireSASLNameResult":
    """Gets information about a specified mech, including the SASL name,
    the mech name, and the mech description.

    Args:
        mech (~gssapi.OID): Mechanism to inquire about

    Returns:
        InquireSASLNameResult: the results of inquiry; a mech's SASL name,
        name, and description.

    Raises:
        ~gssapi.exceptions.GSSError: an unknown failure occurred
    """


def inquire_mech_for_saslname(
    sasl_name: bytes,
) -> "OID":
    """Gets the OID for the mech specified by SASL name.

    Args:
        sasl_name (bytes): SASL name of the mechanism

    Returns:
        ~gssapi.OID: the mechanism with corresponding SASL name.

    Raises:
        ~gssapi.exceptions.GSSError: An unknown failure occurred
    """