HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //lib/python3/dist-packages/macaroonbakery/bakery/__init__.py
# Copyright 2017 Canonical Ltd.
# Licensed under the LGPLv3, see LICENCE file for details.

from ._versions import (
    VERSION_0,
    VERSION_1,
    VERSION_2,
    VERSION_3,
    LATEST_VERSION,
)
from ._authorizer import (
    ACLAuthorizer,
    Authorizer,
    AuthorizerFunc,
    ClosedAuthorizer,
    EVERYONE,
)
from ._codec import (
    decode_caveat,
    encode_caveat,
    encode_uvarint,
)
from ._checker import (
    AuthChecker,
    AuthInfo,
    Checker,
    LOGIN_OP,
    Op,
)
from ._error import (
    AuthInitError,
    CaveatNotRecognizedError,
    DischargeRequiredError,
    IdentityError,
    PermissionDenied,
    ThirdPartyCaveatCheckFailed,
    ThirdPartyInfoNotFound,
    VerificationError,
)
from ._identity import (
    ACLIdentity,
    Identity,
    IdentityClient,
    NoIdentities,
    SimpleIdentity,
)
from ._keys import (
    generate_key,
    PrivateKey,
    PublicKey,
)
from ._store import (
    MemoryOpsStore,
    MemoryKeyStore,
)
from ._third_party import (
    ThirdPartyCaveatInfo,
    ThirdPartyInfo,
    legacy_namespace,
)
from ._macaroon import (
    Macaroon,
    MacaroonJSONDecoder,
    MacaroonJSONEncoder,
    ThirdPartyLocator,
    ThirdPartyStore,
    macaroon_version,
)
from ._discharge import (
    ThirdPartyCaveatChecker,
    discharge,
    discharge_all,
    local_third_party_caveat,
)
from ._oven import (
    Oven,
    canonical_ops,
)
from ._bakery import Bakery
from macaroonbakery._utils import (
    b64decode,
    macaroon_to_dict,
)

__all__ = [
    'ACLAuthorizer',
    'ACLIdentity',
    'AuthChecker',
    'AuthInfo',
    'AuthInitError',
    'Authorizer',
    'AuthorizerFunc',
    'VERSION_0',
    'VERSION_1',
    'VERSION_2',
    'VERSION_3',
    'Bakery',
    'CaveatNotRecognizedError',
    'Checker',
    'ClosedAuthorizer',
    'DischargeRequiredError',
    'EVERYONE',
    'Identity',
    'IdentityClient',
    'IdentityError',
    'LATEST_VERSION',
    'LOGIN_OP',
    'Macaroon',
    'MacaroonJSONDecoder',
    'MacaroonJSONEncoder',
    'MemoryKeyStore',
    'MemoryOpsStore',
    'NoIdentities',
    'Op',
    'Oven',
    'PermissionDenied',
    'PrivateKey',
    'PublicKey',
    'SimpleIdentity',
    'ThirdPartyCaveatCheckFailed',
    'ThirdPartyCaveatChecker',
    'ThirdPartyCaveatInfo',
    'ThirdPartyInfo',
    'ThirdPartyInfoNotFound',
    'ThirdPartyLocator',
    'ThirdPartyStore',
    'VERSION',
    'VerificationError',
    'b64decode',
    'canonical_ops',
    'decode_caveat',
    'discharge',
    'discharge_all',
    'encode_caveat',
    'encode_uvarint',
    'generate_key',
    'legacy_namespace',
    'local_third_party_caveat',
    'macaroon_to_dict',
    'macaroon_version',
]