issrg.globus
Class SocketSamlSender

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

public class SocketSamlSender
extends java.lang.Object
implements PermisAuthz

This implementatino of PermisAuthz allows the SamlAEF test program to send SAMLRequests to the standalone SAML authorisation server.


Field Summary
protected  java.net.InetAddress ia
           
protected  int p
           
 
Constructor Summary
SocketSamlSender(java.lang.String host, int port)
          This constructor builds a SocketSamlSender given the host name and the port number.
 
Method Summary
 SAMLResponse processSAMLRequest(SAMLRequest saml)
          This method sends the SAMLRequest to the standalone SAML ADF and receives a response which is decoded as SAMLReponse.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ia

protected java.net.InetAddress ia

p

protected int p
Constructor Detail

SocketSamlSender

public SocketSamlSender(java.lang.String host,
                        int port)
                 throws java.lang.Exception
This constructor builds a SocketSamlSender given the host name and the port number.

Parameters:
host - - the host where a standalone SAML ADF runs
port - - the port number where the standalone SAML ADF runs
Throws:
java.lang.Exception
Method Detail

processSAMLRequest

public SAMLResponse processSAMLRequest(SAMLRequest saml)
                                throws java.rmi.RemoteException
This method sends the SAMLRequest to the standalone SAML ADF and receives a response which is decoded as SAMLReponse.

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