com.aliyun.oss.crypto

## 类 CryptoConfiguration

- java.lang.Object
- - com.aliyun.oss.crypto.CryptoConfiguration

- 所有已实现的接口:
    Serializable, Cloneable

      public class CryptoConfiguration
      extends Object
      implements Cloneable, Serializable

  The crypto configuration used to configure storage method of crypto info, content crypto mode, secure random generator and content crypto provider.
  另请参阅:
    序列化表格

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `static CryptoConfiguration` | `DEFAULT` Default crypto configuration.

  - ### 构造器概要

    构造器
    构造器和说明
    `CryptoConfiguration()`
    `CryptoConfiguration(ContentCryptoMode contentCryptoMode, CryptoStorageMethod storageMethod, SecureRandom secureRandom, Provider contentCryptoProvider)`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `CryptoConfiguration` | `clone()`
    `ContentCryptoMode` | `getContentCryptoMode()` Gets the content crypto mode to the specified crypto mode.
    `Provider` | `getContentCryptoProvider()` Gets the content crypto provider
    `SecureRandom` | `getSecureRandom()` Gets the secure random to the specified secure random generator.
    `CryptoStorageMethod` | `getStorageMethod()` Gets the storage method.
    `void` | `setContentCryptoMode(ContentCryptoMode contentCryptoMode)` Sets the content crypto mode to the specified crypto mode.
    `void` | `setContentCryptoProvider(Provider contentCryptoProvider)` Sets the content crypto provider the specified provider.
    `void` | `setSecureRandom(SecureRandom secureRandom)` Sets the secure random to the specified secure random generator, and returns the updated CryptoConfiguration object.
    `void` | `setStorageMethod(CryptoStorageMethod storageMethod)` Sets the storage method to the specified storage method.
    `CryptoConfiguration` | `withContentCryptoProvider(Provider contentCryptoProvider)` Sets the content crypto provider the specified provider, and returns the updated CryptoConfiguration object.
    `CryptoConfiguration` | `withSecureRandom(SecureRandom secureRandom)` Sets the secure random to the specified secure random generator, and returns the updated CryptoConfiguration object.

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

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

- - ### 字段详细资料

    - #### DEFAULT

          public static final CryptoConfiguration DEFAULT

      Default crypto configuration.

  - ### 构造器详细资料

    - #### CryptoConfiguration

          public CryptoConfiguration()

    - #### CryptoConfiguration

          public CryptoConfiguration(ContentCryptoMode contentCryptoMode,
                             CryptoStorageMethod storageMethod,
                             SecureRandom secureRandom,
                             Provider contentCryptoProvider)

  - ### 方法详细资料

    - #### setContentCryptoMode

          public void setContentCryptoMode(ContentCryptoMode contentCryptoMode)

      Sets the content crypto mode to the specified crypto mode.
      参数:
        `contentCryptoMode` - the content crypto mode `ContentCryptoMode`.

    - #### getContentCryptoMode

          public ContentCryptoMode getContentCryptoMode()

      Gets the content crypto mode to the specified crypto mode.
      返回:
        contentCryptoMode the content crypto mode `ContentCryptoMode`.

    - #### setStorageMethod

          public void setStorageMethod(CryptoStorageMethod storageMethod)

      Sets the storage method to the specified storage method.
      参数:
        `storageMethod` - the storage method of the cryto information sotoring.

    - #### getStorageMethod

          public CryptoStorageMethod getStorageMethod()

      Gets the storage method.
      返回:
        the storage method of the cryto information storing.

    - #### setSecureRandom

          public void setSecureRandom(SecureRandom secureRandom)

      Sets the secure random to the specified secure random generator, and returns the updated CryptoConfiguration object.
      参数:
        `secureRandom` - the secure random generator.

    - #### withSecureRandom

          public CryptoConfiguration withSecureRandom(SecureRandom secureRandom)

      Sets the secure random to the specified secure random generator, and returns the updated CryptoConfiguration object.
      参数:
        `secureRandom` - the secure random generator.
      返回:
        The updated CryptoConfiguration object.

    - #### getSecureRandom

          public SecureRandom getSecureRandom()

      Gets the secure random to the specified secure random generator.
      返回:
        secureRandom the secure random generator.

    - #### setContentCryptoProvider

          public void setContentCryptoProvider(Provider contentCryptoProvider)

      Sets the content crypto provider the specified provider.
      参数:
        `contentCryptoProvider` - The provider to be used for crypto content.

    - #### withContentCryptoProvider

          public CryptoConfiguration withContentCryptoProvider(Provider contentCryptoProvider)

      Sets the content crypto provider the specified provider, and returns the updated CryptoConfiguration object.
      参数:
        `contentCryptoProvider` - The provider to be used for crypto content.
      返回:
        The updated CryptoConfiguration object.

    - #### getContentCryptoProvider

          public Provider getContentCryptoProvider()

      Gets the content crypto provider
      返回:
        the provider to be used for crypto content.

    - #### clone

          public CryptoConfiguration clone()

      覆盖:
        `clone` 在类中 `Object`

Copyright © 2020. All Rights Reserved.