Skip navigation links

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

E10680-04


oracle.security.xmlsec.c14n
Class StreamingC14NImpl

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

Direct Known Subclasses:
StreamingC14NImpl.StreamingExclusiveC14NImpl, StreamingC14NImpl.StreamingExclusiveCommentsC14NImpl, StreamingC14NImpl.StreamingInclusiveC14N11Impl, StreamingC14NImpl.StreamingInclusiveC14NImpl, StreamingC14NImpl.StreamingInclusiveCommentsC14N11Impl, StreamingC14NImpl.StreamingInclusiveCommentsC14NImpl

public class StreamingC14NImpl
extends Canonicalizer

A more efficient canonicalization routine. Do not use directly, Instead use

See Also:
Canonicalizer.getInstance(boolean, boolean)

Nested Class Summary
static class StreamingC14NImpl.AttrComparator
           
static class StreamingC14NImpl.AttrObj
           
static class StreamingC14NImpl.StreamingExclusiveC14NImpl
           
static class StreamingC14NImpl.StreamingExclusiveCommentsC14NImpl
           
static class StreamingC14NImpl.StreamingInclusiveC14N11Impl
           
static class StreamingC14NImpl.StreamingInclusiveC14NImpl
           
static class StreamingC14NImpl.StreamingInclusiveCommentsC14N11Impl
           
static class StreamingC14NImpl.StreamingInclusiveCommentsC14NImpl
           

 

Field Summary

 

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

 

Constructor Summary
StreamingC14NImpl()
           
StreamingC14NImpl(boolean excC14n, boolean withComments)
           
StreamingC14NImpl(boolean excC14n, boolean withComments, boolean c14n11)
           
StreamingC14NImpl(boolean exclusive, boolean withComments, java.lang.String inclusiveNSList)
           

 

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.
 java.io.InputStream canonicalizeToStream(java.util.Collection source)
          Canonicalizes the given Collection, returning the resulting XML octets in UTF-8 encoding.
 java.io.InputStream canonicalizeToStream(org.xml.sax.InputSource source)
          Canonicalizes the XML in the given InputSource, returning the resulting XML octets in UTF-8 encoding.
 java.io.InputStream canonicalizeToStream(java.io.InputStream source)
          Canonicalizes the XML in the given input stream, returning the resulting XML octets in UTF-8 encoding.
 java.io.InputStream canonicalizeToStream(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.
 java.io.InputStream canonicalizeToStream(org.w3c.dom.Node subTree)
          Canonicalize an entire subtree
 java.io.InputStream canonicalizeToStream(org.w3c.dom.NodeList source)
          Canonicalizes the given NodeList, returning the resulting XML octets in UTF-8 encoding.
 java.io.InputStream canonicalizeToStream(NodeReader nodeReader)
           
 void canonicalizeToStream(NodeReader nodeReader, java.io.OutputStream os)
           
static java.lang.String getInclusiveNamespacesList(XSAlgorithmIdentifier c14nMethod)
           
 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.

 

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

 

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

 

Constructor Detail

StreamingC14NImpl

public StreamingC14NImpl(boolean excC14n,
                         boolean withComments)

StreamingC14NImpl

public StreamingC14NImpl(boolean excC14n,
                         boolean withComments,
                         boolean c14n11)

StreamingC14NImpl

public StreamingC14NImpl()

StreamingC14NImpl

public StreamingC14NImpl(boolean exclusive,
                         boolean withComments,
                         java.lang.String inclusiveNSList)

Method Detail

getInclusiveNamespacesList

public static java.lang.String getInclusiveNamespacesList(XSAlgorithmIdentifier c14nMethod)
                                                   throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

setInclusiveNSPrefixList

public void setInclusiveNSPrefixList(java.lang.String inclusiveNSList)
Sets the value of the InclusiveNamespaces parameter's PrefixList attribute. Only applicable for exclusive C14n
Overrides:
setInclusiveNSPrefixList in class Canonicalizer

getInclusiveNSPrefixList

public java.lang.String getInclusiveNSPrefixList()
Returns the value of the InclusiveNamespaces parameter's PrefixList attribute. Only applicable for exclusive C14n
Overrides:
getInclusiveNSPrefixList in class Canonicalizer

canonicalizeToStream

public java.io.InputStream canonicalizeToStream(org.w3c.dom.Node subTree)
                                         throws CanonicalizationException
Canonicalize an entire subtree
Overrides:
canonicalizeToStream in class Canonicalizer
Parameters:
source -
Returns:
Throws:
CanonicalizationException

canonicalizeToStream

public java.io.InputStream canonicalizeToStream(java.util.Collection source)
                                         throws CanonicalizationException
Description copied from class: Canonicalizer
Canonicalizes the given Collection, returning the resulting XML octets in UTF-8 encoding.
Overrides:
canonicalizeToStream 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

canonicalizeToStream

public java.io.InputStream canonicalizeToStream(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.
Overrides:
canonicalizeToStream in class Canonicalizer
Parameters:
source - An org.w3c.dom.NodeList to be canonicalized.
Returns:
An InputStream containing the canonicalized octets of the input node list.
Throws:
CanonicalizationException

canonicalizeToStream

public java.io.InputStream canonicalizeToStream(NodeReader nodeReader)
                                         throws CanonicalizationException
Throws:
CanonicalizationException

canonicalizeToStream

public void canonicalizeToStream(NodeReader nodeReader,
                                 java.io.OutputStream os)

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

canonicalizeToStream

public java.io.InputStream canonicalizeToStream(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.
Overrides:
canonicalizeToStream in class Canonicalizer
Parameters:
source - An org.xml.sax.InputSource containing the XML to be canonicalized.
Returns:
A input stream containing the canonicalized octets of the input XML.
Throws:
CanonicalizationException

canonicalizeToStream

public java.io.InputStream canonicalizeToStream(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.
Overrides:
canonicalizeToStream 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:
An input stream containing the canonicalized octets of the input XML.
Throws:
CanonicalizationException

canonicalizeToStream

public java.io.InputStream canonicalizeToStream(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.
Overrides:
canonicalizeToStream in class Canonicalizer
Parameters:
source - A java.io.InputStream containing the XML to be canonicalized.
Returns:
An InputStream 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

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(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(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

Skip navigation links

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

E10680-04


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