File: ext_rfc5587.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 (63 lines) | stat: -rw-r--r-- 1,762 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import typing as t

if t.TYPE_CHECKING:
    from gssapi.raw.named_tuples import InquireAttrsResult, DisplayAttrResult
    from gssapi.raw.oids import OID


def indicate_mechs_by_attrs(
    desired_mech_attrs: t.Optional[t.Iterable["OID"]] = None,
    except_mech_attrs: t.Optional[t.Iterable["OID"]] = None,
    critical_mech_attrs: t.Optional[t.Iterable["OID"]] = None,
) -> t.Set["OID"]:
    """Get a set of mechanisms that have the specified attributes.

    Args:
        desired_mech_attrs (~gssapi.OID): Attributes that the output mechs MUST
            offer
        except_mech_attrs (~gssapi.OID): Attributes that the output mechs MUST
            NOT offer
        critical_mech_attrs (~gssapi.OID): Attributes that the output mechs
            MUST understand and offer

    Returns:
        ~gssapi.MechType: a set of mechs which satisfy the given criteria

    Raises:
        ~gssapi.exceptions.GSSError
    """


def inquire_attrs_for_mech(
    mech: "OID",
) -> "InquireAttrsResult":
    """Gets the set of attrs supported and known by a mechanism.

    Args:
        mech (~gssapi.raw.types.MechType): Mechanism to inquire about

    Returns:
        InquireAttrsResult: the results of inquiry; a mech's attributes and
        known attributes

    Raises:
        ~gssapi.exceptions.GSSError
    """


def display_mech_attr(
    attr: "OID",
) -> "DisplayAttrResult":
    """Returns information about attributes in human readable form.

    Args:
        attr (~gssapi.OID): Mechanism attribute to retrieve names and
            descriptions of

    Returns:
        DisplayAttrResult: the results of displaying the attribute; mech name,
        short description, and long description.

    Raises:
        ~gssapi.exceptions.GSSError
    """