Skip navigation links

Oracle Fusion Middleware XML Security Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10680-03


oracle.security.xmlsec.c14n
Class XMLC14N

java.lang.Object
  extended by oracle.security.xmlsec.c14n.Canonicalizer
      extended by oracle.security.xmlsec.c14n.XMLC14N

Direct Known Subclasses:
XMLC14NWithComments

public class XMLC14N
extends Canonicalizer

Implementation of Canonical XML version 1.0 (XML-C14N).


Field Summary

 

Fields inherited from class oracle.security.xmlsec.c14n.Canonicalizer
algorithmURI, c14nMethod

 

Constructor Summary
XMLC14N()
          Creates a new XMLC14N instance.
XMLC14N(XSAlgorithmIdentifier c14nMethod)
          Creates a new XMLC14N instance.

 

Method Summary
 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.

 

Methods inherited from class oracle.security.xmlsec.c14n.Canonicalizer
canonicalizeToStream, canonicalizeToStream, canonicalizeToStream, canonicalizeToStream, canonicalizeToStream, canonicalizeToStream, getAlgorithURI, getC14NMethod, getInclusiveNSPrefixList, getInstance, getInstance, getInstance, getInstance, setInclusiveNSPrefixList

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

XMLC14N

public XMLC14N()
Creates a new XMLC14N instance.

XMLC14N

public XMLC14N(XSAlgorithmIdentifier c14nMethod)
Creates a new XMLC14N instance.
Parameters:
c14nMethod - A XSAlgorithmIdentifier representing a CanonicalizationMethod.
Throws:
java.lang.IllegalArgumentException - If the XSAlgorithmIdentifier is not a valid CanonicalizationMethod.

Method Detail

canonicalize

public byte[] canonicalize(org.w3c.dom.Node source)
                    throws CanonicalizationException
Description copied from class: Canonicalizer
Canonicalizes a DOM subtree rooted in the given Node, returning the resulting XML octets in UTF-8 encoding.
Specified by:
canonicalize in class Canonicalizer
Parameters:
source - An org.w3c.dom.Node at the root of a XML tree to be canonicalized.
Returns:
A byte array containing the canonicalized octets of the input XML tree.
Throws:
CanonicalizationException

canonicalize

public byte[] canonicalize(org.w3c.dom.NodeList source)
                    throws CanonicalizationException
Description copied from class: Canonicalizer
Canonicalizes the given NodeList, returning the resulting XML octets in UTF-8 encoding.
Specified by:
canonicalize in class Canonicalizer
Parameters:
source - An org.w3c.dom.NodeList to be canonicalized.
Returns:
A byte array containing the canonicalized octets of the input node list.
Throws:
CanonicalizationException

canonicalize

public byte[] canonicalize(java.util.Collection source)
                    throws CanonicalizationException
Description copied from class: Canonicalizer
Canonicalizes the given Collection, returning the resulting XML octets in UTF-8 encoding.
Specified by:
canonicalize in class Canonicalizer
Parameters:
source - A java.util.Collection containing the nodes to be canonicalized.
Returns:
A byte array containing the canonicalized octets of the input nodes.
Throws:
CanonicalizationException

canonicalize

public byte[] canonicalize(java.io.InputStream source)
                    throws CanonicalizationException
Description copied from class: Canonicalizer
Canonicalizes the XML in the given input stream, returning the resulting XML octets in UTF-8 encoding.
Specified by:
canonicalize in class Canonicalizer
Parameters:
source - A java.io.InputStream containing the XML to be canonicalized.
Returns:
A byte array containing the canonicalized octets of the input XML.
Throws:
CanonicalizationException

canonicalize

public byte[] canonicalize(java.io.InputStream source,
                           java.lang.String systemId)
                    throws CanonicalizationException
Description copied from class: Canonicalizer
Canonicalizes the XML in the given input stream, returning the resulting XML octets in UTF-8 encoding.
Specified by:
canonicalize in class Canonicalizer
Parameters:
source - A java.io.InputStream containing the XML to be canonicalized.
systemId - A URI string identifying the input stream source.
Returns:
A byte array containing the canonicalized octets of the input XML.
Throws:
CanonicalizationException

canonicalize

public byte[] canonicalize(org.xml.sax.InputSource source)
                    throws CanonicalizationException
Description copied from class: Canonicalizer
Canonicalizes the XML in the given InputSource, returning the resulting XML octets in UTF-8 encoding.
Specified by:
canonicalize in class Canonicalizer
Parameters:
source - An org.xml.sax.InputSource containing the XML to be canonicalized.
Returns:
A byte array containing the canonicalized octets of the input XML.
Throws:
CanonicalizationException

Skip navigation links

Oracle Fusion Middleware XML Security Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10680-03


Copyright © 2005, 2011 , Oracle. All rights reserved.