BcCMSContentEncryptorBuilder (Bouncy Castle Library 1.54 API Specification)
Date: 2015-12-29

org.bouncycastle.cms.bc

## Class BcCMSContentEncryptorBuilder

- java.lang.Object
- - org.bouncycastle.cms.bc.BcCMSContentEncryptorBuilder

-     public class BcCMSContentEncryptorBuilder
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BcCMSContentEncryptorBuilder(org.bouncycastle.asn1.ASN1ObjectIdentifier encryptionOID)`
    `BcCMSContentEncryptorBuilder(org.bouncycastle.asn1.ASN1ObjectIdentifier encryptionOID, int keySize)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `OutputEncryptor` | `build()`
    `BcCMSContentEncryptorBuilder` | `setSecureRandom(java.security.SecureRandom random)`

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

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

- - ### Constructor Detail

    - #### BcCMSContentEncryptorBuilder

          public BcCMSContentEncryptorBuilder(org.bouncycastle.asn1.ASN1ObjectIdentifier encryptionOID)

    - #### BcCMSContentEncryptorBuilder

          public BcCMSContentEncryptorBuilder(org.bouncycastle.asn1.ASN1ObjectIdentifier encryptionOID,
                                      int keySize)

  - ### Method Detail

    - #### setSecureRandom

          public BcCMSContentEncryptorBuilder setSecureRandom(java.security.SecureRandom random)

    - #### build

          public OutputEncryptor build()
                                throws CMSException

      Throws:
        `CMSException`