TextBase64DecodePolicy Class

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

Decodes base64-encoded messages to text (unicode). If the input content is not valid base 64, a DecodeError will be raised. Message data must support UTF-8.

Inheritance
azure.storage.queue._message_encoding.MessageDecodePolicy
TextBase64DecodePolicy

Constructor

TextBase64DecodePolicy()

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) -> str

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