## 类 com.aliyun.oss.crypto.ContentCryptoMaterial
的使用

- 使用ContentCryptoMaterial的程序包
  程序包 | 说明
  --- | ---
  com.aliyun.oss.crypto |

- - ### com.aliyun.oss.crypto中ContentCryptoMaterial的使用

    com.aliyun.oss.crypto中ContentCryptoMaterial的子类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `ContentCryptoMaterialRW` ContentCryptoMaterialRW has the setting accessor of `ContentCryptoMaterial`.

    返回ContentCryptoMaterial的com.aliyun.oss.crypto中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected ContentCryptoMaterial` | CryptoModuleBase.`buildContentCryptoMaterials()` Build a new content crypto material read-only.
    `protected ContentCryptoMaterial` | CryptoModuleBase.`createContentMaterialFromMetadata(ObjectMetadata meta)` Builds a new content crypto material for decrypting the object achieved.
    `ContentCryptoMaterial` | MultipartUploadCryptoContext.`getContentCryptoMaterial()`

    参数类型为ContentCryptoMaterial的com.aliyun.oss.crypto中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | MultipartUploadCryptoContext.`setContentCryptoMaterial(ContentCryptoMaterial cekMaterial)`
    `protected ObjectMetadata` | CryptoModuleBase.`updateMetadataWithContentCryptoMaterial(ObjectMetadata metadata, File file, ContentCryptoMaterial contentCryptoMaterial)` Storages the encrytion materials in the object metadata.
    `protected PutObjectRequest` | CryptoModuleBase.`wrapPutRequestWithCipher(PutObjectRequest request, ContentCryptoMaterial cekMaterial)` Returns the given `PutObjectRequest` instance but has the content as input stream wrapped with a cipher, and configured with some meta data and user metadata.

Copyright © 2020. All Rights Reserved.