if (options.isOcspEnabledX() && chain.length >= 2) {
options.log("console.getOCSPURL");
String url = PdfPKCS7.getOCSPURL((X509Certificate) chain[0]);
if (url != null && url.length() > 0) {
options.log("console.readingOCSP");
final OcspClientBouncyCastle ocspClient = new OcspClientBouncyCastle((X509Certificate) chain[0],
(X509Certificate) chain[1], url);
ocspClient.setProxy(tmpProxy);
ocsp = ocspClient.getEncoded();
}
}
byte sh[] = sgn.getAuthenticatedAttributeBytes(hash, cal, ocsp);
sgn.update(sh, 0, sh.length);