com.sun.org.apache.xml.internal.security.transforms.Transform steps to
be performed on the data.
The input to the first Transform is the result of dereferencing the
URI attribute of the Reference element.
The output from the last Transform is the input for the
DigestMethod algorithm
Transform, com.sun.org.apache.xml.internal.security.signature.Reference
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| private boolean | |
| public static final String | TRANSFORM_BASE64_DECODE
Transform - Required base64 decoding |
| public static final String | TRANSFORM_C14N11_OMIT_COMMENTS
Canonicalization - Required Canonical XML 1.1 (omits comments) |
| public static final String | TRANSFORM_C14N11_WITH_COMMENTS
Canonicalization - Recommended Canonical XML 1.1 with Comments |
| public static final String | TRANSFORM_C14N_EXCL_OMIT_COMMENTS
Canonicalization - Required Exclusive Canonicalization (omits comments) |
| public static final String | TRANSFORM_C14N_EXCL_WITH_COMMENTS
Canonicalization - Recommended Exclusive Canonicalization with Comments |
| public static final String | TRANSFORM_C14N_OMIT_COMMENTS
Canonicalization - Required Canonical XML (omits comments) |
| public static final String | TRANSFORM_C14N_WITH_COMMENTS
Canonicalization - Recommended Canonical XML with Comments |
| public static final String | TRANSFORM_ENVELOPED_SIGNATURE
Transform - Required Enveloped Signature |
| public static final String | TRANSFORM_XPATH
Transform - Recommended XPath |
| public static final String | TRANSFORM_XPATH2FILTER
Transform - XPath Filter |
| public static final String | TRANSFORM_XPOINTER
Transform - XPointer |
| public static final String | TRANSFORM_XSLT
Transform - Optional XSLT |
| private Element[] |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | |
| public | Transforms(Element
is element, String Transforms elementthe URI where the XML instance was stored baseURI)Constructs |
| Modifier and Type | Method and Description |
|---|---|
| public void | addTransform(String
the URI form of transform that indicates which
transformation is applied to data transformURI)Adds the |
| public void | addTransform(String
the URI form of transform that indicates which
transformation is applied to data transformURI, Element contextElement)Adds the |
| public void | addTransform(String
the URI form of transform that indicates which
transformation is applied to data transformURI, NodeList contextNodes)Adds the |
| private void | |
| private void | |
| public String | getBaseLocalName()
Implements abstract com. Returns the localname of the Elements of the sub-class. |
| public int | |
| private void | |
| public Transform | |
| public XMLSignatureInput | Returns: the result of theTransformsthe input for the xmlSignatureInput)TransformsApplies all included |
| public XMLSignatureInput | Returns: the result of theTransformsthe input for the xmlSignatureInput, OutputStream Transformswhere to output the last transformation. os)Applies all included |
| public void |
| LOG | back to summary |
|---|---|
| private static final Logger LOG Hides com. | |
| secureValidation | back to summary |
|---|---|
| private boolean secureValidation | |
| TRANSFORM_BASE64_DECODE | back to summary |
|---|---|
| public static final String TRANSFORM_BASE64_DECODE Transform - Required base64 decoding | |
| TRANSFORM_C14N11_OMIT_COMMENTS | back to summary |
|---|---|
| public static final String TRANSFORM_C14N11_OMIT_COMMENTS Canonicalization - Required Canonical XML 1.1 (omits comments) | |
| TRANSFORM_C14N11_WITH_COMMENTS | back to summary |
|---|---|
| public static final String TRANSFORM_C14N11_WITH_COMMENTS Canonicalization - Recommended Canonical XML 1.1 with Comments | |
| TRANSFORM_C14N_EXCL_OMIT_COMMENTS | back to summary |
|---|---|
| public static final String TRANSFORM_C14N_EXCL_OMIT_COMMENTS Canonicalization - Required Exclusive Canonicalization (omits comments) | |
| TRANSFORM_C14N_EXCL_WITH_COMMENTS | back to summary |
|---|---|
| public static final String TRANSFORM_C14N_EXCL_WITH_COMMENTS Canonicalization - Recommended Exclusive Canonicalization with Comments | |
| TRANSFORM_C14N_OMIT_COMMENTS | back to summary |
|---|---|
| public static final String TRANSFORM_C14N_OMIT_COMMENTS Canonicalization - Required Canonical XML (omits comments) | |
| TRANSFORM_C14N_WITH_COMMENTS | back to summary |
|---|---|
| public static final String TRANSFORM_C14N_WITH_COMMENTS Canonicalization - Recommended Canonical XML with Comments | |
| TRANSFORM_ENVELOPED_SIGNATURE | back to summary |
|---|---|
| public static final String TRANSFORM_ENVELOPED_SIGNATURE Transform - Required Enveloped Signature | |
| TRANSFORM_XPATH | back to summary |
|---|---|
| public static final String TRANSFORM_XPATH Transform - Recommended XPath | |
| TRANSFORM_XPATH2FILTER | back to summary |
|---|---|
| public static final String TRANSFORM_XPATH2FILTER Transform - XPath Filter | |
| TRANSFORM_XPOINTER | back to summary |
|---|---|
| public static final String TRANSFORM_XPOINTER Transform - XPointer | |
| TRANSFORM_XSLT | back to summary |
|---|---|
| public static final String TRANSFORM_XSLT Transform - Optional XSLT | |
| transformsElement | back to summary |
|---|---|
| private Element[] transformsElement | |
| Transforms | back to summary |
|---|---|
| protected Transforms() | |
| Transforms | back to summary |
|---|---|
| public Transforms(Document doc) Constructs | |
| Transforms | back to summary |
|---|---|
| public Transforms(Element element, String baseURI) throws DOMException, XMLSignatureException, InvalidTransformException, TransformationException, XMLSecurityException Constructs | |
| addTransform | back to summary |
|---|---|
| public void addTransform(String transformURI) throws TransformationException Adds the
| |
| addTransform | back to summary |
|---|---|
| public void addTransform(String transformURI, Element contextElement) throws TransformationException Adds the
| |
| addTransform | back to summary |
|---|---|
| public void addTransform(String transformURI, NodeList contextNodes) throws TransformationException Adds the
| |
| addTransform | back to summary |
|---|---|
| private void addTransform(Transform transform) Adds a user-provided Transform step. | |
| checkSecureValidation | back to summary |
|---|---|
| private void checkSecureValidation(Transform transform) throws TransformationException | |
| getBaseLocalName | back to summary |
|---|---|
| public String getBaseLocalName() Implements abstract com. Doc from com. Returns the localname of the Elements of the sub-class. | |
| getLength | back to summary |
|---|---|
| public int getLength() Return the nonnegative number of transformations.
| |
| initTransforms | back to summary |
|---|---|
| private void initTransforms() | |
| item | back to summary |
|---|---|
| public Transform item(int i) throws TransformationException Return the ith | |
| performTransforms | back to summary |
|---|---|
| public XMLSignatureInput performTransforms(XMLSignatureInput xmlSignatureInput) throws TransformationException Applies all included
| |
| performTransforms | back to summary |
|---|---|
| public XMLSignatureInput performTransforms(XMLSignatureInput xmlSignatureInput, OutputStream os) throws TransformationException Applies all included
| |
| setSecureValidation | back to summary |
|---|---|
| public void setSecureValidation(boolean secureValidation) Set whether secure validation is enabled or not. The default is false. | |