This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see
Cake.AWS.S3.
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.
Syntax
public static T SetEncryptionKey<T>(this T settings, string key) where T : S3Settings
Type Parameters
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. |