Top Description Constructors Methods
org.bouncycastle.pkcs.bc

public Class BcPKCS10CertificationRequestBuilder

extends PKCS10CertificationRequestBuilder
Class Inheritance
Imports
java.io.IOException, org.bouncycastle.asn1.x500.X500Name, org.bouncycastle.crypto.params.AsymmetricKeyParameter, org.bouncycastle.crypto.util.SubjectPublicKeyInfoFactory, org.bouncycastle.pkcs.PKCS10CertificationRequestBuilder

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

Constructor Summary

AccessConstructor and Description
public
BcPKCS10CertificationRequestBuilder(X500Name
an X500Name containing the subject associated with the request we are building.
subject
,
AsymmetricKeyParameter
a JCA public key that is to be associated with the request we are building.
publicKey
)

Create a PKCS#10 builder for the passed in subject and JCA public key.

Method Summary

Inherited from org.bouncycastle.pkcs.PKCS10CertificationRequestBuilder:
addAttributeaddAttributebuildbuildsetAttributesetAttributesetLeaveOffEmptyAttributes

Constructor Detail

BcPKCS10CertificationRequestBuilderback to summary
public BcPKCS10CertificationRequestBuilder(X500Name subject, AsymmetricKeyParameter publicKey) throws IOException

Create a PKCS#10 builder for the passed in subject and JCA public key.

Parameters
subject:X500Name

an X500Name containing the subject associated with the request we are building.

publicKey:AsymmetricKeyParameter

a JCA public key that is to be associated with the request we are building.

Exceptions
IOException:
if there is a problem encoding the public key.