| 1 |
efrain |
1 |
<?php
|
|
|
2 |
namespace Aws\Crypto;
|
|
|
3 |
|
|
|
4 |
interface MetadataStrategyInterface
|
|
|
5 |
{
|
|
|
6 |
/**
|
|
|
7 |
* Places the information in the MetadataEnvelope to the strategy specific
|
|
|
8 |
* location. Populates the PutObject arguments with any information
|
|
|
9 |
* necessary for loading.
|
|
|
10 |
*
|
|
|
11 |
* @param MetadataEnvelope $envelope Encryption data to save according to
|
|
|
12 |
* the strategy.
|
|
|
13 |
* @param array $args Starting arguments for PutObject.
|
|
|
14 |
*
|
|
|
15 |
* @return array Updated arguments for PutObject.
|
|
|
16 |
*/
|
|
|
17 |
public function save(MetadataEnvelope $envelope, array $args);
|
|
|
18 |
|
|
|
19 |
/**
|
|
|
20 |
* Generates a MetadataEnvelope according to the specific strategy using the
|
|
|
21 |
* passed arguments.
|
|
|
22 |
*
|
|
|
23 |
* @param array $args Arguments from Command and Result that contains
|
|
|
24 |
* S3 Object information, relevant headers, and command
|
|
|
25 |
* configuration.
|
|
|
26 |
*
|
|
|
27 |
* @return MetadataEnvelope
|
|
|
28 |
*/
|
|
|
29 |
public function load(array $args);
|
|
|
30 |
}
|