List of usage examples for org.bouncycastle.cert.cmp CertificateConfirmationContent toASN1Structure
public CertConfirmContent toASN1Structure()
From source file:org.xipki.ca.client.impl.X509CmpRequestor.java
License:Open Source License
private PKIMessage buildCertConfirmRequest(ASN1OctetString tid, CertificateConfirmationContentBuilder certConfirmBuilder) throws CmpRequestorException { PKIHeader header = buildPKIHeader(implicitConfirm, tid, null, (InfoTypeAndValue[]) null); CertificateConfirmationContent certConfirm; try {/* ww w . j av a2 s.c om*/ certConfirm = certConfirmBuilder.build(digesetCalculatorProvider); } catch (CMPException e) { throw new CmpRequestorException(e.getMessage(), e); } PKIBody body = new PKIBody(PKIBody.TYPE_CERT_CONFIRM, certConfirm.toASN1Structure()); return new PKIMessage(header, body); }
From source file:org.xipki.pki.ca.client.impl.X509CmpRequestor.java
License:Open Source License
private PKIMessage buildCertConfirmRequest(final ASN1OctetString tid, final CertificateConfirmationContentBuilder certConfirmBuilder) throws CmpRequestorException { PKIHeader header = buildPkiHeader(implicitConfirm, tid, null, (InfoTypeAndValue[]) null); CertificateConfirmationContent certConfirm; try {/*from w ww. j av a 2s. c o m*/ 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); }