com.qcloud.cos.internal.ServerSideEncryptionResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cos_api Show documentation
Show all versions of cos_api Show documentation
qcloud cos sdk for inner tencentyun
The newest version!
package com.qcloud.cos.internal;
/**
* Interface for service responses that include the server-side-encryption
* related headers.
*
* @see Headers#SERVER_SIDE_ENCRYPTION
* @see Headers#SERVER_SIDE_ENCRYPTION_CUSTOMER_ALGORITHM
* @see Headers#SERVER_SIDE_ENCRYPTION_CUSTOMER_KEY_MD5
*/
public interface ServerSideEncryptionResult {
/**
* Returns the server-side encryption algorithm if the object is encrypted
* using COS-managed keys. Otherwise returns null.
*/
public String getSSEAlgorithm();
/**
* Sets the server-side encryption algorithm for the response.
*
* @param algorithm
* The server-side encryption algorithm for the response.
*/
public void setSSEAlgorithm(String algorithm);
/**
* Returns the server-side encryption algorithm if the object is encrypted
* using customer-provided keys. Otherwise returns null.
*/
public String getSSECustomerAlgorithm();
/**
* Sets the server-side encryption algorithm used when encrypting the object
* with customer-provided keys.
*
* @param algorithm
* The server-side encryption algorithm used when encrypting the
* object with customer-provided keys.
*/
public void setSSECustomerAlgorithm(String algorithm);
/**
* Returns the base64-encoded MD5 digest of the encryption key for
* server-side encryption, if the object is encrypted using
* customer-provided keys. Otherwise returns null.
*/
public String getSSECustomerKeyMd5();
/**
* Sets the base64-encoded MD5 digest of the encryption key for server-side
* encryption.
*
* @param md5Digest
* The base64-encoded MD5 digest of the encryption key for
* server-side encryption.
*/
public void setSSECustomerKeyMd5(String md5Digest);
}