BinaryBase64EncodePolicy Class
Base 64 message encoding policy for binary messages.
Encodes binary messages to base 64. If the input content is not bytes, a TypeError will be raised.
- Inheritance
-
azure.storage.queue._message_encoding.MessageEncodePolicyBinaryBase64EncodePolicy
Constructor
BinaryBase64EncodePolicy()
Methods
configure | |
encode |
configure
configure(require_encryption: bool, key_encryption_key: KeyEncryptionKey | None, resolver: Callable[[str], KeyEncryptionKey] | None, encryption_version: str = '1.0') -> None
Parameters
Name | Description |
---|---|
require_encryption
Required
|
|
key_encryption_key
Required
|
|
resolver
Required
|
|
encryption_version
|
Default value: 1.0
|
encode
encode(content: bytes) -> str
Parameters
Name | Description |
---|---|
content
Required
|
|
Attributes
encryption_version
Indicates the version of encryption being used.
encryption_version: str
key_encryption_key
The user-provided key-encryption-key.
key_encryption_key: KeyEncryptionKey | None
require_encryption
Indicates whether encryption is required or not.
require_encryption: bool
resolver
The user-provided key resolver.
resolver: Callable[[str], KeyEncryptionKey] | None
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.
Azure SDK for Python