|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.rsa.certj.xml.Transformer | +--com.rsa.certj.xml.dsig.EnvelopedTransformer
This class implements an enveloped transformation. It removes the entire signature element containing the enveloped transform algorithm T from the digest calculation of the reference element containing T. The entire string of characters used by an XML processor to match the signature with the XML production element is removed. The input for this transformation is an XPath node-set. If the input is an octet stream, it is converted to an XPath node-set before implementing the transformation.
The output of the transformation is equivalent to the output resulting from replacing T with an XPath transformation containing the following XPath parameter element:< XPath xmlns:dsig="&dsig;" > count(ancestor-or-self::dsig:Signature | here()/ancestor::dsig:Signature[1])> count(ancestor-or-self::dsig:Signature) </XPath>Copyright © RSA Security Inc., 2001-2002. All rights reserved.
See Also
Fields inherited from class com.rsa.certj.xml.Transformer |
BASE64_LIST, C14N_LIST, C14N_WITH_COMMENTS_LIST, ENVELOPED_SIGNATURE_LIST, XPATH_LIST |
Constructor Summary |
|
EnvelopedTransformer()
Generates an |
Method Summary |
|
clone()
Overrides the default |
|
getTransformAlgorithm()
Returns the transformation algorithm. |
|
byte[] |
performTransformation(byte[] input,
int inOffset,
int inputLength)
Processes the enveloped transformation using a
|
org.w3c.dom.NodeList |
performTransformation(org.w3c.dom.NodeList inputNodes)
Processes the enveloped transformation using a node-set as input data. |
Methods inherited from class com.rsa.certj.xml.Transformer |
getAllTransformsInfo, getInstance |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EnvelopedTransformer()
EnvelopedTransformer
instance by initializing
the transformation algorithm to the default one defined in
Transformer
which is the first algorithm in
Transformer.ENVELOPED_SIGNATURE_LIST
.Method Detail |
public byte[] performTransformation(byte[] input, int inOffset, int inputLength) throws XMLException
byte
array as input data. It converts the array
to an XPath node-set, produces a node-set as a result of the
transformation, and then converts that node-set to
an octet stream.
Overrides
performTransformation
in class Transformer
Parameters
input | A | ||
inOffset | The starting index of input. | ||
inputLength | The size of input. |
Returns
byte
array.Throws
XMLException
- If an error occurs while performing the
transformation.public org.w3c.dom.NodeList performTransformation(org.w3c.dom.NodeList inputNodes) throws XMLException
Overrides
performTransformation
in class Transformer
Parameters
inputNodes | A |
Returns
NodeList
object
containing a transformed node-set.Throws
XMLException
- If an error occurs while performing the
transformation.public String getTransformAlgorithm()
Overrides
getTransformAlgorithm
in class Transformer
Returns
String
value.public Object clone() throws CloneNotSupportedException
clone
method to get a deeper clone.
Returns
EnvelopedTransformer
object,
a copy of this object.Throws
CloneNotSupportedException
- If the cloning operation
is not successful.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |