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