BcSymmetricKeyWrapper (Bouncy Castle Library 1.52 API Specification)
Date: 2015-03-01

org.bouncycastle.operator.bc

## Class BcSymmetricKeyWrapper

- java.lang.Object
- - org.bouncycastle.operator.SymmetricKeyWrapper
  - - org.bouncycastle.operator.bc.BcSymmetricKeyWrapper

- All Implemented Interfaces:
    KeyWrapper
  Direct Known Subclasses:
    BcAESSymmetricKeyWrapper

      public class BcSymmetricKeyWrapper
      extends SymmetricKeyWrapper

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BcSymmetricKeyWrapper(org.bouncycastle.asn1.x509.AlgorithmIdentifier wrappingAlgorithm, org.bouncycastle.crypto.Wrapper wrapper, org.bouncycastle.crypto.params.KeyParameter wrappingKey)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `generateWrappedKey(GenericKey encryptionKey)`
    `BcSymmetricKeyWrapper` | `setSecureRandom(java.security.SecureRandom random)`

    - ### Methods inherited from class org.bouncycastle.operator.SymmetricKeyWrapper

      `getAlgorithmIdentifier`

    - ### Methods inherited from class java.lang.Object

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

- - ### Constructor Detail

    - #### BcSymmetricKeyWrapper

          public BcSymmetricKeyWrapper(org.bouncycastle.asn1.x509.AlgorithmIdentifier wrappingAlgorithm,
                               org.bouncycastle.crypto.Wrapper wrapper,
                               org.bouncycastle.crypto.params.KeyParameter wrappingKey)

  - ### Method Detail

    - #### setSecureRandom

          public BcSymmetricKeyWrapper setSecureRandom(java.security.SecureRandom random)

    - #### generateWrappedKey

          public byte[] generateWrappedKey(GenericKey encryptionKey)
                                    throws OperatorException

      Throws:
        `OperatorException`