A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pythongssapi.github.io/python-gssapi/latest/_modules/gssapi/raw/ext_cred_imp_exp.html below:

Website Navigation


gssapi.raw.ext_cred_imp_exp — Python-GSSAPI 1.9.0 documentation

Source code for gssapi.raw.ext_cred_imp_exp
"""Credentials Import/Export Extension"""

import typing as t

if t.TYPE_CHECKING:
    from gssapi.raw.creds import Creds



[docs]
def export_cred(
    creds: "Creds",
) -> bytes:
    """Export GSSAPI credentials.

    This method exports GSSSAPI credentials into a token
    which may be transmitted between different processes.

    Args:
        creds (Creds): the credentials object to be exported

    Returns:
        bytes: the exported token representing the given credentials object

    Raises:
        ~gssapi.exceptions.GSSError
    """




[docs]
def import_cred(
    token: bytes,
) -> "Creds":
    """Import GSSAPI credentials from a token.

    This method imports a credentials object from a token
    previously exported by :func:`export_cred`.

    Args:
        token (bytes): the token to import

    Returns:
        Creds: the imported credentials object

    Raises:
        ~gssapi.exceptions.GSSError
    """


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4