Java Doc for XMLUtil.java in  » 6.0-JDK-Modules-com.sun » xws-security » com » sun » xml » wss » impl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules com.sun » xws security » com.sun.xml.wss.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.xml.wss.impl.XMLUtil

XMLUtil
public class XMLUtil (Code)

Inner Class :static class XMLHandler extends DefaultHandler

Field Summary
final protected static  Loggerlogger
     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  SOAPFactorysoapFactory
    


Method Summary
public static  SOAPElementconvertToSoapElement(Document doc, Element elem)
    
public static  StringconvertToXpath(String qname)
    
public static  ElementcreateElement(Document doc, String tag, String nsURI, String prefix)
    
public static  DSAKeyValuegetDSAKeyValue(Document doc, X509Certificate cert)
    
public static  byte[]getDecodedBase64EncodedData(String encodedData)
    
public static  ElementgetElementById(Document doc, String id)
     Looks up elements with wsu:Id or Id in xenc or dsig namespace.
public static  ListgetElementsByTagNameNS1(Element element, String nsName, String tagName)
     This method searches children of Element element for element with tagName and namespaceURI nsName.
public static  ElementgetFirstChildElement(Node node)
    
public static  StringgetFullTextFromChildren(Element element)
    
public static  DocumentgetOwnerDocument(Node node)
    
public static  RSAKeyValuegetRSAKeyValue(Document doc, X509Certificate cert)
    
public static  X509DatagetX509Data(Document doc, X509Certificate cert)
    
public static  booleanhasElementChild(Node node)
     Checks if a node has a child of ELEMENT type.
public static  booleaninEncryptionNS(SOAPElement element)
    
public static  booleaninSamlNSv1_0(SOAPElement element)
    
public static  booleaninSamlNSv1_1(SOAPElement element)
    
public static  booleaninSamlNSv2_0(SOAPElement element)
    
public static  booleaninSignatureNS(SOAPElement element)
    
public static  booleaninWSS11_NS(SOAPElement element)
    
public static  booleaninWsscNS(SOAPElement element)
    
public static  booleaninWsse11NS(SOAPElement element)
    
public static  booleaninWsseNS(SOAPElement element)
    
public static  booleaninWsuNS(SOAPElement element)
    
public static  DocumentnewDocument()
    
public static  ElementprependChildElement(Element parent, Element child, boolean addWhitespace, Document doc)
    
public static  ElementprependChildElement(Element parent, Element child, Document doc)
    
public static  Stringprint(Node node)
     Print a Node tree recursively.
public static  StringresolveXPath(Node element)
    
public static  NodeselectSingleNode(Node contextNode, String xpath, Element nsContext)
    
public static  voidsetIdAttr(Element element, String Id)
    
public static  voidsetWsuIdAttr(Element element, String wsuId)
    
public static  DocumenttoDOMDocument(InputStream is)
     Converts the XML document from an input stream to DOM Document format.
public static  DocumenttoDOMDocument(String xmlString)
     Converts the XML document from a String format to DOM Document format.

Field Detail
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



soapFactory
protected static SOAPFactory soapFactory(Code)





Method Detail
convertToSoapElement
public static SOAPElement convertToSoapElement(Document doc, Element elem) throws DOMException, ClassCastException(Code)
convertToSoapElement
Parameters:
  doc - the Owner Soap Document of the SOAPElement to be returned
Parameters:
  elem - the DOM Element to be converted to SOAPElement a SOAPElement whose parent node is null
throws:
  DOMException -



convertToXpath
public static String convertToXpath(String qname)(Code)



createElement
public static Element createElement(Document doc, String tag, String nsURI, String prefix)(Code)



getDSAKeyValue
public static DSAKeyValue getDSAKeyValue(Document doc, X509Certificate cert) throws XWSSecurityException(Code)



getDecodedBase64EncodedData
public static byte[] getDecodedBase64EncodedData(String encodedData) throws XWSSecurityException(Code)



getElementById
public static Element getElementById(Document doc, String id) throws TransformerException(Code)
Looks up elements with wsu:Id or Id in xenc or dsig namespace.
Parameters:
  doc -
Parameters:
  id - element
throws:
  TransformerException -



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.



getFirstChildElement
public static Element getFirstChildElement(Node node)(Code)



getFullTextFromChildren
public static String getFullTextFromChildren(Element element)(Code)



getOwnerDocument
public static Document getOwnerDocument(Node node)(Code)



getRSAKeyValue
public static RSAKeyValue getRSAKeyValue(Document doc, X509Certificate cert) throws XWSSecurityException(Code)



getX509Data
public static X509Data getX509Data(Document doc, X509Certificate cert) throws XWSSecurityException(Code)



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



inEncryptionNS
public static boolean inEncryptionNS(SOAPElement element)(Code)



inSamlNSv1_0
public static boolean inSamlNSv1_0(SOAPElement element)(Code)



inSamlNSv1_1
public static boolean inSamlNSv1_1(SOAPElement element)(Code)



inSamlNSv2_0
public static boolean inSamlNSv2_0(SOAPElement element)(Code)



inSignatureNS
public static boolean inSignatureNS(SOAPElement element)(Code)



inWSS11_NS
public static boolean inWSS11_NS(SOAPElement element)(Code)



inWsscNS
public static boolean inWsscNS(SOAPElement element)(Code)



inWsse11NS
public static boolean inWsse11NS(SOAPElement element)(Code)



inWsseNS
public static boolean inWsseNS(SOAPElement element)(Code)



inWsuNS
public static boolean inWsuNS(SOAPElement element)(Code)



newDocument
public static Document newDocument() throws ParserConfigurationException(Code)
Obtains a new instance of a DOM Document object a new instance of a DOM Document object
exception:
  Exception - if an error occurs while constructing a newdocument



prependChildElement
public static Element prependChildElement(Element parent, Element child, boolean addWhitespace, Document doc)(Code)



prependChildElement
public static Element prependChildElement(Element parent, Element child, Document doc)(Code)



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.



resolveXPath
public static String resolveXPath(Node element) throws Exception(Code)



selectSingleNode
public static Node selectSingleNode(Node contextNode, String xpath, Element nsContext) throws XWSSecurityException(Code)



setIdAttr
public static void setIdAttr(Element element, String Id)(Code)



setWsuIdAttr
public static void setWsuIdAttr(Element element, String wsuId)(Code)



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.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.