}
}
PdfPKCS7 pkcs7 = new PdfPKCS7(privateKey, chain, null, digestType.getAlgorithm(), null, false);
byte[] authenticatedAttributes = pkcs7.getAuthenticatedAttributeBytes(hash, calendar, oscp);
pkcs7.update(authenticatedAttributes, 0, authenticatedAttributes.length);
if (this.parameters.getSignatureInfo() != null) {
pkcs7.setLocation(this.parameters.getSignatureInfo().getLocation());
pkcs7.setReason(this.parameters.getSignatureInfo().getReason());
pkcs7.setSignName(this.parameters.getSignatureInfo().getName());