org.apache.ws.sandbox.axis.security.trust
Class STSAgent

java.lang.Object
  extended byorg.apache.ws.sandbox.axis.security.trust.STSAgent

public class STSAgent
extends java.lang.Object

Author:
Malinda Kaushalye, Ruchith (ruchith.fernando@gmail.com) STSAgent is an axis specific component resides in the client side to request a token. The main task is to act as an Agent on behalf of the STS.

Constructor Summary
STSAgent(java.lang.String url, java.util.Hashtable senderOptions, java.util.Hashtable receiverOptions)
          Agent initialization without addressing support I don't think this will be used at all :-?
STSAgent(java.lang.String url, java.util.Hashtable senderOptions, java.util.Hashtable receiverOptions, STSAgentAddressingConfiguration addConfig)
          Agent initialization
 
Method Summary
 org.w3c.dom.Document getDoc()
           
 org.apache.axis.message.SOAPEnvelope getEnv()
           
 RequestSecurityToken getReqSecTok()
           
 java.lang.String getUrl()
          to retrieve the endpoint url of the agent
 org.w3c.dom.Element request()
          request call Thank goes to David Del Vecchio for giving his code(=>idea)
 void setAnyElement(org.w3c.dom.Element element)
          Use this method to add any element to the request
 void setEnv(org.apache.axis.message.SOAPEnvelope e)
           
 void setReqSecTok(RequestSecurityToken reqSecTok)
           
 void setUrl(java.lang.String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

STSAgent

public STSAgent(java.lang.String url,
                java.util.Hashtable senderOptions,
                java.util.Hashtable receiverOptions,
                STSAgentAddressingConfiguration addConfig)
         throws javax.xml.rpc.ServiceException,
                java.net.MalformedURLException,
                java.lang.Exception
Agent initialization

Parameters:
url - Endpoint Address
senderOptions - WSDoAllSender options
addConfig - Addressing configuration for the STSAgent
Throws:
javax.xml.rpc.ServiceException
java.net.MalformedURLException
java.lang.Exception
See Also:
WSDoAllReceiver, WSDoAllSender, STSAgentAddressingConfiguration

STSAgent

public STSAgent(java.lang.String url,
                java.util.Hashtable senderOptions,
                java.util.Hashtable receiverOptions)
         throws javax.xml.rpc.ServiceException,
                java.net.MalformedURLException,
                java.lang.Exception
Agent initialization without addressing support I don't think this will be used at all :-?

Parameters:
url -
senderOptions -
receiverOptions -
Throws:
javax.xml.rpc.ServiceException
java.net.MalformedURLException
java.lang.Exception
Method Detail

setAnyElement

public void setAnyElement(org.w3c.dom.Element element)
Use this method to add any element to the request

Parameters:
element -

request

public org.w3c.dom.Element request()
                            throws org.apache.axis.AxisFault,
                                   java.lang.Exception
request call Thank goes to David Del Vecchio for giving his code(=>idea)

Returns:
Throws:
org.apache.axis.AxisFault
java.lang.Exception

getDoc

public org.w3c.dom.Document getDoc()

getEnv

public org.apache.axis.message.SOAPEnvelope getEnv()

setEnv

public void setEnv(org.apache.axis.message.SOAPEnvelope e)
            throws java.lang.Exception
Throws:
java.lang.Exception

getReqSecTok

public RequestSecurityToken getReqSecTok()

setReqSecTok

public void setReqSecTok(RequestSecurityToken reqSecTok)

getUrl

public java.lang.String getUrl()
to retrieve the endpoint url of the agent

Returns:

setUrl

public void setUrl(java.lang.String url)


Copyright © 2004-2008 Apache Web Services. All Rights Reserved.