|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xml.security.utils.ElementProxy
org.apache.xml.security.utils.SignatureElementProxy
org.apache.xml.security.transforms.Transforms
public class Transforms
Holder of the 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
,
Reference
Field Summary | |
---|---|
static String |
TRANSFORM_BASE64_DECODE
Transform - Required base64 decoding |
static String |
TRANSFORM_C14N_EXCL_OMIT_COMMENTS
Canonicalization - Required Exclusive Canonicalization (omits comments) |
static String |
TRANSFORM_C14N_EXCL_WITH_COMMENTS
Canonicalization - Recommended Exclusive Canonicalization with Comments |
static String |
TRANSFORM_C14N_OMIT_COMMENTS
Canonicalization - Required Canonical XML (omits comments) |
static String |
TRANSFORM_C14N_WITH_COMMENTS
Canonicalization - Recommended Canonical XML with Comments |
static String |
TRANSFORM_C14N11_OMIT_COMMENTS
Canonicalization - Required Canonical XML 1.1 (omits comments) |
static String |
TRANSFORM_C14N11_WITH_COMMENTS
Canonicalization - Recommended Canonical XML 1.1 with Comments |
static String |
TRANSFORM_ENVELOPED_SIGNATURE
Transform - Required Enveloped Signature |
static String |
TRANSFORM_XPATH
Transform - Recommended XPath |
static String |
TRANSFORM_XPATH2FILTER
Transform - XPath Filter |
static String |
TRANSFORM_XPOINTER
Transform - XPointer |
static String |
TRANSFORM_XSLT
Transform - Optional XSLT |
Fields inherited from class org.apache.xml.security.utils.ElementProxy |
---|
baseURI |
Constructor Summary | |
---|---|
protected |
Transforms()
|
|
Transforms(Document doc)
Constructs Transforms . |
|
Transforms(Element element,
String BaseURI)
Constructs Transforms from Element which is
Transforms Element |
Method Summary | |
---|---|
void |
addTransform(String transformURI)
Adds the Transform with the specified Transform
algorithm URI |
void |
addTransform(String transformURI,
Element contextElement)
Adds the Transform with the specified Transform
algorithm URI |
void |
addTransform(String transformURI,
NodeList contextNodes)
Adds the Transform with the specified Transform
algorithm URI . |
String |
getBaseLocalName()
Returns the localname of the Elements of the sub-class. |
int |
getLength()
Return the nonnegative number of transformations. |
Transform |
item(int i)
Return the . |
XMLSignatureInput |
performTransforms(XMLSignatureInput xmlSignatureInput)
Applies all included Transform s to xmlSignatureInput and
returns the result of these transformations. |
XMLSignatureInput |
performTransforms(XMLSignatureInput xmlSignatureInput,
OutputStream os)
Applies all included Transform s to xmlSignatureInput and
returns the result of these transformations. |
void |
setSecureValidation(boolean secureValidation)
Set whether secure validation is enabled or not. |
Methods inherited from class org.apache.xml.security.utils.SignatureElementProxy |
---|
getBaseNamespace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TRANSFORM_C14N_OMIT_COMMENTS
public static final String TRANSFORM_C14N_WITH_COMMENTS
public static final String TRANSFORM_C14N11_OMIT_COMMENTS
public static final String TRANSFORM_C14N11_WITH_COMMENTS
public static final String TRANSFORM_C14N_EXCL_OMIT_COMMENTS
public static final String TRANSFORM_C14N_EXCL_WITH_COMMENTS
public static final String TRANSFORM_XSLT
public static final String TRANSFORM_BASE64_DECODE
public static final String TRANSFORM_XPATH
public static final String TRANSFORM_ENVELOPED_SIGNATURE
public static final String TRANSFORM_XPOINTER
public static final String TRANSFORM_XPATH2FILTER
Constructor Detail |
---|
protected Transforms()
public Transforms(Document doc)
Transforms
.
doc
- the Document
in which XMLSignature
will
be placedpublic Transforms(Element element, String BaseURI) throws DOMException, XMLSignatureException, InvalidTransformException, TransformationException, XMLSecurityException
Transforms
from Element
which is
Transforms
Element
element
- is Transforms
elementBaseURI
- the URI where the XML instance was stored
DOMException
InvalidTransformException
TransformationException
XMLSecurityException
XMLSignatureException
Method Detail |
---|
public void setSecureValidation(boolean secureValidation)
public void addTransform(String transformURI) throws TransformationException
Transform
with the specified Transform
algorithm URI
transformURI
- the URI form of transform that indicates which
transformation is applied to data
TransformationException
public void addTransform(String transformURI, Element contextElement) throws TransformationException
Transform
with the specified Transform
algorithm URI
transformURI
- the URI form of transform that indicates which
transformation is applied to datacontextElement
-
TransformationException
public void addTransform(String transformURI, NodeList contextNodes) throws TransformationException
Transform
with the specified Transform
algorithm URI
.
transformURI
- the URI form of transform that indicates which
transformation is applied to datacontextNodes
-
TransformationException
public XMLSignatureInput performTransforms(XMLSignatureInput xmlSignatureInput) throws TransformationException
Transform
s to xmlSignatureInput and
returns the result of these transformations.
xmlSignatureInput
- the input for the Transform
s
Transforms
TransformationException
public XMLSignatureInput performTransforms(XMLSignatureInput xmlSignatureInput, OutputStream os) throws TransformationException
Transform
s to xmlSignatureInput and
returns the result of these transformations.
xmlSignatureInput
- the input for the Transform
sos
- where to output the last transformation.
Transforms
TransformationException
public int getLength()
public Transform item(int i) throws TransformationException
Transform
.
Valid i
values are 0 to getLength()
-1
.
i
- index of Transform
to return
TransformationException
public String getBaseLocalName()
ElementProxy
getBaseLocalName
in class ElementProxy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |