Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 1... Línea 1...
1
<?php
1
<?php
2
namespace Aws\S3\Crypto;
2
namespace Aws\S3\Crypto;
Línea 3... Línea 3...
3
 
3
 
4
use Aws\Crypto\DecryptionTrait;
4
use Aws\Crypto\DecryptionTrait;
-
 
5
use Aws\HashingStream;
5
use Aws\HashingStream;
6
use Aws\MetricsBuilder;
6
use Aws\PhpHash;
7
use Aws\PhpHash;
7
use Aws\Crypto\AbstractCryptoClient;
8
use Aws\Crypto\AbstractCryptoClient;
8
use Aws\Crypto\EncryptionTrait;
9
use Aws\Crypto\EncryptionTrait;
9
use Aws\Crypto\MetadataEnvelope;
10
use Aws\Crypto\MetadataEnvelope;
Línea 51... Línea 52...
51
     */
52
     */
52
    public function __construct(
53
    public function __construct(
53
        S3Client $client,
54
        S3Client $client,
54
        $instructionFileSuffix = null
55
        $instructionFileSuffix = null
55
    ) {
56
    ) {
56
        $this->appendUserAgent($client, 'feat/s3-encrypt/' . self::CRYPTO_VERSION);
-
 
57
        $this->client = $client;
57
        $this->client = $client;
58
        $this->instructionFileSuffix = $instructionFileSuffix;
58
        $this->instructionFileSuffix = $instructionFileSuffix;
-
 
59
        MetricsBuilder::appendMetricsCaptureMiddleware(
-
 
60
            $this->client->getHandlerList(),
-
 
61
            MetricsBuilder::S3_CRYPTO_V1N
-
 
62
        );
59
    }
63
    }
Línea 60... Línea 64...
60
 
64
 
61
    private static function getDefaultStrategy()
65
    private static function getDefaultStrategy()
62
    {
66
    {