com.amazonaws.services.s3.internal.crypto

## クラス CipherFactory

- java.lang.Object
- - com.amazonaws.services.s3.internal.crypto.CipherFactory

-     public class CipherFactory
      extends java.lang.Object

  Factory for creating Ciphers based on the crypto key and configuration specified in the constructor. Each invocation of `createCipher()` will produce a new, identical Cipher object. Each returned Cipher will encrypt data with exactly the same output as any other Cipher returned by this instance of CipherFactory.

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `CipherFactory(javax.crypto.SecretKey symmetricKey, int cipherMode, byte[] initVectorBytes, java.security.Provider cryptoProvider)` Creates a new CipherFactory that will produce ciphers using the specified key, mode, IV and provider.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `javax.crypto.Cipher` | `createCipher()` Creates a new Cipher instance based on the crypto parameters specified in the constructor.

    - ### クラスから継承されたメソッド java.lang.Object

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

- - ### コンストラクタの詳細

    - #### CipherFactory

          public CipherFactory(javax.crypto.SecretKey symmetricKey,
                       int cipherMode,
                       byte[] initVectorBytes,
                       java.security.Provider cryptoProvider)

      Creates a new CipherFactory that will produce ciphers using the specified key, mode, IV and provider.
      パラメータ:
        `symmetricKey` - The symmetric key used in the ciphers created by this factory.
        `cipherMode` - The mode indicating whether the created ciphers are for encrypting or decrypting.
        `initVectorBytes` - The optional crypto IV used to initialize the ciphers.
        `cryptoProvider` - The optional Java crypto provider implementation, if an alternate crypto provider is to be used.

  - ### メソッドの詳細

    - #### createCipher

          public javax.crypto.Cipher createCipher()

      Creates a new Cipher instance based on the crypto parameters specified in the constructor. Each Cipher instance is identical to any other Cipher produced by this CipherFactory.
      戻り値:
        A new Cipher instance, identical to each Cipher produced by this factory instance.