/** * This method returns the state attribute for a given certificate * * @param certificateId * the certificate id * @return the state if available or null */ public String getCertificateState(String certificateId) { XmlChainItem cert = getCertificate(certificateId); if (cert != null) { return cert.getSubject().getState(); } return null; }