static public MetadataSettings CreateMetadataSettings(){
  MetadataSettings metadataSettings=new MetadataSettingsImpl();
  List<String> idFormats=new LinkedList<String>();
  idFormats.add(SamlNames.EMAIL_ADDRESS);
  idFormats.add(SamlNames.PERSISTENT);
  List<SingleSignOnService> ssoServices=new LinkedList<SingleSignOnService>();
  SingleSignOnService ssoService0=new SingleSignOnService(TestConfig.SsoService_loc,TestConfig.SsoService_binding_0);
  ssoServices.add(ssoService0);
  List<SingleLogoutService> idpSloServices=new LinkedList<SingleLogoutService>();
  SingleLogoutService idpSloService0=new SingleLogoutService(TestConfig.IdpSloService_loc,TestConfig.IdpSloService_binding_0);
  idpSloServices.add(idpSloService0);
  IDPConfiguration idpConfiguration=new IDPConfiguration(TestConfig.tenantName,TestConfig.idpEntityID,TestUtils.getCertificate(),idFormats,ssoServices,idpSloServices);
  List<String> spIDFormats=new LinkedList<String>();
  spIDFormats.add(SamlNames.EMAIL_ADDRESS);
  spIDFormats.add(SamlNames.PERSISTENT);
  List<AssertionConsumerService> ascoServices=new LinkedList<AssertionConsumerService>();
  AssertionConsumerService asco=new AssertionConsumerService(TestConfig.ACS0_endpoint,true,TestConfig.ACS0_binding,0);
  ascoServices.add(asco);
  List<SingleLogoutService> spSloServices=new LinkedList<SingleLogoutService>();
  SingleLogoutService spSloServices0=new SingleLogoutService(TestConfig.SpSloService_loc,TestConfig.SpSloService_binding_0);
  spSloServices.add(spSloServices0);
  SPConfiguration spConfiguration=new SPConfiguration(TestConfig.tenantName,TestConfig.spEntityID,TestConfig.authnSigned,signingKey,null,TestConfig.SpSign_algorithm_URI,spIDFormats,ascoServices,spSloServices);
  metadataSettings.addIDPConfiguration(idpConfiguration);
  metadataSettings.addSPConfiguration(spConfiguration);
  return metadataSettings;
}

static public MetadataSettings CreateMetadataSettings ( ) { MetadataSettings metadataSettings = new MetadataSettingsImpl ( ) ; List < String > idFormats = new LinkedList < String > ( ) ; idFormats . add ( SamlNames . EMAIL_ADDRESS ) ; idFormats . add ( SamlNames . PERSISTENT ) ; List < SingleSignOnService > ssoServices = new LinkedList < SingleSignOnService > ( ) ; SingleSignOnService ssoService0 = new SingleSignOnService ( TestConfig . SsoService_loc , TestConfig . SsoService_binding_0 ) ; ssoServices . add ( ssoService0 ) ; List < SingleLogoutService > idpSloServices = new LinkedList < SingleLogoutService > ( ) ; SingleLogoutService idpSloService0 = new SingleLogoutService ( TestConfig . IdpSloService_loc , TestConfig . IdpSloService_binding_0 ) ; idpSloServices . add ( idpSloService0 ) ; IDPConfiguration idpConfiguration = new IDPConfiguration ( TestConfig . tenantName , TestConfig . idpEntityID , TestUtils . getCertificate ( ) , idFormats , ssoServices , idpSloServices ) ; List < String > spIDFormats = new LinkedList < String > ( ) ; spIDFormats . add ( SamlNames . EMAIL_ADDRESS ) ; spIDFormats . add ( SamlNames . PERSISTENT ) ; List < AssertionConsumerService > ascoServices = new LinkedList < AssertionConsumerService > ( ) ; AssertionConsumerService asco = new AssertionConsumerService ( TestConfig . ACS0_endpoint , true , TestConfig . ACS0_binding , 0 ) ; ascoServices . add ( asco ) ; List < SingleLogoutService > spSloServices = new LinkedList < SingleLogoutService > ( ) ; SingleLogoutService spSloServices0 = new SingleLogoutService ( TestConfig . SpSloService_loc , TestConfig . SpSloService_binding_0 ) ; spSloServices . add ( spSloServices0 ) ; SPConfiguration spConfiguration = new SPConfiguration ( TestConfig . tenantName , TestConfig . spEntityID , TestConfig . authnSigned , signingKey , null , TestConfig . SpSign_algorithm_URI , spIDFormats , ascoServices , spSloServices ) ; metadataSettings . addIDPConfiguration ( idpConfiguration ) ; metadataSettings . addSPConfiguration ( spConfiguration ) ; return metadataSettings ; }
creates and setup metadatasettings
