Skip navigation links
oracle.security.xmlsec.transform
Class C14NTransform
java.lang.Object
oracle.security.xmlsec.transform.XSTransformer
oracle.security.xmlsec.transform.C14NTransform
- All Implemented Interfaces:
- NodeToStreamTransform
- Direct Known Subclasses:
- C14NTransform.C14N11Transform, C14NWithCommentsTransform
-
public class C14NTransform
- extends XSTransformer
- implements NodeToStreamTransform
Internal use only. Applies Canonical XML version 1.0 (XML-C14N) as a Transform.
Method Summary |
java.lang.String |
getAlgorithmURI()
Returns the URI string identifying the Transform algorithm. |
XMLContainer |
transform(XMLContainer source)
Applies the Canonical XML transformation to the given XMLContainer and returns the octet stream result a new XMLContainer . |
java.io.InputStream |
transformToStream(NodeReader source)
transform method that does not actually do the transform, but only sets up things. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
c14n
protected Canonicalizer c14n
C14NTransform
public C14NTransform()
- Creates a new
C14NTransform
instance.
C14NTransform
public C14NTransform(XSAlgorithmIdentifier trans)
- Creates a new
C14NTransform
instance.
- Parameters:
trans
- A XSAlgorithmIdentifier
object containing no parameter element.
- Throws:
java.lang.IllegalArgumentException
- If the XSAlgorithmIdentifier
is not a valid XML-C14N Transform.
getAlgorithmURI
public java.lang.String getAlgorithmURI()
- Description copied from class:
XSTransformer
- Returns the URI string identifying the Transform algorithm.
-
- Specified by:
getAlgorithmURI
in class XSTransformer
-
- Returns:
- This Transform's URI string.
transform
public XMLContainer transform(XMLContainer source)
throws TransformationException
- Applies the Canonical XML transformation to the given
XMLContainer
and returns the octet stream result a new XMLContainer
.
-
- Specified by:
transform
in class XSTransformer
-
- Parameters:
source
- A XMLContainer
on which the transform will operate.
- Returns:
- A
XMLContainer
containing the transform octet stream result.
- Throws:
TransformationException
- if an error occurs during the transformation process.
transformToStream
public java.io.InputStream transformToStream(NodeReader source)
throws TransformationException
- Description copied from interface:
NodeToStreamTransform
- transform method that does not actually do the transform, but only sets up things. The actual transform should be done when somebody reads from the InputStream
-
- Specified by:
transformToStream
in interface NodeToStreamTransform
-
- Returns:
- Throws:
TransformationException
Skip navigation links
Copyright © 2005, 2009, Oracle. All rights reserved.