Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager
11g (11.1.1)

E10689-01


oracle.wsm.security.policy.scenario.util
Class WsmSOAPEnvelope

java.lang.Object
  extended by oracle.wsm.security.policy.scenario.util.WsmSOAPEnvelope


public class WsmSOAPEnvelope
extends Object
Since:
release specific (what release of product did this appear in)
Version:
$Header: owsm/src/oracle/wsm/security/policy/scenario/util/WsmSOAPEnvelope.java /st_owsm/17 2009/02/01 07:16:34 vkdwived Exp $
Author:
rturlapa

Constructor Summary
WsmSOAPEnvelope(javax.xml.soap.SOAPEnvelope senv)
           

 

Method Summary
 oracle.security.xmlsec.wss.WSSecurity addSecurityHeader(String role, boolean mustUnderstand)
           
 void addSecurityHeader(oracle.security.xmlsec.wss.WSSecurity security)
          Creates a SOAPEnvelope instance for the given SOAP-ENV:Envelope element.
 void addWsuIdtoBody(String id)
           
 Element getBody()
           
 List getHeaderElements(String role)
          Get all the Header entries in the Header element for the given role/actor.
 Document getOwnerDocument()
           
 oracle.security.xmlsec.wss.WSSecurity getSecurityHeader(String role, boolean mustUnderstand)
           
 List getSecurityHeaders(String role, boolean mu)
          Returns all the Security headers in this SOAPEnvelope with no specified actor attribute and mustUnderstand attribute set to false.
 oracle.security.xmlsec.wss.soap.WSSOAPEnvelope getSOAP11Envelope()
           
 oracle.security.xmlsec.wss.soap.WSSOAP12Envelope getSOAP12Envelope()
           
 boolean isSOAPVersion11()
           
 boolean isSOAPVersion12()
           
 void printClassNames()
           
 void removeSecurityHeader(oracle.security.xmlsec.wss.WSSecurity security)
          Remove the given WSSecurity header from this SOAPEnvelope.
 void setSOAP11Envelope(Element element)
          Creates a SOAPEnvelope 1.1 instance for the given SOAP-ENV:Envelope element.
 void setSOAP12Envelope(Element element)
          Creates a SOAPEnvelope 1.2 instance for the given SOAP-ENV:Envelope element.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

WsmSOAPEnvelope

public WsmSOAPEnvelope(javax.xml.soap.SOAPEnvelope senv)

Method Detail

setSOAP11Envelope

public void setSOAP11Envelope(Element element)
Creates a SOAPEnvelope 1.1 instance for the given SOAP-ENV:Envelope element.
Parameters:
element - A SOAP Envelope element.

setSOAP12Envelope

public void setSOAP12Envelope(Element element)
Creates a SOAPEnvelope 1.2 instance for the given SOAP-ENV:Envelope element.
Parameters:
element - A SOAP Envelope element.

getSOAP11Envelope

public oracle.security.xmlsec.wss.soap.WSSOAPEnvelope getSOAP11Envelope()

getSOAP12Envelope

public oracle.security.xmlsec.wss.soap.WSSOAP12Envelope getSOAP12Envelope()

getOwnerDocument

public Document getOwnerDocument()

addSecurityHeader

public void addSecurityHeader(oracle.security.xmlsec.wss.WSSecurity security)
Creates a SOAPEnvelope instance for the given SOAP-ENV:Envelope element.
Parameters:
element - A SOAP Envelope element.

getSecurityHeaders

public List getSecurityHeaders(String role,
                               boolean mu)
Returns all the Security headers in this SOAPEnvelope with no specified actor attribute and mustUnderstand attribute set to false.
Returns:
The List of WSSecurityobjects present.

getHeaderElements

public List getHeaderElements(String role)
Get all the Header entries in the Header element for the given role/actor.
Parameters:
role - A URI string specifying the role/actor of the header entries. If null, all header entries will be returned.
Returns:
A List of org.w3c.dom.Elements for all the header entries in this SOAP Envelope with the specified role attribute value.

removeSecurityHeader

public void removeSecurityHeader(oracle.security.xmlsec.wss.WSSecurity security)
Remove the given WSSecurity header from this SOAPEnvelope.
Parameters:
security - The security header element to remove.

getBody

public Element getBody()

isSOAPVersion11

public boolean isSOAPVersion11()

isSOAPVersion12

public boolean isSOAPVersion12()

getSecurityHeader

public oracle.security.xmlsec.wss.WSSecurity getSecurityHeader(String role,
                                                               boolean mustUnderstand)
                                                        throws SecurityException
Throws:
SecurityException

addSecurityHeader

public oracle.security.xmlsec.wss.WSSecurity addSecurityHeader(String role,
                                                               boolean mustUnderstand)

addWsuIdtoBody

public void addWsuIdtoBody(String id)

printClassNames

public void printClassNames()

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager
11g (11.1.1)

E10689-01


Copyright © 2007, 2009, Oracle and/or its affiliates. All rights reserved.