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