S3SettingsExtensions.

SetEncryptionKey<T>(T, string) Method

Summary

The base64-encoded encryption key for Amazon S3 to use to decrypt the object Using the encryption key you provide as part of your request Amazon S3 manages both the encryption, as it writes to disks, and decryption, when you access your objects. Therefore, you don't need to maintain any data encryption code. The only thing you do is manage the encryption keys you provide. When you retrieve an object, you must provide the same encryption key as part of your request. Amazon S3 first verifies the encryption key you provided matches, and then decrypts the object before returning the object data to you. Important: Amazon S3 does not store the encryption key you provide.
Assembly
Cake.AWS.S3.dll
Namespace
Cake.AWS.S3
Containing Type
S3SettingsExtensions

Syntax

public static T SetEncryptionKey<T>(this T settings, string key) where T : S3Settings

Type Parameters

Name Description
T

Parameters

Name Type Description
settings T The S3 settings.
key string The base64-encoded encryption key for Amazon S3 to use to decrypt the object.

Return Value

Type Description
T The same S3Settings instance so that multiple calls can be chained.