SDK for PHP 3.x

HeadersMetadataStrategy
in package
implements MetadataStrategyInterface

Table of Contents

Interfaces

MetadataStrategyInterface

Methods

load()  : MetadataEnvelope
Generates a MetadataEnvelope according to the metadata headers from the GetObject result.
save()  : array<string|int, mixed>
Places the information in the MetadataEnvelope in to the metadata for the PutObject request of the encrypted object.

Methods

load()

Generates a MetadataEnvelope according to the metadata headers from the GetObject result.

public load(array<string|int, mixed> $args) : MetadataEnvelope
Parameters
$args : array<string|int, mixed>

Arguments from Command and Result that contains S3 Object information, relevant headers, and command configuration.

Return values
MetadataEnvelope

save()

Places the information in the MetadataEnvelope in to the metadata for the PutObject request of the encrypted object.

public save(MetadataEnvelope $envelope, array<string|int, mixed> $args) : array<string|int, mixed>
Parameters
$envelope : MetadataEnvelope

Encryption data to save according to the strategy.

$args : array<string|int, mixed>

Arguments for PutObject that can be manipulated to store strategy related information.

Return values
array<string|int, mixed>

Updated arguments for PutObject.

On this page