com.aliyun.oss.crypto

## 类 ContentCryptoMaterialRW

- java.lang.Object
- - com.aliyun.oss.crypto.ContentCryptoMaterial
  - - com.aliyun.oss.crypto.ContentCryptoMaterialRW

- 所有已实现的接口:
    Serializable

      public class ContentCryptoMaterialRW
      extends ContentCryptoMaterial

  ContentCryptoMaterialRW has the setting accessor of `ContentCryptoMaterial`.
  另请参阅:
    序列化表格

- - ### 字段概要

    - ### 从类继承的字段 com.aliyun.oss.crypto.ContentCryptoMaterial

      `cek, contentCryptoAlgorithm, encryptedCEK, encryptedIV, iv, keyWrapAlgorithm, matdesc`

  - ### 构造器概要

    构造器
    构造器和说明
    `ContentCryptoMaterialRW()`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `setCEK(SecretKey cek)` Sets the content encryption key to the specified key.
    `void` | `setContentCryptoAlgorithm(String cententCryptoAlgorithm)` Sets the content crypto algorithm to the specified algorithm.
    `void` | `setEncryptedCEK(byte[] encryptedCEK)` Sets the encrypted content encryption key to the specified array.
    `void` | `setEncryptedIV(byte[] encryptedIV)` Sets the encrypted content crypto cipher start counter to the specified array.
    `void` | `setIV(byte[] iv)` Sets the content crypto cipher start counter to the specified counter.
    `void` | `setKeyWrapAlgorithm(String keyWrapAlgorithm)` Sets the key wrap algorithm to the specified algorithm.
    `void` | `setMaterialsDescription(Map<String,String> matdesc)` Sets the description of the encryption materials

    - ### 从类继承的方法 com.aliyun.oss.crypto.ContentCryptoMaterial

      `getCEK, getContentCryptoAlgorithm, getEncryptedCEK, getEncryptedIV, getIV, getKeyWrapAlgorithm, getMaterialsDescription, hashCode`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### ContentCryptoMaterialRW

          public ContentCryptoMaterialRW()

  - ### 方法详细资料

    - #### setContentCryptoAlgorithm

          public void setContentCryptoAlgorithm(String cententCryptoAlgorithm)

      Sets the content crypto algorithm to the specified algorithm.

    - #### setCEK

          public void setCEK(SecretKey cek)

      Sets the content encryption key to the specified key.

    - #### setIV

          public void setIV(byte[] iv)

      Sets the content crypto cipher start counter to the specified counter.

    - #### setEncryptedCEK

          public void setEncryptedCEK(byte[] encryptedCEK)

      Sets the encrypted content encryption key to the specified array.

    - #### setEncryptedIV

          public void setEncryptedIV(byte[] encryptedIV)

      Sets the encrypted content crypto cipher start counter to the specified array.

    - #### setKeyWrapAlgorithm

          public void setKeyWrapAlgorithm(String keyWrapAlgorithm)

      Sets the key wrap algorithm to the specified algorithm.

    - #### setMaterialsDescription

          public void setMaterialsDescription(Map<String,String> matdesc)

      Sets the description of the encryption materials

Copyright © 2020. All Rights Reserved.