Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
ext_rfc5588.pyi43 linesDownload Raw Back to raw
1import typing as t2 3if t.TYPE_CHECKING:4    from gssapi.raw.creds import Creds5    from gssapi.raw.named_tuples import StoreCredResult6    from gssapi.raw.oids import OID7 8 9def store_cred(10    creds: "Creds",11    usage: str = 'both',12    mech: t.Optional["OID"] = None,13    overwrite: bool = False,14    set_default: bool = False,15) -> "StoreCredResult":16    """Store credentials into the default store.17 18    This method stores the given credentials into the default store.19    They may then be retrieved later using20    :func:`~gssapi.raw.creds.acquire_cred`.21 22    Args:23        creds (Creds): the credentials to store24        usage (str): the usage to store the credentials with -- either25            'both', 'initiate', or 'accept'26        mech (~gssapi.OID): the mechansim to associate with the stored27            credentials28        overwrite (bool): whether or not to overwrite existing credentials29            stored with the same name, etc30        set_default (bool): whether or not to set these credentials as31            the default credentials for the given store.32 33    Returns:34        StoreCredResult: the results of the credential storing operation35 36    Raises:37        ~gssapi.exceptions.GSSError38        ~gssapi.exceptions.ExpiredCredentialsError39        ~gssapi.exceptions.MissingCredentialsError40        ~gssapi.exceptions.OperationUnavailableError41        ~gssapi.exceptions.DuplicateCredentialsElementError42    """43 
codekingpro/portable-devtools · Team Ai