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