private void initializeMetadataAndCOT(){
  try {
    File homeDir=new File(fedletHomeDir);
    String[] files=homeDir.list();
    if ((files == null) || (files.length == 0)) {
      return;
    }
    for (int i=0; i < files.length; i++) {
      String fileName=files[i];
      if (debug.messageEnabled()) {
        debug.message("FedletConfigImpl.initMetaCOT: " + fileName);
      }
      if (fileName.endsWith(EXTENDED_XML_SUFFIX)) {
        handleSAML2Metadata(fileName.substring(0,fileName.length() - EXTENDED_XML_SUFFIX.length()));
      }
 else       if (fileName.endsWith(COT_FILE_SUFFIX)) {
        handleCOT(fileName.substring(0,fileName.length() - COT_FILE_SUFFIX.length()));
      }
 else {
        continue;
      }
    }
  }
 catch (  NullPointerException npe) {
    debug.error("FedletConfigurationImpl.processSAML2Metadata()",npe);
  }
catch (  SecurityException se) {
    debug.error("FedletConfigurationImpl.processSAML2Metadata()",se);
  }
}

private void initializeMetadataAndCOT ( ) { try { File homeDir = new File ( fedletHomeDir ) ; String [ ] files = homeDir . list ( ) ; if ( ( files == null ) || ( files . length == 0 ) ) { return ; } for ( int i = 0 ; i < files . length ; i ++ ) { String fileName = files [ i ] ; if ( debug . messageEnabled ( ) ) { debug . message ( "FedletConfigImpl.initMetaCOT: " + fileName ) ; } if ( fileName . endsWith ( EXTENDED_XML_SUFFIX ) ) { handleSAML2Metadata ( fileName . substring ( 0 , fileName . length ( ) - EXTENDED_XML_SUFFIX . length ( ) ) ) ; } else if ( fileName . endsWith ( COT_FILE_SUFFIX ) ) { handleCOT ( fileName . substring ( 0 , fileName . length ( ) - COT_FILE_SUFFIX . length ( ) ) ) ; } else { continue ; } } } catch ( NullPointerException npe ) { debug . error ( "FedletConfigurationImpl.processSAML2Metadata()" , npe ) ; } catch ( SecurityException se ) { debug . error ( "FedletConfigurationImpl.processSAML2Metadata()" , se ) ; } }
initializes samlv2 metadata and cot from flat files under fedlet home directory . the metadata information will be stored in a map , key is the entity id , value is a map whose key is the standard / extended attribute name , value is a string containing the standard / extended metadata xml . standard metadata is stored in a file named < filename > . xml extended metadata is stored in a file named < filename > - extended . xml the cot information will be stored in a map , key is the cot name , value is a map whose key is the attribute name , value is a set of values for the attribute . cot is stored in a file named < filename > . cot
