/** * Create an instance of {@link XmlRevocation } * */ public XmlRevocation createXmlRevocation() { return new XmlRevocation(); }
item.setPdsUrls(null); XmlRevocation revocation = new XmlRevocation(); RevocationWrapper revocationData = certificate.getLatestRevocationData(); if (revocationData != null) { revocation.setProductionDate(revocationData.getProductionDate()); revocation.setRevocationDate(revocationData.getRevocationDate()); revocation.setRevocationReason(revocationData.getReason());
/** * This method returns the revocation date for a given certificate * * @param certificateId * the certificate id * @return the revocation date or null */ public Date getCertificateRevocationDate(String certificateId) { XmlChainItem cert = getCertificate(certificateId); if (cert != null) { XmlRevocation revocation = cert.getRevocation(); if (revocation != null) { return revocation.getRevocationDate(); } } return null; }
/** * This method returns the revocation reason for a given certificate * * @param certificateId * the certificate id * @return the revocation reason or null */ public String getCertificateRevocationReason(String certificateId) { XmlChainItem cert = getCertificate(certificateId); if (cert != null) { XmlRevocation revocation = cert.getRevocation(); if (revocation != null) { return revocation.getRevocationReason(); } } return null; }