12
The gLite API – PART I Giuseppe LA ROCCA INFN Catania [email protected] Master Class for Life Science, 4-6 May 2010 Singapore

The gLite API – PART I

Embed Size (px)

DESCRIPTION

The gLite API – PART I. Giuseppe LA ROCCA INFN Catania [email protected] 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 - PowerPoint PPT Presentation

Citation preview

Page 1: The gLite API – PART I

The gLite API – PART I

Giuseppe LA ROCCA INFN [email protected]

Master Class for Life Science,4-6 May 2010 Singapore

Page 2: The gLite API – PART I

VOMS J a v a A P I

(ver 1.8.12-1)

Software RequirementsJava Classes

org.glite.security.voms.contact.VOMSServerInfoorg.glite.security.voms.contact.VOMSProxyInit

org.glite.security.voms.contact.VOMSRequestOptionst

Hands-on

Page 3: The gLite API – PART I

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 !!

Page 4: The gLite API – PART I

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

Page 5: The gLite API – PART I

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

Page 6: The gLite API – PART I

• Configure the VOMS Server settings using the Java class org.glite.security.voms.contact.VOMSServerInfo

Configure VOMS Server settings

Page 7: The gLite API – PART I

• 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

Page 8: The gLite API – PART I

Parameters and Methods /1• After the generation of the VOMSProxyInit object class, we need to specify

additional parameters for the proxy generation.

Page 9: The gLite API – PART I

Parameters and Methods /2

Page 10: The gLite API – PART I

Parameters and Methods /3

Page 11: The gLite API – PART I

Links and References

VOMS Proxy using Java APIhttp://wiki.egee-see.org/index.php/SG_Generating_VOMS_Proxy_Using_Java_API

http://www.euasiagrid.org/wiki/index.php/VOMS_Java_API

Page 12: The gLite API – PART I

Hands-on

• 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

User Interface: glite-tutor.ct.infn.itAccounts:

– Username: singapore02-singapore39– Password: GridSIN02-GridSIN39– PassPhrase: SINGAPORE

$ cd ${HOME}/Api-Java-VOMSTo compile and run the example:$ source VOMSProxyInitCreation.sh