%PDF- %PDF-
Direktori : /lib/python3/dist-packages/pymacaroons/caveat_delegates/ |
Current File : //lib/python3/dist-packages/pymacaroons/caveat_delegates/base_third_party.py |
from abc import ABCMeta, abstractmethod class BaseThirdPartyCaveatDelegate(object): __metaclass__ = ABCMeta def __init__(self, *args, **kwargs): super(BaseThirdPartyCaveatDelegate, self).__init__(*args, **kwargs) @abstractmethod def add_third_party_caveat(self, macaroon, location, key, key_id, **kwargs): pass class BaseThirdPartyCaveatVerifierDelegate(object): __metaclass__ = ABCMeta def __init__(self, *args, **kwargs): super(BaseThirdPartyCaveatVerifierDelegate, self).__init__( *args, **kwargs ) @abstractmethod def verify_third_party_caveat(self, verifier, caveat, root, macaroon, discharge_macaroons, signature): pass @abstractmethod def update_signature(self, signature, caveat): pass