

def __init__(self, digest_provider, starting_bucket, starting_prefix, public_key_provider, digest_validator=None, on_invalid=None, on_gap=None, on_missing=None):
    '\n        :type digest_provider: DigestProvider\n        :param digest_provider: DigestProvider object\n        :param starting_bucket: S3 bucket where the digests are stored.\n        :param starting_prefix: An optional prefix applied to each S3 key.\n        :param public_key_provider: Provides public keys for a range.\n        :param digest_validator: Validates digest using a validate method.\n        :param on_invalid: Callback invoked when a digest is invalid.\n        :param on_gap: Callback invoked when a digest has no parent, but\n            there are still more digests to validate.\n        :param on_missing: Callback invoked when a digest file is missing.\n        '
    self.starting_bucket = starting_bucket
    self.starting_prefix = starting_prefix
    self.digest_provider = digest_provider
    self._public_key_provider = public_key_provider
    self._on_gap = on_gap
    self._on_invalid = on_invalid
    self._on_missing = on_missing
    if (digest_validator is None):
        digest_validator = Sha256RSADigestValidator()
    self._digest_validator = digest_validator

dataset/ETHPy150Open aws/aws-cli/awscli/customizations/cloudtrail/validation.py DigestTraverser.__init__/original