public abstract class SSEResultBase extends Object implements ServerSideEncryptionResult
Constructor and Description |
---|
SSEResultBase() |
Modifier and Type | Method and Description |
---|---|
Boolean |
getBucketKeyEnabled()
Indicates whether the object uses an S3 Bucket Key for server-side encryption with AWS KMS (SSE-KMS).
|
String |
getServerSideEncryption()
Deprecated.
Replaced by
getSSEAlgorithm() |
String |
getSSEAlgorithm()
Returns the server-side encryption algorithm if the object is encrypted
using AWS-managed keys.
|
String |
getSSECustomerAlgorithm()
Returns the server-side encryption algorithm if the object is encrypted
using customer-provided keys.
|
String |
getSSECustomerKeyMd5()
Returns the base64-encoded MD5 digest of the encryption key for
server-side encryption, if the object is encrypted using
customer-provided keys.
|
void |
setBucketKeyEnabled(Boolean bucketKeyEnabled)
Sets whether or not the object is encrypted with Bucket Key.
|
void |
setSSEAlgorithm(String algorithm)
Sets the server-side encryption algorithm for the response.
|
void |
setSSECustomerAlgorithm(String algorithm)
Sets the server-side encryption algorithm used when encrypting the object
with customer-provided keys.
|
void |
setSSECustomerKeyMd5(String md5)
Sets the base64-encoded MD5 digest of the encryption key for server-side
encryption.
|
public final String getSSEAlgorithm()
ServerSideEncryptionResult
getSSEAlgorithm
in interface ServerSideEncryptionResult
public final void setSSEAlgorithm(String algorithm)
ServerSideEncryptionResult
setSSEAlgorithm
in interface ServerSideEncryptionResult
algorithm
- The server-side encryption algorithm for the response.public final String getSSECustomerAlgorithm()
ServerSideEncryptionResult
getSSECustomerAlgorithm
in interface ServerSideEncryptionResult
public final void setSSECustomerAlgorithm(String algorithm)
ServerSideEncryptionResult
setSSECustomerAlgorithm
in interface ServerSideEncryptionResult
algorithm
- The server-side encryption algorithm used when encrypting the
object with customer-provided keys.public final String getSSECustomerKeyMd5()
ServerSideEncryptionResult
getSSECustomerKeyMd5
in interface ServerSideEncryptionResult
public final void setSSECustomerKeyMd5(String md5)
ServerSideEncryptionResult
setSSECustomerKeyMd5
in interface ServerSideEncryptionResult
md5
- The base64-encoded MD5 digest of the encryption key for
server-side encryption.public final Boolean getBucketKeyEnabled()
ServerSideEncryptionResult
getBucketKeyEnabled
in interface ServerSideEncryptionResult
public final void setBucketKeyEnabled(Boolean bucketKeyEnabled)
ServerSideEncryptionResult
setBucketKeyEnabled
in interface ServerSideEncryptionResult
bucketKeyEnabled
- Whether or not bucket key is enabled@Deprecated public final String getServerSideEncryption()
getSSEAlgorithm()
Copyright © 2021. All rights reserved.