| java.lang.Object com.sun.xml.wss.impl.XMLUtil
XMLUtil | public class XMLUtil (Code) | | |
Field Summary | |
final protected static Logger | logger This is a custom XML handler to load the dtds from the classpath
This should be used by all the xml parsing document builders to
set the default entity resolvers. | protected static SOAPFactory | soapFactory |
Method Summary | |
public static SOAPElement | convertToSoapElement(Document doc, Element elem) | public static String | convertToXpath(String qname) | public static Element | createElement(Document doc, String tag, String nsURI, String prefix) | public static DSAKeyValue | getDSAKeyValue(Document doc, X509Certificate cert) | public static byte[] | getDecodedBase64EncodedData(String encodedData) | public static Element | getElementById(Document doc, String id) Looks up elements with wsu:Id or Id in xenc or dsig namespace. | public static List | getElementsByTagNameNS1(Element element, String nsName, String tagName) This method searches children of Element element for element with tagName
and namespaceURI nsName. | public static Element | getFirstChildElement(Node node) | public static String | getFullTextFromChildren(Element element) | public static Document | getOwnerDocument(Node node) | public static RSAKeyValue | getRSAKeyValue(Document doc, X509Certificate cert) | public static X509Data | getX509Data(Document doc, X509Certificate cert) | public static boolean | hasElementChild(Node node) Checks if a node has a child of ELEMENT type. | public static boolean | inEncryptionNS(SOAPElement element) | public static boolean | inSamlNSv1_0(SOAPElement element) | public static boolean | inSamlNSv1_1(SOAPElement element) | public static boolean | inSamlNSv2_0(SOAPElement element) | public static boolean | inSignatureNS(SOAPElement element) | public static boolean | inWSS11_NS(SOAPElement element) | public static boolean | inWsscNS(SOAPElement element) | public static boolean | inWsse11NS(SOAPElement element) | public static boolean | inWsseNS(SOAPElement element) | public static boolean | inWsuNS(SOAPElement element) | public static Document | newDocument() | public static Element | prependChildElement(Element parent, Element child, boolean addWhitespace, Document doc) | public static Element | prependChildElement(Element parent, Element child, Document doc) | public static String | print(Node node) Print a Node tree recursively. | public static String | resolveXPath(Node element) | public static Node | selectSingleNode(Node contextNode, String xpath, Element nsContext) | public static void | setIdAttr(Element element, String Id) | public static void | setWsuIdAttr(Element element, String wsuId) | public static Document | toDOMDocument(InputStream is) Converts the XML document from an input stream to DOM Document format. | public static Document | toDOMDocument(String xmlString) Converts the XML document from a String format to DOM Document format. |
logger | final protected static Logger logger(Code) | | This is a custom XML handler to load the dtds from the classpath
This should be used by all the xml parsing document builders to
set the default entity resolvers. This will avoid to have the
dtds having specified in a fixed directory that will get replaced
during installation
This will need to specify the dtds as follows
jar://com/sun/identity/sm/sms.dtd
Bundle all the dtds along with the jar files and
|
getElementsByTagNameNS1 | public static List getElementsByTagNameNS1(Element element, String nsName, String tagName)(Code) | | This method searches children of Element element for element with tagName
and namespaceURI nsName. It searchs one level down only.
Parameters: element - The root element Parameters: nsName - NamespaceURI Parameters: tagName - A String representing the name of the tag to be searchedfor. A List of elements that meet the criterial. |
hasElementChild | public static boolean hasElementChild(Node node)(Code) | | Checks if a node has a child of ELEMENT type.
Parameters: node - a node true if the node has a child of ELEMENT type |
print | public static String print(Node node)(Code) | | Print a Node tree recursively.
Parameters: node - A DOM tree Node An xml String representation of the DOM tree. |
toDOMDocument | public static Document toDOMDocument(InputStream is)(Code) | | Converts the XML document from an input stream to DOM Document format.
Parameters: is - is the InputStream that contains XML document Document is the DOM object obtained by parsing the input stream.Returns null if there are any parser errores. |
toDOMDocument | public static Document toDOMDocument(String xmlString)(Code) | | Converts the XML document from a String format to DOM Document format.
Parameters: xmlString - is the XML document in a String format Document is the DOM object obtained by converting the String XMLReturns null if xmlString is null.Returns null if there are any parser errores. |
|
|