oracle.security.xmlsec.transform
Class XSLTTransform
java.lang.Object
oracle.security.xmlsec.transform.XSTransformer
oracle.security.xmlsec.transform.XSLTTransform
- public class XSLTTransform
- extends XSTransformer
Internal use only. Applies XSLT Transformation as a XML-DSIG Transform.
Method Summary |
byte[] |
applyXSLT(java.io.InputStream source)
Applies the transform's XSLT stylesheet to the given XML source and returns the resulting octets. |
java.lang.String |
getAlgorithmURI()
Returns the URI string identifying the Transform algorithm. |
protected XMLContainer |
transform(XMLContainer source)
Applies a XSLT stylesheet transformation to the given XMLContainer and returns the octet stream result in a new XMLContainer . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XSLTTransform
public XSLTTransform(XSAlgorithmIdentifier trans)
- Creates a new
XSLTTransform
instance.
- Parameters:
trans
- A XSAlgorithmIdentifier
object containing exactly one stylesheet element parameter.
- Throws:
java.lang.IllegalArgumentException
- If the XSAlgorithmIdentifier
is not a valid XSLT Transform.
applyXSLT
public byte[] applyXSLT(java.io.InputStream source)
throws javax.xml.transform.TransformerException
- Applies the transform's XSLT stylesheet to the given XML source and returns the resulting octets.
-
- Parameters:
source
- An InputStream
containing the octets of the XML to be transformed.
- Returns:
- A byte array containing the results of the transformation.
- Throws:
javax.xml.transform.TransformerException
- If an error occurs while performing the XSLT transformation.
- Since:
- 2.0
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
protected XMLContainer transform(XMLContainer source)
throws TransformationException
- Applies a XSLT stylesheet transformation to the given
XMLContainer
and returns the octet stream result in 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.
Copyright © 2005 , Oracle. All rights reserved.