Package org.bouncycastle.cert.crmf
Class CertificateRequestMessageBuilder
- java.lang.Object
-
- org.bouncycastle.cert.crmf.CertificateRequestMessageBuilder
-
- Direct Known Subclasses:
JcaCertificateRequestMessageBuilder
public class CertificateRequestMessageBuilder extends java.lang.Object
Builder for high-level objects built onCertReqMsg
.
-
-
Constructor Summary
Constructors Constructor Description CertificateRequestMessageBuilder(java.math.BigInteger certReqId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CertificateRequestMessageBuilder
addControl(Control control)
CertificateRequestMessageBuilder
addExtension(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, boolean critical, byte[] value)
CertificateRequestMessageBuilder
addExtension(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, boolean critical, org.bouncycastle.asn1.ASN1Encodable value)
CertificateRequestMessage
build()
CertificateRequestMessageBuilder
setAuthInfoPKMAC(PKMACBuilder pkmacBuilder, char[] password)
CertificateRequestMessageBuilder
setAuthInfoSender(org.bouncycastle.asn1.x500.X500Name sender)
CertificateRequestMessageBuilder
setAuthInfoSender(org.bouncycastle.asn1.x509.GeneralName sender)
CertificateRequestMessageBuilder
setIssuer(org.bouncycastle.asn1.x500.X500Name issuer)
CertificateRequestMessageBuilder
setProofOfPossessionAgreeMAC(org.bouncycastle.asn1.crmf.PKMACValue macValue)
CertificateRequestMessageBuilder
setProofOfPossessionRaVerified()
CertificateRequestMessageBuilder
setProofOfPossessionSigningKeySigner(org.bouncycastle.operator.ContentSigner popSigner)
CertificateRequestMessageBuilder
setProofOfPossessionSubsequentMessage(int type, org.bouncycastle.asn1.crmf.SubsequentMessage msg)
CertificateRequestMessageBuilder
setProofOfPossessionSubsequentMessage(org.bouncycastle.asn1.crmf.SubsequentMessage msg)
CertificateRequestMessageBuilder
setPublicKey(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKey)
CertificateRequestMessageBuilder
setRegInfo(org.bouncycastle.asn1.crmf.AttributeTypeAndValue[] regInfo)
CertificateRequestMessageBuilder
setSerialNumber(java.math.BigInteger serialNumber)
CertificateRequestMessageBuilder
setSerialNumber(org.bouncycastle.asn1.ASN1Integer serialNumber)
CertificateRequestMessageBuilder
setSubject(org.bouncycastle.asn1.x500.X500Name subject)
CertificateRequestMessageBuilder
setValidity(java.util.Date notBeforeDate, java.util.Date notAfterDate)
Request a validity period for the certificate.
-
-
-
Method Detail
-
setRegInfo
public CertificateRequestMessageBuilder setRegInfo(org.bouncycastle.asn1.crmf.AttributeTypeAndValue[] regInfo)
-
setPublicKey
public CertificateRequestMessageBuilder setPublicKey(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKey)
-
setIssuer
public CertificateRequestMessageBuilder setIssuer(org.bouncycastle.asn1.x500.X500Name issuer)
-
setSubject
public CertificateRequestMessageBuilder setSubject(org.bouncycastle.asn1.x500.X500Name subject)
-
setSerialNumber
public CertificateRequestMessageBuilder setSerialNumber(java.math.BigInteger serialNumber)
-
setSerialNumber
public CertificateRequestMessageBuilder setSerialNumber(org.bouncycastle.asn1.ASN1Integer serialNumber)
-
setValidity
public CertificateRequestMessageBuilder setValidity(java.util.Date notBeforeDate, java.util.Date notAfterDate)
Request a validity period for the certificate. Either, but not both, of the date parameters may be null.- Parameters:
notBeforeDate
- not before date for certificate requested.notAfterDate
- not after date for the certificate requested.- Returns:
- the current builder.
-
addExtension
public CertificateRequestMessageBuilder addExtension(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, boolean critical, org.bouncycastle.asn1.ASN1Encodable value) throws CertIOException
- Throws:
CertIOException
-
addExtension
public CertificateRequestMessageBuilder addExtension(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, boolean critical, byte[] value)
-
addControl
public CertificateRequestMessageBuilder addControl(Control control)
-
setProofOfPossessionSigningKeySigner
public CertificateRequestMessageBuilder setProofOfPossessionSigningKeySigner(org.bouncycastle.operator.ContentSigner popSigner)
-
setProofOfPossessionSubsequentMessage
public CertificateRequestMessageBuilder setProofOfPossessionSubsequentMessage(org.bouncycastle.asn1.crmf.SubsequentMessage msg)
-
setProofOfPossessionSubsequentMessage
public CertificateRequestMessageBuilder setProofOfPossessionSubsequentMessage(int type, org.bouncycastle.asn1.crmf.SubsequentMessage msg)
-
setProofOfPossessionAgreeMAC
public CertificateRequestMessageBuilder setProofOfPossessionAgreeMAC(org.bouncycastle.asn1.crmf.PKMACValue macValue)
-
setProofOfPossessionRaVerified
public CertificateRequestMessageBuilder setProofOfPossessionRaVerified()
-
setAuthInfoPKMAC
public CertificateRequestMessageBuilder setAuthInfoPKMAC(PKMACBuilder pkmacBuilder, char[] password)
-
setAuthInfoSender
public CertificateRequestMessageBuilder setAuthInfoSender(org.bouncycastle.asn1.x500.X500Name sender)
-
setAuthInfoSender
public CertificateRequestMessageBuilder setAuthInfoSender(org.bouncycastle.asn1.x509.GeneralName sender)
-
build
public CertificateRequestMessage build() throws CRMFException
- Throws:
CRMFException
-
-