BinaryBase64DecodePolicy Class

Message decoding policy for base 64-encoded messages into bytes.

Decodes base64-encoded messages to bytes. If the input content is not valid base 64, a DecodeError will be raised.

Inheritance
azure.storage.queue._message_encoding.MessageDecodePolicy
BinaryBase64DecodePolicy

Constructor

BinaryBase64DecodePolicy()

Methods

configure
decode

configure

configure(require_encryption: bool, key_encryption_key: KeyEncryptionKey | None, resolver: Callable[[str], KeyEncryptionKey] | None) -> None

Parameters

Name Description
require_encryption
Required
key_encryption_key
Required
resolver
Required

decode

decode(content: str, response: PipelineResponse) -> bytes

Parameters

Name Description
content
Required
response
Required

Attributes

key_encryption_key

The user-provided key-encryption-key.

key_encryption_key: KeyEncryptionKey | None = None

require_encryption

Indicates whether encryption is required or not.

require_encryption: bool = False

resolver

The user-provided key resolver.

resolver: Callable[[str], KeyEncryptionKey] | None = None