类 SseCHeader

java.lang.Object
com.obs.services.model.SseCHeader

public class SseCHeader extends Object
SSE-C encryption/decryption headers
  • 构造器详细资料

    • SseCHeader

      public SseCHeader()
  • 方法详细资料

    • getAlgorithm

      @Deprecated public ServerAlgorithm getAlgorithm()
      已过时。
      Obtain the encryption algorithm type. Only AES256 is supported. This parameter must be used together with "sseCKey."
      返回:
      Encryption algorithm type
    • setAlgorithm

      @Deprecated public void setAlgorithm(ServerAlgorithm algorithm)
      已过时。
      Set the encryption algorithm type. Only AES256 is supported. This parameter must be used together with "sseCKey."
      参数:
      algorithm - Encryption algorithm type
    • getSSEAlgorithm

      public SSEAlgorithmEnum getSSEAlgorithm()
      Obtain the encryption algorithm type. Only AES256 is supported. This parameter must be used together with "sseCKey".
      返回:
      Encryption algorithm type
    • getSseCKey

      public byte[] getSseCKey()
      Obtain the key used in the SSE-C mode. The key is used to encrypt and decrypt an object. The value is not encoded using Base64.
      返回:
      Key used in the SSE-C mode
    • setSseCKey

      @Deprecated public void setSseCKey(String sseCKey)
      已过时。
      Set the key used in the SSE-C mode. The key is used to encrypt and decrypt an object. The value is not encoded using Base64.
      参数:
      sseCKey - Key used in the SSE-C mode. The key is used to encrypt and decrypt an object.
    • setSseCKey

      public void setSseCKey(byte[] sseCKey)
      Set the key used in the SSE-C mode. The key is used to encrypt and decrypt an object. The value is not encoded using Base64.
      参数:
      sseCKey - Key used in the SSE-C mode. The key is used to encrypt and decrypt an object.
    • getSseCKeyBase64

      public String getSseCKeyBase64()
      Obtain the key used in the SSE-C mode. The key is used to encrypt and decrypt an object. The value is a Base64-encoded value.
      返回:
      Key used in the SSE-C mode
    • setSseCKeyBase64

      public void setSseCKeyBase64(String sseCKeyBase64)
      Set the key used in the SSE-C mode. The key is used to encrypt and decrypt an object. The value is a Base64-encoded value.
      参数:
      sseCKeyBase64 - Key used in the SSE-C mode. The key is used to encrypt and decrypt an object.
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object