120 likes | 214 Views
The gLite API – PART I. Giuseppe LA ROCCA INFN Catania giuseppe.larocca@ct.infn.it Master Class for Life Science, 4-6 May 2010 Singapore. VOMS J a v a A P I (ver 1.8.12-1). Software Requirements Java Classes org.glite.security.voms.contact.VOMSServerInfo
E N D
The gLite API – PART I Giuseppe LA ROCCA INFN Catania giuseppe.larocca@ct.infn.it Master Class for Life Science, 4-6 May 2010 Singapore
VOMS J a v a A P I (ver 1.8.12-1) • Software Requirements • Java Classes org.glite.security.voms.contact.VOMSServerInfo • org.glite.security.voms.contact.VOMSProxyInit • org.glite.security.voms.contact.VOMSRequestOptionstHands-on
Installing the Java API The needed libraries to interact with the VOMS server are: glite-security-voms.jar bcprov.jar log4j.jar cog-jglobus.jar common-lang.jar common-cli.jar glite-security-utils.jar commons-logging-api.jar puretls.jar cryptix.jar cryptix32.jar cryptix-asn1.jar W A R N I N G Make sure all the listed jar(s) are included in your CLASSPATH environment variable !!
Installing the Java API NOTE: There are conflicts with glite-security-voms.jar when using glite-security-utils.jar which should be located after glite-security-voms.jar in the CLASSPATH environment variable. The conflicting classes that are the ones contained in the both packages are of older version. These libraries can be downloaded from here
Before we begin with the proxy generation, we need to specify the following System properties. If omitted the default values are used. Configure System properties
Configure the VOMS Server settings using the Java class org.glite.security.voms.contact.VOMSServerInfo Configure VOMS Server settings
The main Java class of this API is: org.glite.security.voms.contact.VOMSProxyInit A client object can be created providing to the constructor a password for the opening of the user certificate: public static VOMSProxyInit instance(String privateKeyPassword) Instantiate the class
Parameters and Methods /1 After the generation of the VOMSProxyInit object class, we need to specify additional parameters for the proxy generation.
Links and References VOMS Proxy using Java API http://wiki.egee-see.org/index.php/SG_Generating_VOMS_Proxy_Using_Java_API http://www.euasiagrid.org/wiki/index.php/VOMS_Java_API
Hands-on User Interface: glite-tutor.ct.infn.it Accounts: Username: singapore02-singapore39 Password: GridSIN02-GridSIN39 PassPhrase:SINGAPORE $ cd ${HOME}/Api-Java-VOMS To compile and run the example: $ source VOMSProxyInitCreation.sh • Connect to the training infrastructure using the information reported in the tutorial sheet • Run the hands-on available in this web link: http://www.euasiagrid.org/wiki/index.php/VOMS_Java_API