Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 2... Línea 2...
2
namespace Aws\S3\Crypto;
2
namespace Aws\S3\Crypto;
Línea 3... Línea 3...
3
 
3
 
4
use Aws\Crypto\DecryptionTraitV2;
4
use Aws\Crypto\DecryptionTraitV2;
5
use Aws\Exception\CryptoException;
5
use Aws\Exception\CryptoException;
-
 
6
use Aws\HashingStream;
6
use Aws\HashingStream;
7
use Aws\MetricsBuilder;
7
use Aws\PhpHash;
8
use Aws\PhpHash;
8
use Aws\Crypto\AbstractCryptoClientV2;
9
use Aws\Crypto\AbstractCryptoClientV2;
9
use Aws\Crypto\EncryptionTraitV2;
10
use Aws\Crypto\EncryptionTraitV2;
10
use Aws\Crypto\MetadataEnvelope;
11
use Aws\Crypto\MetadataEnvelope;
Línea 103... Línea 104...
103
     */
104
     */
104
    public function __construct(
105
    public function __construct(
105
        S3Client $client,
106
        S3Client $client,
106
        $instructionFileSuffix = null
107
        $instructionFileSuffix = null
107
    ) {
108
    ) {
108
        $this->appendUserAgent($client, 'feat/s3-encrypt/' . self::CRYPTO_VERSION);
-
 
109
        $this->client = $client;
109
        $this->client = $client;
110
        $this->instructionFileSuffix = $instructionFileSuffix;
110
        $this->instructionFileSuffix = $instructionFileSuffix;
111
        $this->legacyWarningCount = 0;
111
        $this->legacyWarningCount = 0;
-
 
112
        MetricsBuilder::appendMetricsCaptureMiddleware(
-
 
113
            $this->client->getHandlerList(),
-
 
114
            MetricsBuilder::S3_CRYPTO_V2
-
 
115
        );
112
    }
116
    }
Línea 113... Línea 117...
113
 
117
 
114
    private static function getDefaultStrategy()
118
    private static function getDefaultStrategy()
115
    {
119
    {