Example messages with Metadata service

From GEANT2-JRA1 Wiki

The Metadata service is used by the eduGAIN trust model for registering valid federations in that model. Users can obtain their credentials in any of identity providers published there. It's not a central service so there are deployed the following ones:

There is available in perfSONAR-base a class, org.perfsonar.client.base.authn.edugain.EduGAINMetadataService, which can be used to obtain a list of federations available in the Metadata Service:

Class diagram #1 for the UbC library

The following example gets a list of available federations and checks which ones have an Online CA in their infrastructure:

String defaultMDS="http://mds.rediris.es:8080";
List<BEMetaData> bes=EduGAINMetadataService.getOrganizationList(defaultMDS);
for (int i=0; i<bes.size(); i++) {
   BEMetaData be=bes.get(i);
   System.out.println("Bridging Element "+be.getComponentID());
   CAInterface caonline=be.getCAInterface();
   if (caonline!=null) {
      System.out.println("*** CA online: "+caonline.getContactURL());
   }
}

There is an example included in perfSONAR base: org.perfsonar.client.testHarness.UbCMDSTest

It's not possible to get more "human" information, like the full name of the federation or the contact person, right now.

Personal tools