org.jboss.soa.esb.services.security.auth.ws
Class SOAPExtractorUtil

java.lang.Object
  extended by org.jboss.soa.esb.services.security.auth.ws.SOAPExtractorUtil

public final class SOAPExtractorUtil
extends java.lang.Object

Util class containing methods to help extract SOAP Security Headers

Author:
Daniel Bevenius

Method Summary
static javax.xml.soap.SOAPHeaderElement extractSecurityHeader(javax.xml.soap.SOAPEnvelope env)
          Will return the SOAP Security header from the passed in SOAPEnvelope if one exists.
static javax.xml.soap.SOAPHeaderElement getSecurityHeader(javax.xml.soap.SOAPEnvelope env)
          Deprecated. 
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSecurityHeader

@Deprecated
public static javax.xml.soap.SOAPHeaderElement getSecurityHeader(javax.xml.soap.SOAPEnvelope env)
                                                          throws javax.xml.soap.SOAPException
Deprecated. 

Deprecated, please use extractSecurityHeader(SOAPEnvelope) instead.

Throws:
javax.xml.soap.SOAPException

extractSecurityHeader

public static javax.xml.soap.SOAPHeaderElement extractSecurityHeader(javax.xml.soap.SOAPEnvelope env)
                                                              throws javax.xml.soap.SOAPException
Will return the SOAP Security header from the passed in SOAPEnvelope if one exists.

Parameters:
env - The SOAPEnvelope
Returns:
SOAPHeaderElement The SOAP Security Header if one exists.
Throws:
javax.xml.soap.SOAPException