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