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

org.bouncycastle.pkcs.bc

## Class BcPKCS10CertificationRequestBuilder

- java.lang.Object
- - org.bouncycastle.pkcs.PKCS10CertificationRequestBuilder
  - - org.bouncycastle.pkcs.bc.BcPKCS10CertificationRequestBuilder

-     public class BcPKCS10CertificationRequestBuilder
      extends PKCS10CertificationRequestBuilder

  Extension of the PKCS#10 builder to support AsymmetricKey objects.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BcPKCS10CertificationRequestBuilder(org.bouncycastle.asn1.x500.X500Name subject, org.bouncycastle.crypto.params.AsymmetricKeyParameter publicKey)` Create a PKCS#10 builder for the passed in subject and JCA public key.

  - ### Method Summary

    - ### Methods inherited from class org.bouncycastle.pkcs.PKCS10CertificationRequestBuilder

      `addAttribute, addAttribute, build, setLeaveOffEmptyAttributes`

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

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

- - ### Constructor Detail

    - #### BcPKCS10CertificationRequestBuilder

          public BcPKCS10CertificationRequestBuilder(org.bouncycastle.asn1.x500.X500Name subject,
                                             org.bouncycastle.crypto.params.AsymmetricKeyParameter publicKey)
                                              throws java.io.IOException

      Create a PKCS#10 builder for the passed in subject and JCA public key.
      Parameters:
        `subject` - an X500Name containing the subject associated with the request we are building.
        `publicKey` - a JCA public key that is to be associated with the request we are building.
      Throws:
        `java.io.IOException` - if there is a problem encoding the public key.