public class ExclusiveC14N extends Canonicalizer
algorithmURI, c14nMethod| Constructor and Description | 
|---|
ExclusiveC14N()
Creates a new  
ExclusiveC14N instance. | 
ExclusiveC14N(java.lang.String inclusiveNSList)
Creates a new  
ExclusiveC14N instance. | 
ExclusiveC14N(XSAlgorithmIdentifier c14nMethod)
Creates a new  
ExclusiveC14N instance. | 
| Modifier and Type | Method and Description | 
|---|---|
byte[] | 
canonicalize(java.util.Collection source)
Canonicalizes the given  
Collection, returning the resulting XML octets in UTF-8 encoding. | 
byte[] | 
canonicalize(org.xml.sax.InputSource source)
Canonicalizes the XML in the given  
InputSource, returning the resulting XML octets in UTF-8 encoding. | 
byte[] | 
canonicalize(java.io.InputStream source)
Canonicalizes the XML in the given input stream, returning the resulting XML octets in UTF-8 encoding. 
 | 
byte[] | 
canonicalize(java.io.InputStream source, java.lang.String systemId)
Canonicalizes the XML in the given input stream, returning the resulting XML octets in UTF-8 encoding. 
 | 
byte[] | 
canonicalize(org.w3c.dom.Node source)
Canonicalizes a DOM subtree rooted in the given  
Node, returning the resulting XML octets in UTF-8 encoding. | 
byte[] | 
canonicalize(org.w3c.dom.NodeList source)
Canonicalizes the given  
NodeList, returning the resulting XML octets in UTF-8 encoding. | 
java.lang.String | 
getInclusiveNSPrefixList()
Returns the value of the InclusiveNamespaces parameter's PrefixList attribute. 
 | 
void | 
setInclusiveNSPrefixList(java.lang.String inclusiveNSList)
Sets the value of the InclusiveNamespaces parameter's PrefixList attribute. 
 | 
canonicalizeToStream, canonicalizeToStream, canonicalizeToStream, canonicalizeToStream, canonicalizeToStream, canonicalizeToStream, getAlgorithURI, getC14NMethod, getInstance, getInstance, getInstance, getInstancepublic ExclusiveC14N()
ExclusiveC14N instance.public ExclusiveC14N(java.lang.String inclusiveNSList)
ExclusiveC14N instance.inclusiveNSList - A list of namespaces to be included as per XML-C14N.public ExclusiveC14N(XSAlgorithmIdentifier c14nMethod)
ExclusiveC14N instance.c14nMethod - A XSAlgorithmIdentifier representing a CanonicalizationMethod with XMLURI.alg_exclusiveC14N as its Algorithm attribute value and, optionally, an InclusiveNamespaces parameter.java.lang.IllegalArgumentException - If the XSAlgorithmIdentifier is not a valid CanonicalizationMethod for Exclusive C14N.public void setInclusiveNSPrefixList(java.lang.String inclusiveNSList)
setInclusiveNSPrefixList in class Canonicalizerpublic java.lang.String getInclusiveNSPrefixList()
getInclusiveNSPrefixList in class Canonicalizer
public byte[] canonicalize(org.w3c.dom.Node source)
                    throws CanonicalizationException
CanonicalizerNode, returning the resulting XML octets in UTF-8 encoding.canonicalize in class Canonicalizersource - An org.w3c.dom.Node at the root of a XML tree to be canonicalized.CanonicalizationException
public byte[] canonicalize(org.w3c.dom.NodeList source)
                    throws CanonicalizationException
CanonicalizerNodeList, returning the resulting XML octets in UTF-8 encoding.canonicalize in class Canonicalizersource - An org.w3c.dom.NodeList to be canonicalized.CanonicalizationException
public byte[] canonicalize(java.util.Collection source)
                    throws CanonicalizationException
CanonicalizerCollection, returning the resulting XML octets in UTF-8 encoding.canonicalize in class Canonicalizersource - A java.util.Collection containing the nodes to be canonicalized.CanonicalizationException
public byte[] canonicalize(java.io.InputStream source)
                    throws CanonicalizationException
Canonicalizercanonicalize in class Canonicalizersource - A java.io.InputStream containing the XML to be canonicalized.CanonicalizationException
public byte[] canonicalize(java.io.InputStream source,
                  java.lang.String systemId)
                    throws CanonicalizationException
Canonicalizercanonicalize in class Canonicalizersource - A java.io.InputStream containing the XML to be canonicalized.systemId - A URI string identifying the input stream source.CanonicalizationException
public byte[] canonicalize(org.xml.sax.InputSource source)
                    throws CanonicalizationException
CanonicalizerInputSource, returning the resulting XML octets in UTF-8 encoding.canonicalize in class Canonicalizersource - An org.xml.sax.InputSource containing the XML to be canonicalized.CanonicalizationException