Difference between revisions of "Using credentials in Portlets and Servlets"

From Gcube Wiki
Jump to: navigation, search
Line 7: Line 7:
 
==Credentials API==
 
==Credentials API==
 
===Available Methods===
 
===Available Methods===
 +
====ExtendedGSSCredential  getCredentials(PortletSession session)====
 +
@You should use this method if you want to retrieve the credential from the portlet.<br>
 +
@This method returns a grid credential that you should pass to DIS or every other service that you want to use.
 +
====ExtendedGSSCredential getCredentials(HttpSession session)====
 +
@You should use this method if you want to retrieve the credential from the servlet.
 +
@This method returns a grid credential that you should pass to DIS or every other service that you want to use.

Revision as of 14:40, 25 May 2007

How to use DILIGENT credentials in a Portlet / Servlet

Pre-development Actions

Patching GridSphere

In order to use credentials you have first to patch gridSphere so as to enable it to consume DILIGENT Credentials.
(info to be added...)

Credentials API

Available Methods

ExtendedGSSCredential getCredentials(PortletSession session)

@You should use this method if you want to retrieve the credential from the portlet.
@This method returns a grid credential that you should pass to DIS or every other service that you want to use.

ExtendedGSSCredential getCredentials(HttpSession session)

@You should use this method if you want to retrieve the credential from the servlet. @This method returns a grid credential that you should pass to DIS or every other service that you want to use.