Object[] fails = PdfPKCS7.verifyCertificates(chain, store.toKeyStore(), pk.getCRLs(), pk.getSignDate());
if (ConditionUtils.isNotEmpty(fails)) {
valid = Boolean.FALSE;
}
TimeStampToken timeStampToken = pk.getTimeStampToken();
if (timeStampToken != null) {
timeStamp = BouncyCastleTimeStampHelper.toTimeStamp(timeStampToken);
timeStampToken.getTimeStampInfo();
if (valid.booleanValue()) {
boolean ok = pk.verifyTimestampImprint();
valid = Boolean.valueOf(ok);
}
}