| Modifier and Type | Field and Description |
|---|---|
| private static volatile String | |
| private static volatile String | |
| private static boolean | |
| private static final Logger | |
| private static volatile String | |
| private static volatile String | |
| private static XMLParser |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static void | |
| public static void | |
| public static void | circumventBug2650(Document doc)
This method spreads all namespace attributes in a DOM document to their children. |
| private static void | |
| public static Set | Returns: the set with the nodelistMethod convertNodelistToSet |
| public static Element | Returns: the Elementthe factory Document doc, String the local name of the Element elementName)Creates an Element in the XML Encryption 1.1 specification namespace. |
| public static Element | Returns: the Elementthe factory Document doc, String the local name of the Element elementName)Creates an Element in the XML Encryption specification namespace. |
| public static Element | Returns: the Elementthe factory Document doc, String the local name of the Element elementName)Creates an Element in the XML Signature 1.1 specification namespace. |
| public static Element | Returns: the Elementthe factory Document doc, String the local name of the Element elementName)Creates an Element in the XML Signature specification namespace. |
| public static byte[] | |
| public static byte[] | |
| public static boolean | Returns: true if the element is in XML Encryption 1.1 namespace and the local name equals the supplied oneReturns true if the element is in XML Encryption 1.1 namespace and the local name equals the supplied one. |
| public static boolean | Returns: true if the element is in XML Encryption namespace and the local name equals the supplied oneReturns true if the element is in XML Encryption namespace and the local name equals the supplied one. |
| public static boolean | Returns: true if the element is in XML Signature namespace and the local name equals the supplied oneReturns true if the element is in XML Signature 1.1 namespace and the local name equals the supplied one. |
| public static boolean | Returns: true if the element is in XML Signature namespace and the local name equals the supplied oneReturns true if the element is in XML Signature namespace and the local name equals the supplied one. |
| public static String | |
| public static Set | |
| public static byte[] | Returns: a byte array withbitlen bits of bigBigInteger to be convertedint the desired length in bits of the representationReturns a byte-array representation of a |
| public static String | Returns: the string of childrenMethod getFullTextChildrenFromNode |
| public static Element | |
| public static Document | Returns: the owner document of the nodeThis method returns the owner document of a particular node. |
| public static Document | Returns: the owner documentThis method returns the first non-null owner document of the Nodes in this Set. |
| public static void | |
| private static void | |
| public static String | |
| public static boolean | |
| public static boolean | Returns: true if the node is descendantReturns true if the descendantOrSelf is on the descendant-or-self axis of the context node. |
| public static boolean | |
| public static void | |
| public static void | outputDOM(Node
root node of the DOM tree contextNode, OutputStream the os)OutputStreamOutputs a DOM tree to an |
| public static void | outputDOM(Node
root node of the DOM tree contextNode, OutputStream the os, boolean addPreamble)OutputStreamOutputs a DOM tree to an |
| public static void | outputDOMc14nWithComments(Node contextNode, OutputStream os)
Serializes the |
| public static boolean | protectAgainstWrappingAttack(Node startNode, String value)
This method is a tree-search to help prevent against wrapping attacks. |
| public static boolean | protectAgainstWrappingAttack(Node startNode, Element knownElement, String value)
This method is a tree-search to help prevent against wrapping attacks. |
| public static Document | |
| public static Document | Returns: DocumentReads a document from the input stream. |
| public static Document | Returns: Document- resource name to be opened by the class loader name, ClassLoader loader, boolean disallowDocTypeDeclarations)Reads a document from the input stream and closes it. |
| public static Element | |
| public static Element[] | |
| public static Element | |
| public static Element[] | |
| public static Element | |
| public static Element[] | |
| public static Element | |
| public static void | setDs11Prefix(String
the new prefix for the digital signature 1.1 namespace prefix)Set the prefix for the digital signature 1.1 namespace |
| public static void | setDsPrefix(String
the new prefix for the digital signature namespace prefix)Set the prefix for the digital signature namespace |
| public static void | setXenc11Prefix(String
the new prefix for the encryption namespace 1.1 prefix)Set the prefix for the encryption namespace 1.1 |
| public static void | setXencPrefix(String
the new prefix for the encryption namespace prefix)Set the prefix for the encryption namespace |
| ds11Prefix | back to summary |
|---|---|
| private static volatile String ds11Prefix | |
| dsPrefix | back to summary |
|---|---|
| private static volatile String dsPrefix | |
| ignoreLineBreaks | back to summary |
|---|---|
private static boolean ignoreLineBreaks
| |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| xenc11Prefix | back to summary |
|---|---|
| private static volatile String xenc11Prefix | |
| xencPrefix | back to summary |
|---|---|
| private static volatile String xencPrefix | |
| xmlParserImpl | back to summary |
|---|---|
private static XMLParser xmlParserImpl
| |
| XMLUtils | back to summary |
|---|---|
| private XMLUtils() Constructor XMLUtils | |
| addReturnBeforeChild | back to summary |
|---|---|
| public static void addReturnBeforeChild(Element e, Node child) | |
| addReturnToElement | back to summary |
|---|---|
| public static void addReturnToElement(Element e) Method addReturnToElement | |
| addReturnToElement | back to summary |
|---|---|
| public static void addReturnToElement(Document doc, HelperNodeList nl) | |
| circumventBug2650 | back to summary |
|---|---|
| public static void circumventBug2650(Document doc) This method spreads all namespace attributes in a DOM document to their children. This is needed because the XML Signature XPath transform must evaluate the XPath against all nodes in the input, even against XPath namespace nodes. Through a bug in XalanJ2, the namespace nodes are not fully visible in the Xalan XPath model, so we have to do this by hand in DOM spaces so that the nodes become visible in XPath space. | |
| circumventBug2650internal | back to summary |
|---|---|
| private static void circumventBug2650internal(Node node) This is the work horse for
| |
| convertNodelistToSet | back to summary |
|---|---|
| public static Set Method convertNodelistToSet | |
| createElementInEncryption11Space | back to summary |
|---|---|
| public static Element createElementInEncryption11Space(Document doc, String elementName) Creates an Element in the XML Encryption 1.1 specification namespace. | |
| createElementInEncryptionSpace | back to summary |
|---|---|
| public static Element createElementInEncryptionSpace(Document doc, String elementName) Creates an Element in the XML Encryption specification namespace. | |
| createElementInSignature11Space | back to summary |
|---|---|
| public static Element createElementInSignature11Space(Document doc, String elementName) Creates an Element in the XML Signature 1.1 specification namespace. | |
| createElementInSignatureSpace | back to summary |
|---|---|
| public static Element createElementInSignatureSpace(Document doc, String elementName) Creates an Element in the XML Signature specification namespace. | |
| decode | back to summary |
|---|---|
| public static byte[] decode(String encodedString) | |
| decode | back to summary |
|---|---|
| public static byte[] decode(byte[] encodedBytes) | |
| elementIsInEncryption11Space | back to summary |
|---|---|
| public static boolean elementIsInEncryption11Space(Element element, String localName) Returns true if the element is in XML Encryption 1.1 namespace and the local name equals the supplied one.
| |
| elementIsInEncryptionSpace | back to summary |
|---|---|
| public static boolean elementIsInEncryptionSpace(Element element, String localName) Returns true if the element is in XML Encryption namespace and the local name equals the supplied one.
| |
| elementIsInSignature11Space | back to summary |
|---|---|
| public static boolean elementIsInSignature11Space(Element element, String localName) Returns true if the element is in XML Signature 1.1 namespace and the local name equals the supplied one.
| |
| elementIsInSignatureSpace | back to summary |
|---|---|
| public static boolean elementIsInSignatureSpace(Element element, String localName) Returns true if the element is in XML Signature namespace and the local name equals the supplied one.
| |
| encodeToString | back to summary |
|---|---|
| public static String encodeToString(byte[] bytes) | |
| excludeNodeFromSet | back to summary |
|---|---|
| public static Set | |
| getBytes | back to summary |
|---|---|
| public static byte[] getBytes(BigInteger big, int bitlen) Returns a byte-array representation of a Note
| |
| getFullTextChildrenFromNode | back to summary |
|---|---|
| public static String getFullTextChildrenFromNode(Node node) Method getFullTextChildrenFromNode
| |
| getNextElement | back to summary |
|---|---|
| public static Element getNextElement(Node el) | |
| getOwnerDocument | back to summary |
|---|---|
| public static Document getOwnerDocument(Node node) This method returns the owner document of a particular node.
This method is necessary because it always returns a
| |
| getOwnerDocument | back to summary |
|---|---|
| public static Document getOwnerDocument(Set<Node> xpathNodeSet) This method returns the first non-null owner document of the Nodes in this Set.
This method is necessary because it always returns a
| |
| getSet | back to summary |
|---|---|
public static void getSet(Node rootNode, Set<Node> result, Node exclude, boolean comments)
| |
| getSetRec | back to summary |
|---|---|
private static void getSetRec(final Node rootNode, final Set<Node> result, final Node exclude, final boolean comments)
| |
| getStrFromNode | back to summary |
|---|---|
| public static String getStrFromNode(Node xpathnode) Method getStrFromNode
| |
| ignoreLineBreaks | back to summary |
|---|---|
| public static boolean ignoreLineBreaks() | |
| isDescendantOrSelf | back to summary |
|---|---|
| public static boolean isDescendantOrSelf(Node ctx, Node descendantOrSelf) Returns true if the descendantOrSelf is on the descendant-or-self axis of the context node.
| |
| isIgnoreLineBreaks | back to summary |
|---|---|
| public static boolean isIgnoreLineBreaks() | |
| outputDOM | back to summary |
|---|---|
| public static void outputDOM(Node contextNode, File outputFile) throws IOException Outputs a DOM tree to a | |
| outputDOM | back to summary |
|---|---|
| public static void outputDOM(Node contextNode, OutputStream os) Outputs a DOM tree to an
| |
| outputDOM | back to summary |
|---|---|
| public static void outputDOM(Node contextNode, OutputStream os, boolean addPreamble) Outputs a DOM tree to an
| |
| outputDOMc14nWithComments | back to summary |
|---|---|
| public static void outputDOMc14nWithComments(Node contextNode, OutputStream os) Serializes the try{} statement, but handle the Exceptions appropriately.
| |
| protectAgainstWrappingAttack | back to summary |
|---|---|
| public static boolean protectAgainstWrappingAttack(Node startNode, String value) This method is a tree-search to help prevent against wrapping attacks. It checks that no two Elements have ID Attributes that match the "value" argument, if this is the case then "false" is returned. Note that a return value of "true" does not necessarily mean that a matching Element has been found, just that no wrapping attack has been detected. | |
| protectAgainstWrappingAttack | back to summary |
|---|---|
| public static boolean protectAgainstWrappingAttack(Node startNode, Element knownElement, String value) This method is a tree-search to help prevent against wrapping attacks. It checks that no other Element than the given "knownElement" argument has an ID attribute that matches the "value" argument, which is the ID value of "knownElement". If this is the case then "false" is returned. | |
| read | back to summary |
|---|---|
| public static Document read(File file, boolean disallowDocTypeDeclarations) throws XMLParserException, IOException Reads a document from the input stream. | |
| read | back to summary |
|---|---|
| public static Document read(InputStream inputStream, boolean disallowDocTypeDeclarations) throws XMLParserException Reads a document from the input stream. Caller is responsible for closing the stream. | |
| readResource | back to summary |
|---|---|
| public static Document readResource(String name, ClassLoader loader, boolean disallowDocTypeDeclarations) throws XMLParserException, IOException Reads a document from the input stream and closes it.
| |
| selectDs11Node | back to summary |
|---|---|
public static Element selectDs11Node(Node sibling, String nodeName, int number)
| |
| selectDs11Nodes | back to summary |
|---|---|
public static Element[] selectDs11Nodes(Node sibling, String nodeName)
| |
| selectDsNode | back to summary |
|---|---|
public static Element selectDsNode(Node sibling, String nodeName, int number)
| |
| selectDsNodes | back to summary |
|---|---|
public static Element[] selectDsNodes(Node sibling, String nodeName)
| |
| selectNode | back to summary |
|---|---|
public static Element selectNode(Node sibling, String uri, String nodeName, int number)
| |
| selectNodes | back to summary |
|---|---|
public static Element[] selectNodes(Node sibling, String uri, String nodeName)
| |
| selectXencNode | back to summary |
|---|---|
public static Element selectXencNode(Node sibling, String nodeName, int number)
| |
| setDs11Prefix | back to summary |
|---|---|
| public static void setDs11Prefix(String prefix) Set the prefix for the digital signature 1.1 namespace
| |
| setDsPrefix | back to summary |
|---|---|
| public static void setDsPrefix(String prefix) Set the prefix for the digital signature namespace
| |
| setXenc11Prefix | back to summary |
|---|---|
| public static void setXenc11Prefix(String prefix) Set the prefix for the encryption namespace 1.1
| |
| setXencPrefix | back to summary |
|---|---|
| public static void setXencPrefix(String prefix) Set the prefix for the encryption namespace
| |