private void handleSAML2Metadata(String fileName){
  String metaFile=fedletHomeDir + File.separator + fileName+ ".xml";
  if (debug.messageEnabled()) {
    debug.message("FedletConfigurationImpl.handleSAML2Metadata: " + "metaFile=" + metaFile);
  }
  String metaXML=openFile(metaFile);
  if (metaXML == null) {
    return;
  }
  metaXML=workaroundAbstractRoleDescriptor(metaXML);
  String entityId=getEntityID(metaXML);
  if (entityId == null) {
    return;
  }
  Map map=new HashMap();
  Set set=new HashSet();
  set.add(metaXML);
  map.put("sun-fm-saml2-metadata",set);
  String extFile=fedletHomeDir + File.separator + fileName+ EXTENDED_XML_SUFFIX;
  String extXML=openFile(extFile);
  if (extXML == null) {
    return;
  }
  set=new HashSet();
  set.add(extXML);
  map.put("sun-fm-saml2-entityconfig",set);
  entityMap.put(entityId,map);
  if (debug.messageEnabled()) {
    debug.message("FedletConfigurationImpl.handleSAML2Metadata: " + "done processing entity " + entityId);
  }
}

private void handleSAML2Metadata ( String fileName ) { String metaFile = fedletHomeDir + File . separator + fileName + ".xml" ; if ( debug . messageEnabled ( ) ) { debug . message ( "FedletConfigurationImpl.handleSAML2Metadata: " + "metaFile=" + metaFile ) ; } String metaXML = openFile ( metaFile ) ; if ( metaXML == null ) { return ; } metaXML = workaroundAbstractRoleDescriptor ( metaXML ) ; String entityId = getEntityID ( metaXML ) ; if ( entityId == null ) { return ; } Map map = new HashMap ( ) ; Set set = new HashSet ( ) ; set . add ( metaXML ) ; map . put ( "sun-fm-saml2-metadata" , set ) ; String extFile = fedletHomeDir + File . separator + fileName + EXTENDED_XML_SUFFIX ; String extXML = openFile ( extFile ) ; if ( extXML == null ) { return ; } set = new HashSet ( ) ; set . add ( extXML ) ; map . put ( "sun-fm-saml2-entityconfig" , set ) ; entityMap . put ( entityId , map ) ; if ( debug . messageEnabled ( ) ) { debug . message ( "FedletConfigurationImpl.handleSAML2Metadata: " + "done processing entity " + entityId ) ; } }
gets saml2 metadata from flat files and stores in entitymap .
