Top Description Fields Constructors Methods
org.bouncycastle.cert

public Class X509v1CertificateBuilder

extends Object
Class Inheritance
Known Direct Subclasses
org.bouncycastle.cert.bc.BcX509v1CertificateBuilder, org.bouncycastle.cert.jcajce.JcaX509v1CertificateBuilder
Imports
java.math.BigInteger, java.util.Date, .Locale, org.bouncycastle.asn1.ASN1Integer, org.bouncycastle.asn1.x500.X500Name, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo, .Time, .V1TBSCertificateGenerator, org.bouncycastle.operator.ContentSigner

class to produce an X.509 Version 1 certificate.

Field Summary

Modifier and TypeField and Description
private V1TBSCertificateGenerator

Constructor Summary

AccessConstructor and Description
public
X509v1CertificateBuilder(X500Name
the certificate issuer
issuer
,
BigInteger
the certificate serial number
serial
,
Date
the date before which the certificate is not valid
notBefore
,
Date
the date after which the certificate is not valid
notAfter
,
X500Name
the certificate subject
subject
,
SubjectPublicKeyInfo
the info structure for the public key to be associated with this certificate.
publicKeyInfo
)

Create a builder for a version 1 certificate.

public
X509v1CertificateBuilder(X500Name
the certificate issuer
issuer
,
BigInteger
the certificate serial number
serial
,
Date
the date before which the certificate is not valid
notBefore
,
Date
the date after which the certificate is not valid
notAfter
,
Locale
locale to be used for date interpretation.
dateLocale
,
X500Name
the certificate subject
subject
,
SubjectPublicKeyInfo
the info structure for the public key to be associated with this certificate.
publicKeyInfo
)

Create a builder for a version 1 certificate.

public
X509v1CertificateBuilder(X500Name
the certificate issuer
issuer
,
BigInteger
the certificate serial number
serial
,
Time
the Time before which the certificate is not valid
notBefore
,
Time
the Time after which the certificate is not valid
notAfter
,
X500Name
the certificate subject
subject
,
SubjectPublicKeyInfo
the info structure for the public key to be associated with this certificate.
publicKeyInfo
)

Create a builder for a version 1 certificate.

Method Summary

Modifier and TypeMethod and Description
public X509CertificateHolder

Returns:

a holder containing the resulting signed certificate.
build
(ContentSigner
the content signer to be used to generate the signature validating the certificate.
signer
)

Generate an X509 certificate, based on the current issuer and subject using the passed in signer.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

tbsGenback to summary
private V1TBSCertificateGenerator tbsGen

Constructor Detail

X509v1CertificateBuilderback to summary
public X509v1CertificateBuilder(X500Name issuer, BigInteger serial, Date notBefore, Date notAfter, X500Name subject, SubjectPublicKeyInfo publicKeyInfo)

Create a builder for a version 1 certificate.

Parameters
issuer:X500Name

the certificate issuer

serial:BigInteger

the certificate serial number

notBefore:Date

the date before which the certificate is not valid

notAfter:Date

the date after which the certificate is not valid

subject:X500Name

the certificate subject

publicKeyInfo:SubjectPublicKeyInfo

the info structure for the public key to be associated with this certificate.

X509v1CertificateBuilderback to summary
public X509v1CertificateBuilder(X500Name issuer, BigInteger serial, Date notBefore, Date notAfter, Locale dateLocale, X500Name subject, SubjectPublicKeyInfo publicKeyInfo)

Create a builder for a version 1 certificate. You may need to use this constructor if the default locale doesn't use a Gregorian calender so that the Time produced is compatible with other ASN.1 implementations.

Parameters
issuer:X500Name

the certificate issuer

serial:BigInteger

the certificate serial number

notBefore:Date

the date before which the certificate is not valid

notAfter:Date

the date after which the certificate is not valid

dateLocale:Locale

locale to be used for date interpretation.

subject:X500Name

the certificate subject

publicKeyInfo:SubjectPublicKeyInfo

the info structure for the public key to be associated with this certificate.

X509v1CertificateBuilderback to summary
public X509v1CertificateBuilder(X500Name issuer, BigInteger serial, Time notBefore, Time notAfter, X500Name subject, SubjectPublicKeyInfo publicKeyInfo)

Create a builder for a version 1 certificate.

Parameters
issuer:X500Name

the certificate issuer

serial:BigInteger

the certificate serial number

notBefore:Time

the Time before which the certificate is not valid

notAfter:Time

the Time after which the certificate is not valid

subject:X500Name

the certificate subject

publicKeyInfo:SubjectPublicKeyInfo

the info structure for the public key to be associated with this certificate.

Method Detail

buildback to summary
public X509CertificateHolder build(ContentSigner signer)

Generate an X509 certificate, based on the current issuer and subject using the passed in signer.

Parameters
signer:ContentSigner

the content signer to be used to generate the signature validating the certificate.

Returns:X509CertificateHolder

a holder containing the resulting signed certificate.