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

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

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

    参数类型为CryptoConfiguration的com.aliyun.oss中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `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.

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

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

    声明为CryptoConfiguration的com.aliyun.oss.crypto中的字段
    限定符和类型 | 字段和说明
    --- | ---
    `protected CryptoConfiguration` | CryptoModuleBase.`cryptoConfig`
    `static CryptoConfiguration` | CryptoConfiguration.`DEFAULT` Default crypto configuration.

    返回CryptoConfiguration的com.aliyun.oss.crypto中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `CryptoConfiguration` | CryptoConfiguration.`clone()`
    `CryptoConfiguration` | CryptoConfiguration.`withContentCryptoProvider(Provider contentCryptoProvider)` Sets the content crypto provider the specified provider, and returns the updated CryptoConfiguration object.
    `CryptoConfiguration` | CryptoConfiguration.`withSecureRandom(SecureRandom secureRandom)` Sets the secure random to the specified secure random generator, and returns the updated CryptoConfiguration object.

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

Copyright © 2020. All Rights Reserved.