issrg.globus
Class GridSamlSender

java.lang.Object
  extended by issrg.globus.GridSamlSender
All Implemented Interfaces:
PermisAuthz

public class GridSamlSender
extends java.lang.Object
implements PermisAuthz

This class is a PermisAuthz implementation for the test client. It is a grid service client.


Field Summary
protected  PermisAuthzServicePortType permis
           
 
Constructor Summary
GridSamlSender(java.lang.String host)
          This constructor builds a Grid Service client, and communicates to it without authentication.
GridSamlSender(java.lang.String host, boolean secure)
          This constructor builds a Grid Service client, and makes the conversation secure if told so.
 
Method Summary
 SAMLResponse processSAMLRequest(SAMLRequest saml)
          This method sends the SAML Request and returns the response from a PermisAuthz grid service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

permis

protected PermisAuthzServicePortType permis
Constructor Detail

GridSamlSender

public GridSamlSender(java.lang.String host)
               throws java.lang.Exception
This constructor builds a Grid Service client, and communicates to it without authentication.

This is equivalent to GridSamlSender(host, false).

Throws:
java.lang.Exception

GridSamlSender

public GridSamlSender(java.lang.String host,
                      boolean secure)
               throws java.lang.Exception
This constructor builds a Grid Service client, and makes the conversation secure if told so.

Parameters:
host - is the host URL
secure - is a boolean telling whether communication should be secured - communication is strongly authenticated, if this is set to true
Throws:
java.lang.Exception
Method Detail

processSAMLRequest

public SAMLResponse processSAMLRequest(SAMLRequest saml)
                                throws java.rmi.RemoteException
This method sends the SAML Request and returns the response from a PermisAuthz grid service.

Specified by:
processSAMLRequest in interface PermisAuthz
Parameters:
saml - - the SAMLRequest to be sent to the grid service
Returns:
SAMLResponse returned by the service
Throws:
java.rmi.RemoteException