org.apache.axis2.security.util
Class Axis2Util

java.lang.Object
  extended byorg.apache.axis2.security.util.Axis2Util

public class Axis2Util
extends java.lang.Object

Utility class for the Axis2-WSS4J Module


Constructor Summary
Axis2Util()
           
 
Method Summary
static org.w3c.dom.Document getDocumentFromSOAPEnvelope(SOAPEnvelope env)
          Create a DOM Document using the SOAP Envelope
static java.util.Vector getSignatureValues()
           
static SOAPEnvelope getSOAPEnvelopeFromDocument(org.w3c.dom.Document doc, SOAPConstants constants, SOAPEnvelope reqEnv)
          This is to be used only in the signature situation where the security header can be inserted into the original SOAPEnvelope rather than replacing the whole envelope
static SOAPEnvelope getSOAPEnvelopeFromDocument(org.w3c.dom.Document doc, java.lang.String envelopeNS)
          Covert a DOM Document containing a SOAP Envelope in to a org.apache.axis2.soap.SOAPEnvelope
static void setSignatureValues(java.util.Vector signatureValues)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Axis2Util

public Axis2Util()
Method Detail

getDocumentFromSOAPEnvelope

public static org.w3c.dom.Document getDocumentFromSOAPEnvelope(SOAPEnvelope env)
                                                        throws WSSecurityException
Create a DOM Document using the SOAP Envelope

Parameters:
env - An org.apache.axis2.soap.SOAPEnvelope instance
Returns:
the DOM Document of the given SOAP Envelope
Throws:
java.lang.Exception
WSSecurityException

getSOAPEnvelopeFromDocument

public static SOAPEnvelope getSOAPEnvelopeFromDocument(org.w3c.dom.Document doc,
                                                       java.lang.String envelopeNS)
                                                throws WSSecurityException
Covert a DOM Document containing a SOAP Envelope in to a org.apache.axis2.soap.SOAPEnvelope

Parameters:
doc - DOM Document
envelopeNS - SOAP Namespace of the the given Envelope
Returns:
Throws:
java.lang.Exception
WSSecurityException

getSOAPEnvelopeFromDocument

public static SOAPEnvelope getSOAPEnvelopeFromDocument(org.w3c.dom.Document doc,
                                                       SOAPConstants constants,
                                                       SOAPEnvelope reqEnv)
                                                throws WSSecurityException
This is to be used only in the signature situation where the security header can be inserted into the original SOAPEnvelope rather than replacing the whole envelope

Parameters:
doc -
reqEnv -
Returns:
Throws:
WSSecurityException

getSignatureValues

public static java.util.Vector getSignatureValues()

setSignatureValues

public static void setSignatureValues(java.util.Vector signatureValues)