|
Oracle Fusion Middleware Web Services Security Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1.9) E56326-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.xmlsec.util.XMLNode
oracle.security.xmlsec.util.XMLElement
oracle.security.xmlsec.soap.v12.SOAPEnvelope
oracle.security.xmlsec.wss.soap.WSSOAP12Envelope
public class WSSOAP12Envelope
Represents a SOAP message and allows for adding/removing wsse:WSSecurity header elements.
Current release only supports SOAP 1.2.
WSSecurity
Field Summary |
---|
Fields inherited from class oracle.security.xmlsec.util.XMLNode |
---|
node, systemId |
Constructor Summary | |
---|---|
WSSOAP12Envelope(org.w3c.dom.Document document) Creates a new SOAPEnvelope instance for the given owner document, but does not appended the Envelope element to the document node. |
|
WSSOAP12Envelope(org.w3c.dom.Element element) Creates a SOAPEnvelope instance for the given SOAP-ENV:Envelope element. |
|
WSSOAP12Envelope(org.w3c.dom.Element element, java.lang.String systemId) Creates a SOAPEnvelope instance for the given SOAP-ENV:Envelope element. |
Method Summary | |
---|---|
void |
addSecurity(WSSecurity security) Adds a WSSecurity header to this SOAPEnvelope without a specified actor. |
void |
addWsuIdToBody(java.lang.String id) Adds an global wsu:Id attribute to the Body element in the SOAPEnvelope. |
static void |
addWsuIdToElement(java.lang.String id, org.w3c.dom.Element element) Adds a global wsu:Id attribute to the given element in this SOAPEnvelope. |
void |
decryptAll() Decrypts all the EncryptedData child elements and replaces the EncrypteData element with the decrypted XML result. |
java.util.List |
getSecurity() Returns the Security headers in this SOAPEnvelope with no specified actor attribute and mustUnderstand attribute set to false. |
java.util.List |
getSecurity(java.lang.String role) Returns the Security headers in this SOAPEnvelope. |
java.util.List |
getSecurity(java.lang.String role, boolean mustUnderstand) Returns the Security headers in this SOAPEnvelope. |
java.util.List |
getSecuritys() Returns the Security headers in this SOAPEnvelope. |
void |
removeSecurity(WSSecurity security) Remove the given WSSecurity header from this SOAPEnvelope. |
void |
verifyAll() Verifies all of the signatures in this message, following the ds:Signature and ds:Reference validation process defined in [XML-SIG]. |
Methods inherited from class oracle.security.xmlsec.soap.v12.SOAPEnvelope |
---|
addBodyElement, addBodyElement, addHeaderElement, addHeaderElement, addSOAPFault, addSOAPFault, getBody, getBodyElements, getBodyElementsByTagNameNS, getHeader, getHeaderElements, getHeaderElements, getHeaderElements, getSOAPFault |
Methods inherited from class oracle.security.xmlsec.util.XMLElement |
---|
addNSPrefixAttr, addNSPrefixAttr, addNSPrefixAttrDefault, addNSPrefixAttrDefault, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getChildElementsByTagName, getChildElementsByTagName, getChildElementsByTagNameNS, getChildElementsByTagNameNS, getDefaultNSPrefix, getElement, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setDefaultNSPrefix |
Methods inherited from class oracle.security.xmlsec.util.XMLNode |
---|
appendChild, appendChild, appendTo, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getSystemId, hasAttributes, hasChildNodes, insertBefore, insertBefore, isSupported, normalize, removeChild, removeChild, replaceChild, replaceChild, setNodeValue, setPrefix, setSystemId, toBytesXML, toStringXML |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WSSOAP12Envelope(org.w3c.dom.Element element)
element
- A SOAP Envelope element.public WSSOAP12Envelope(org.w3c.dom.Element element, java.lang.String systemId)
element
- A SOAP Envelope element.systemId
- The URI string system ID for the SOAPEnvelope.public WSSOAP12Envelope(org.w3c.dom.Document document)
document
- The document context to use.Method Detail |
---|
public void addSecurity(WSSecurity security)
WSSecurity
header to this SOAPEnvelope without a specified actor.security
- The WSSecurity
object added.public java.util.List getSecurity()
Security
headers in this SOAPEnvelope with no specified actor attribute and mustUnderstand attribute set to false.List
of WSSecurity
objects present.public java.util.List getSecuritys()
Security
headers in this SOAPEnvelope.List
of all WSSecurity
objects present.public java.util.List getSecurity(java.lang.String role)
Security
headers in this SOAPEnvelope.role
- The specified role.List
of WSSecurity
objects present.public java.util.List getSecurity(java.lang.String role, boolean mustUnderstand)
Security
headers in this SOAPEnvelope.role
- The specified role.mustUnderstand
- The mustUnderstand value.List
of WSSecurity
objects present.public void removeSecurity(WSSecurity security)
security
- The security header element to remove.public void addWsuIdToBody(java.lang.String id)
id
- The global wsu identifier value.public static void addWsuIdToElement(java.lang.String id, org.w3c.dom.Element element)
id
- The global wsu identifier value.element
- The element whose wsu:Id value will be set.public void decryptAll() throws WSSException
WSSException
public void verifyAll() throws WSSException
WSSException
|
Oracle Fusion Middleware Web Services Security Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1.9) E56326-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |