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