|
Bouncy Castle Cryptography 1.47 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bouncycastle.cert.X509v3CertificateBuilder
public class X509v3CertificateBuilder
class to produce an X.509 Version 3 certificate.
| Constructor Summary | |
|---|---|
X509v3CertificateBuilder(org.bouncycastle.asn1.x500.X500Name issuer,
java.math.BigInteger serial,
java.util.Date notBefore,
java.util.Date notAfter,
org.bouncycastle.asn1.x500.X500Name subject,
org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo)
Create a builder for a version 3 certificate. |
|
| Method Summary | |
|---|---|
X509v3CertificateBuilder |
addExtension(org.bouncycastle.asn1.ASN1ObjectIdentifier oid,
boolean isCritical,
org.bouncycastle.asn1.ASN1Encodable value)
Add a given extension field for the standard extensions tag (tag 3) |
X509CertificateHolder |
build(org.bouncycastle.operator.ContentSigner signer)
Generate an X.509 certificate, based on the current issuer and subject using the passed in signer. |
X509v3CertificateBuilder |
copyAndAddExtension(org.bouncycastle.asn1.ASN1ObjectIdentifier oid,
boolean isCritical,
X509CertificateHolder certHolder)
Add a given extension field for the standard extensions tag (tag 3) copying the extension value from another certificate. |
X509v3CertificateBuilder |
setIssuerUniqueID(boolean[] uniqueID)
Set the issuerUniqueID - note: it is very rare that it is correct to do this. |
X509v3CertificateBuilder |
setSubjectUniqueID(boolean[] uniqueID)
Set the subjectUniqueID - note: it is very rare that it is correct to do this. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public X509v3CertificateBuilder(org.bouncycastle.asn1.x500.X500Name issuer,
java.math.BigInteger serial,
java.util.Date notBefore,
java.util.Date notAfter,
org.bouncycastle.asn1.x500.X500Name subject,
org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo)
issuer - the certificate issuerserial - the certificate serial numbernotBefore - the date before which the certificate is not validnotAfter - the date after which the certificate is not validsubject - the certificate subjectpublicKeyInfo - the info structure for the public key to be associated with this certificate.| Method Detail |
|---|
public X509v3CertificateBuilder setSubjectUniqueID(boolean[] uniqueID)
uniqueID - a boolean array representing the bits making up the subjectUniqueID.
public X509v3CertificateBuilder setIssuerUniqueID(boolean[] uniqueID)
uniqueID - a boolean array representing the bits making up the issuerUniqueID.
public X509v3CertificateBuilder addExtension(org.bouncycastle.asn1.ASN1ObjectIdentifier oid,
boolean isCritical,
org.bouncycastle.asn1.ASN1Encodable value)
throws CertIOException
oid - the OID defining the extension type.isCritical - true if the extension is critical, false otherwise.value - the ASN.1 structure that forms the extension's value.
CertIOException
public X509v3CertificateBuilder copyAndAddExtension(org.bouncycastle.asn1.ASN1ObjectIdentifier oid,
boolean isCritical,
X509CertificateHolder certHolder)
oid - the OID defining the extension type.isCritical - true if the copied extension is to be marked as critical, false otherwise.certHolder - the holder for the certificate that the extension is to be copied from.
public X509CertificateHolder build(org.bouncycastle.operator.ContentSigner signer)
signer - the content signer to be used to generate the signature validating the certificate.
|
Bouncy Castle Cryptography 1.47 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||