Cipher
11 months ago
Polyfill
11 months ago
AbstractCryptoClient.php
11 months ago
AbstractCryptoClientV2.php
11 months ago
AesDecryptingStream.php
11 months ago
AesEncryptingStream.php
11 months ago
AesGcmDecryptingStream.php
11 months ago
AesGcmEncryptingStream.php
11 months ago
AesStreamInterface.php
11 months ago
AesStreamInterfaceV2.php
11 months ago
DecryptionTrait.php
11 months ago
DecryptionTraitV2.php
11 months ago
EncryptionTrait.php
11 months ago
EncryptionTraitV2.php
11 months ago
KmsMaterialsProvider.php
11 months ago
KmsMaterialsProviderV2.php
11 months ago
MaterialsProvider.php
11 months ago
MaterialsProviderInterface.php
11 months ago
MaterialsProviderInterfaceV2.php
11 months ago
MaterialsProviderV2.php
11 months ago
MetadataEnvelope.php
11 months ago
MetadataStrategyInterface.php
11 months ago
MetadataStrategyInterface.php
31 lines
| 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 | } |
| 31 |