Search in sources :

Example 1 with CertificateConfirmationContent

use of org.bouncycastle.cert.cmp.CertificateConfirmationContent in project xipki by xipki.

the class X509CmpRequestor method buildCertConfirmRequest.

// method requestCertificate0
private PKIMessage buildCertConfirmRequest(ASN1OctetString tid, CertificateConfirmationContentBuilder certConfirmBuilder) throws CmpRequestorException {
    PKIHeader header = buildPkiHeader(implicitConfirm, tid, null, (InfoTypeAndValue[]) null);
    CertificateConfirmationContent certConfirm;
    try {
        certConfirm = certConfirmBuilder.build(DIGEST_CALCULATOR_PROVIDER);
    } catch (CMPException ex) {
        throw new CmpRequestorException(ex.getMessage(), ex);
    }
    PKIBody body = new PKIBody(PKIBody.TYPE_CERT_CONFIRM, certConfirm.toASN1Structure());
    return new PKIMessage(header, body);
}
Also used : PKIHeader(org.bouncycastle.asn1.cmp.PKIHeader) PKIMessage(org.bouncycastle.asn1.cmp.PKIMessage) CertificateConfirmationContent(org.bouncycastle.cert.cmp.CertificateConfirmationContent) PKIBody(org.bouncycastle.asn1.cmp.PKIBody) CMPException(org.bouncycastle.cert.cmp.CMPException) InfoTypeAndValue(org.bouncycastle.asn1.cmp.InfoTypeAndValue)

Aggregations

InfoTypeAndValue (org.bouncycastle.asn1.cmp.InfoTypeAndValue)1 PKIBody (org.bouncycastle.asn1.cmp.PKIBody)1 PKIHeader (org.bouncycastle.asn1.cmp.PKIHeader)1 PKIMessage (org.bouncycastle.asn1.cmp.PKIMessage)1 CMPException (org.bouncycastle.cert.cmp.CMPException)1 CertificateConfirmationContent (org.bouncycastle.cert.cmp.CertificateConfirmationContent)1