private void createAttributesEle(Element parent) throws Exception {
  Collection<Attribute> attributes=idmClient.getAttributeDefinitions(tenantName);
  for (  Attribute attr : attributes) {
    Element attrEle=doc.createElement(SAMLNames.ATTRIBUTE);
    attrEle.setAttribute(SAMLNames.NAME,attr.getName());
    attrEle.setAttribute(SAMLNames.NAMEFORMAT,attr.getNameFormat());
    attrEle.setAttribute(SAMLNames.FRIENDLYNAME,attr.getFriendlyName());
    parent.appendChild(attrEle);
  }
}

private void createAttributesEle ( Element parent ) throws Exception { Collection < Attribute > attributes = idmClient . getAttributeDefinitions ( tenantName ) ; for ( Attribute attr : attributes ) { Element attrEle = doc . createElement ( SAMLNames . ATTRIBUTE ) ; attrEle . setAttribute ( SAMLNames . NAME , attr . getName ( ) ) ; attrEle . setAttribute ( SAMLNames . NAMEFORMAT , attr . getNameFormat ( ) ) ; attrEle . setAttribute ( SAMLNames . FRIENDLYNAME , attr . getFriendlyName ( ) ) ; parent . appendChild ( attrEle ) ; } }
write tenant idp supported attributes ( for principle ) as < attribute > element of a given parent element .
