## 接口 com.aliyun.oss.crypto.EncryptionMaterials
的使用

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

- - ### com.aliyun.oss中EncryptionMaterials的使用

    参数类型为EncryptionMaterials的com.aliyun.oss中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `OSSEncryptionClient` | OSSEncryptionClientBuilder.`build(String endpoint, CredentialsProvider credsProvider, EncryptionMaterials encryptionMaterials)` Constructs a instance of `OSSEncryptionClient` using the current builder configuration.
    `OSSEncryptionClient` | OSSEncryptionClientBuilder.`build(String endpoint, CredentialsProvider credsProvider, EncryptionMaterials encryptionMaterials, ClientBuilderConfiguration clientConfig)` Constructs a instance of `OSSEncryptionClient` using the current builder configuration.
    `OSSEncryptionClient` | OSSEncryptionClientBuilder.`build(String endpoint, CredentialsProvider credsProvider, EncryptionMaterials encryptionMaterials, ClientBuilderConfiguration clientConfig, CryptoConfiguration cryptoConfig)` Construct a synchronous implementation of OSSEncryptionClient using the current builder configuration.
    `OSSEncryptionClient` | OSSEncryptionClientBuilder.`build(String endpoint, CredentialsProvider credsProvider, EncryptionMaterials encryptionMaterials, CryptoConfiguration cryptoConfig)` Construct a synchronous implementation of OSSEncryptionClient using the current builder configuration.
    `OSSEncryptionClient` | OSSEncryptionClientBuilder.`build(String endpoint, String accessKeyId, String accessKeySecret, EncryptionMaterials encryptionMaterials)` Constructs a instance of `OSSEncryptionClient` using the current builder configuration.
    `OSSEncryptionClient` | OSSEncryptionClientBuilder.`build(String endpoint, String accessKeyId, String accessKeySecret, String securityToken, EncryptionMaterials encryptionMaterials)` Constructs a instance of `OSSEncryptionClient` using the current builder configuration.

    参数类型为EncryptionMaterials的com.aliyun.oss中的构造器
    构造器和说明
    `OSSEncryptionClient(String endpoint, CredentialsProvider credsProvider, ClientConfiguration clientConfig, EncryptionMaterials encryptionMaterials, CryptoConfiguration cryptoConfig)`

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

    实现EncryptionMaterials的com.aliyun.oss.crypto中的类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `KmsEncryptionMaterials` This provide a kms encryption materials for client-side encryption.
    `class` | `SimpleRSAEncryptionMaterials` This provide a simple rsa encryption materials for client-side encryption.

    声明为EncryptionMaterials的com.aliyun.oss.crypto中的字段
    限定符和类型 | 字段和说明
    --- | ---
    `protected EncryptionMaterials` | CryptoModuleBase.`encryptionMaterials`

    参数类型为EncryptionMaterials的com.aliyun.oss.crypto中的构造器
    构造器和说明
    `CryptoModuleBase(OSSDirect ossDirect, EncryptionMaterials encryptionMaterials, CryptoConfiguration cryptoConfig)`
    `CryptoModuleDispatcher(OSSDirect ossDirect, EncryptionMaterials encryptionMaterials, CryptoConfiguration cryptoConfig)`

Copyright © 2020. All Rights Reserved.