public abstract class OMStructureFactory
extends java.lang.Object
This API is used for the creation of OMStructure elements. An OMStructure object is usually the expected input when a WS-Security api method signature has an XMLStructure.
Constructor and Description |
---|
OMStructureFactory() |
Modifier and Type | Method and Description |
---|---|
static OMStructureFactory |
getInstance()
Retrieves an instance of the OMStructureFactory.
|
abstract com.ibm.wsspi.wssecurity.wssapi.OMStructure |
getOMStructure(org.w3c.dom.Element element)
Create an OMStructure from an org.w3c.dom.Element.
|
abstract com.ibm.wsspi.wssecurity.wssapi.OMStructure |
getOMStructure(java.io.InputStream is)
Create an OMStructure based on an InputStream for a XML element.
|
abstract com.ibm.wsspi.wssecurity.wssapi.OMStructure |
getOMStructure(org.apache.axiom.om.OMElement node)
Create an OMStructure from an OMElement element.
|
abstract com.ibm.wsspi.wssecurity.wssapi.OMStructure |
getOMStructure(java.lang.String strElement)
Create an OMStructure from a java.lang.String
|
public static OMStructureFactory getInstance() throws WSSException
WSSException
- if the illegal access occurs or if the WSSFactory instance is not generated.public abstract com.ibm.wsspi.wssecurity.wssapi.OMStructure getOMStructure(org.apache.axiom.om.OMElement node)
node
- axiom representation of an elementpublic abstract com.ibm.wsspi.wssecurity.wssapi.OMStructure getOMStructure(org.w3c.dom.Element element) throws java.lang.Exception
element
- org.w3c.dom representation of an elementjava.lang.Exception
- if org.w3c.dom.Element cannot be converted to an OMElementpublic abstract com.ibm.wsspi.wssecurity.wssapi.OMStructure getOMStructure(java.lang.String strElement) throws java.lang.Exception
strElement
- String representation of an XML elementjava.lang.Exception
- if String cannot be converted to an OMElementpublic abstract com.ibm.wsspi.wssecurity.wssapi.OMStructure getOMStructure(java.io.InputStream is) throws java.lang.Exception
is
- an InputStream corresponding to a serialized XML element. The programmer is
responsible for closing of the stream accordingly.java.lang.Exception
- if InputStream cannot be converted to an OMElement