Class ReEncryptInstructionFileRequest
- java.lang.Object
-
- software.amazon.encryption.s3.internal.ReEncryptInstructionFileRequest
-
public class ReEncryptInstructionFileRequest extends Object
Request object for re-encrypting instruction files in S3. This request supports re-encryption operations using either AES or RSA keyrings. For AES keyrings, only the default instruction file suffix is supported. For RSA keyrings, both the default and custom instruction file suffixes are supported.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ReEncryptInstructionFileRequest.Builder
Builder for ReEncryptInstructionFileRequest.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
bucket()
static ReEncryptInstructionFileRequest.Builder
builder()
Creates a builder that can be used to configure and create aReEncryptInstructionFileRequest
boolean
enforceRotation()
String
instructionFileSuffix()
String
key()
RawKeyring
newKeyring()
-
-
-
Method Detail
-
bucket
public String bucket()
- Returns:
- the S3 bucket name that contains the encrypted object and instruction file to re-encrypt
-
key
public String key()
- Returns:
- the S3 object key of the encrypted object whose instruction file will be re-encrypted
-
newKeyring
public RawKeyring newKeyring()
- Returns:
- the new keyring (AES or RSA) that will be used to re-encrypt the instruction file
-
instructionFileSuffix
public String instructionFileSuffix()
- Returns:
- the suffix to use for the instruction file. The default instruction file suffix is ".instruction"
-
enforceRotation
public boolean enforceRotation()
- Returns:
- whether to enforce rotation for the re-encrypted instruction file
-
builder
public static ReEncryptInstructionFileRequest.Builder builder()
Creates a builder that can be used to configure and create aReEncryptInstructionFileRequest
- Returns:
- a new builder
-
-