MetadataStrategyInterface.php 996 B

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