abstract class AbstractSSEHandler extends AbstractHandler implements ServerSideEncryptionResult
Constructor and Description |
---|
AbstractSSEHandler() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSSEAlgorithm()
Returns the server-side encryption algorithm if the object is encrypted
using AWS-managed keys.
|
java.lang.String |
getSSECustomerAlgorithm()
Returns the server-side encryption algorithm if the object is encrypted
using customer-provided keys.
|
java.lang.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 |
setSSEAlgorithm(java.lang.String serverSideEncryption)
Sets the server-side encryption algorithm for the response.
|
void |
setSSECustomerAlgorithm(java.lang.String algorithm)
Sets the server-side encryption algorithm used when encrypting the object
with customer-provided keys.
|
void |
setSSECustomerKeyMd5(java.lang.String md5Digest)
Sets the base64-encoded MD5 digest of the encryption key for server-side
encryption.
|
protected abstract ServerSideEncryptionResult |
sseResult()
Used to get access to the specific server side encryption (SSE) result
from the subclass.
|
atTopLevel, characters, doEndElement, doStartElement, endElement, getText, in, startElement
protected abstract ServerSideEncryptionResult sseResult()
public final java.lang.String getSSEAlgorithm()
ServerSideEncryptionResult
getSSEAlgorithm
in interface ServerSideEncryptionResult
public final void setSSEAlgorithm(java.lang.String serverSideEncryption)
ServerSideEncryptionResult
setSSEAlgorithm
in interface ServerSideEncryptionResult
serverSideEncryption
- The server-side encryption algorithm for the response.public final java.lang.String getSSECustomerAlgorithm()
ServerSideEncryptionResult
getSSECustomerAlgorithm
in interface ServerSideEncryptionResult
public final void setSSECustomerAlgorithm(java.lang.String algorithm)
ServerSideEncryptionResult
setSSECustomerAlgorithm
in interface ServerSideEncryptionResult
algorithm
- The server-side encryption algorithm used when encrypting the
object with customer-provided keys.public final java.lang.String getSSECustomerKeyMd5()
ServerSideEncryptionResult
getSSECustomerKeyMd5
in interface ServerSideEncryptionResult
public final void setSSECustomerKeyMd5(java.lang.String md5Digest)
ServerSideEncryptionResult
setSSECustomerKeyMd5
in interface ServerSideEncryptionResult
md5Digest
- The base64-encoded MD5 digest of the encryption key for
server-side encryption.