Class CanonicalizerSpi

java.lang.Object
org.docx4j.org.apache.xml.security.c14n.CanonicalizerSpi
Direct Known Subclasses:
CanonicalizerBase

public abstract class CanonicalizerSpi
extends java.lang.Object
Base class which all Canonicalization algorithms extend.
Author:
Christian Geuer-Pollmann
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected boolean reset
    Reset the writer after a c14n
    protected boolean secureValidation  
  • Constructor Summary

    Constructors 
    Constructor Description
    CanonicalizerSpi()  
  • Method Summary

    Modifier and Type Method Description
    byte[] engineCanonicalize​(byte[] inputBytes)
    Method canonicalize
    abstract byte[] engineCanonicalizeSubTree​(org.w3c.dom.Node rootNode)
    C14n a node tree.
    abstract byte[] engineCanonicalizeSubTree​(org.w3c.dom.Node rootNode, java.lang.String inclusiveNamespaces)
    C14n a node tree.
    abstract byte[] engineCanonicalizeSubTree​(org.w3c.dom.Node rootNode, java.lang.String inclusiveNamespaces, boolean propagateDefaultNamespace)
    C14n a node tree.
    abstract byte[] engineCanonicalizeXPathNodeSet​(java.util.Set<org.w3c.dom.Node> xpathNodeSet)
    C14n a nodeset
    abstract byte[] engineCanonicalizeXPathNodeSet​(java.util.Set<org.w3c.dom.Node> xpathNodeSet, java.lang.String inclusiveNamespaces)
    C14n a nodeset
    byte[] engineCanonicalizeXPathNodeSet​(org.w3c.dom.NodeList xpathNodeSet)
    Method engineCanonicalizeXPathNodeSet
    byte[] engineCanonicalizeXPathNodeSet​(org.w3c.dom.NodeList xpathNodeSet, java.lang.String inclusiveNamespaces)
    Method engineCanonicalizeXPathNodeSet
    abstract boolean engineGetIncludeComments()
    Returns true if comments are included
    abstract java.lang.String engineGetURI()
    Returns the URI of this engine.
    boolean isSecureValidation()  
    void setSecureValidation​(boolean secureValidation)  
    abstract void setWriter​(java.io.OutputStream os)
    Sets the writer where the canonicalization ends.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait