protected void populateAuthenticationContext(SAMLv2AuthContexts authContexts,CCActionTableModel tblAuthContextsModel,String dropdownContextRef){
  Set<String> contextNames=new LinkedHashSet<String>(DEFAULT_AUTH_CONTEXT_REF_NAMES);
  OptionList options=new OptionList();
  options.add(getLabel("none"),"none");
  for (  String name : contextNames) {
    options.add(getLabel(name),name);
  }
  Map<String,SAMLv2AuthContexts.SAMLv2AuthContext> contexts=authContexts.getCollections();
  for (  SAMLv2AuthContexts.SAMLv2AuthContext value : contexts.values()) {
    if (contextNames.add(value.name)) {
      options.add(getLabel(value.name),value.name);
    }
  }
  CCDropDownMenu ac=(CCDropDownMenu)getChild(dropdownContextRef);
  ac.setOptions(options);
  tblAuthContextsModel.clear();
  int i=0;
  for (  String name : contextNames) {
    populateAuthenticationContext(name,authContexts,i++,tblAuthContextsModel,dropdownContextRef);
  }
}

protected void populateAuthenticationContext ( SAMLv2AuthContexts authContexts , CCActionTableModel tblAuthContextsModel , String dropdownContextRef ) { Set < String > contextNames = new LinkedHashSet < String > ( DEFAULT_AUTH_CONTEXT_REF_NAMES ) ; OptionList options = new OptionList ( ) ; options . add ( getLabel ( "none" ) , "none" ) ; for ( String name : contextNames ) { options . add ( getLabel ( name ) , name ) ; } Map < String , SAMLv2AuthContexts . SAMLv2AuthContext > contexts = authContexts . getCollections ( ) ; for ( SAMLv2AuthContexts . SAMLv2AuthContext value : contexts . values ( ) ) { if ( contextNames . add ( value . name ) ) { options . add ( getLabel ( value . name ) , value . name ) ; } } CCDropDownMenu ac = ( CCDropDownMenu ) getChild ( dropdownContextRef ) ; ac . setOptions ( options ) ; tblAuthContextsModel . clear ( ) ; int i = 0 ; for ( String name : contextNames ) { populateAuthenticationContext ( name , authContexts , i ++ , tblAuthContextsModel , dropdownContextRef ) ; } }
for the given set of authcontexts read from the extended metadata , populate the table and dropdown menu
