Class HeadersMetadataStrategy
- Aws\S3\Crypto\HeadersMetadataStrategy implements Aws\Crypto\MetadataStrategyInterface
- Namespace: Aws\S3\Crypto
- Located at S3/Crypto/HeadersMetadataStrategy.php
Methods Summary
-
save ( Aws\Crypto\MetadataEnvelope $envelope, array $args )
Places the information in the MetadataEnvelope in to the metadata for the PutObject request of the encrypted object.
-
load ( array $args )
Generates a MetadataEnvelope according to the metadata headers from the GetObject result.
Methods Details
array save ( Aws\Crypto\MetadataEnvelope $envelope, array $args )
Places the information in the MetadataEnvelope in to the metadata for the PutObject request of the encrypted object.
Parameters
Aws\Crypto\MetadataEnvelope | $envelope | Encryption data to save according to the strategy. |
array | $args | Arguments for PutObject that can be manipulated to store strategy related information. |
Returns
array Updated arguments for PutObject. |
Implementation of
Aws\Crypto\MetadataEnvelope load ( array $args )
Generates a MetadataEnvelope according to the metadata headers from the GetObject result.
Parameters
array | $args | Arguments from Command and Result that contains S3 Object information, relevant headers, and command configuration. |
Returns
Aws\Crypto\MetadataEnvelope |