|
|||||||||
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.C14NTransformer
This class implements the canonical XML transformation without comments. It converts the input XML document or document subset to a canonical form. The input can be an octet stream or an XPath node-set. The canonical form of an XML document is described as follows:
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 |
|
C14NTransformer()
Generates a |
Method Summary |
|
clone()
Overrides the default |
|
getEncoding()
Returns the encoding. |
|
getTransformAlgorithm()
Returns the transformation algorithm. |
|
byte[] |
performTransformation(byte[] input,
int inOffset,
int inputLength)
Applies the canonicalization operation to the content data. |
org.w3c.dom.NodeList |
performTransformation(org.w3c.dom.NodeList inputNodes)
Processes the canonicalization operation on the content data. |
org.w3c.dom.NodeList |
performTransformation(org.w3c.dom.NodeList inputNodes,
String xpathExpression)
Processes the canonicalization operation on the content data based on the document subset expressions. |
void |
setEncoding(String encoding)
Sets the encoding. |
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 C14NTransformer()
C14NTransformer
instance by initializing
the transformation algorithm to the default algorithm, which is the
first one in Transformer.C14N_LIST
.Method Detail |
public String getTransformAlgorithm()
Overrides
getTransformAlgorithm
in class Transformer
Returns
String
object.public byte[] performTransformation(byte[] input, int inOffset, int inputLength) throws XMLException
byte
array as input
data and produces a byte
array as output.
Overrides
performTransformation
in class Transformer
Parameters
input | A | ||
inOffset | The starting index of the input data. | ||
inputLength | The size of the input data. |
Returns
byte
array containing the output of the
transformation.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 node-set on which to perform canonicalization. |
Returns
NodeList
object containing the canonical form of
the node-set.Throws
XMLException
- If an error occurs while performing the
canonicalization.public org.w3c.dom.NodeList performTransformation(org.w3c.dom.NodeList inputNodes, String xpathExpression) throws XMLException
Parameters
inputNodes | A node-set on which to perform canonicalization. | ||
xpathExpression | A subset expression, which is a
|
Returns
NodeList
object containing the canonical form of
the node-set.Throws
XMLException
- If an error occurs while performing the
canonicalization.public void setEncoding(String encoding)
Parameters
encoding | A |
public String getEncoding()
Returns
public Object clone() throws CloneNotSupportedException
clone
method to get a deeper clone.
Returns
C14NTransformer
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 |