private Element createX509Data() throws Exception {
  Element x509DataEle=null;
  List<Certificate> certs=idmClient.getTenantCertificate(tenantName);
  if (!certs.isEmpty()) {
    x509DataEle=doc.createElement(SAMLNames.DS_X509DATA);
    for (    Certificate cert : certs) {
      Element x509CertificateEle=createCertificate(cert);
      x509DataEle.appendChild(x509CertificateEle);
    }
  }
  return x509DataEle;
}

private Element createX509Data ( ) throws Exception { Element x509DataEle = null ; List < Certificate > certs = idmClient . getTenantCertificate ( tenantName ) ; if ( ! certs . isEmpty ( ) ) { x509DataEle = doc . createElement ( SAMLNames . DS_X509DATA ) ; for ( Certificate cert : certs ) { Element x509CertificateEle = createCertificate ( cert ) ; x509DataEle . appendChild ( x509CertificateEle ) ; } } return x509DataEle ; }
return a ds : x509data element in dom .
