|
||||||||||
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.Transform
public final class Transform
Implements the behaviour of the ds:Transform
element.
This Transform
(Factory) class acts as the Factory and Proxy of
the implementing class that supports the functionality of a Transform
algorithm.
Implements the Factory and Proxy pattern for ds:Transform algorithms.
Transforms
,
TransformSpi
Field Summary |
---|
Fields inherited from class org.apache.xml.security.utils.ElementProxy |
---|
baseURI |
Constructor Summary | |
---|---|
Transform(Document doc,
String algorithmURI)
Generates a Transform object that implements the specified Transform algorithm URI. |
|
Transform(Document doc,
String algorithmURI,
Element contextChild)
Generates a Transform object that implements the specified Transform algorithm URI. |
|
Transform(Document doc,
String algorithmURI,
NodeList contextNodes)
Constructs Transform |
|
Transform(Element element,
String BaseURI)
|
Method Summary | |
---|---|
String |
getBaseLocalName()
Returns the localname of the Elements of the sub-class. |
String |
getURI()
Returns the URI representation of Transformation algorithm |
XMLSignatureInput |
performTransform(XMLSignatureInput input)
Transforms the input, and generates XMLSignatureInput as output. |
XMLSignatureInput |
performTransform(XMLSignatureInput input,
OutputStream os)
Transforms the input, and generates XMLSignatureInput as output. |
static void |
register(String algorithmURI,
Class<? extends TransformSpi> implementingClass)
Registers implementing class of the Transform algorithm with algorithmURI |
static void |
register(String algorithmURI,
String implementingClass)
Registers implementing class of the Transform algorithm with algorithmURI |
static void |
registerDefaultAlgorithms()
This method registers the default algorithms. |
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 |
Constructor Detail |
---|
public Transform(Document doc, String algorithmURI) throws InvalidTransformException
Transform algorithm
URI.
doc
- the proxy Document
algorithmURI
- Transform algorithm
URI representation,
such as specified in
Transform algorithm
InvalidTransformException
public Transform(Document doc, String algorithmURI, Element contextChild) throws InvalidTransformException
Transform algorithm
URI.
algorithmURI
- Transform algorithm
URI representation,
such as specified in
Transform algorithm contextChild
- the child element of Transform
elementdoc
- the proxy Document
InvalidTransformException
public Transform(Document doc, String algorithmURI, NodeList contextNodes) throws InvalidTransformException
Transform
doc
- the Document
in which Transform
will be
placedalgorithmURI
- URI representation of Transform algorithm
contextNodes
- the child node list of Transform
element
InvalidTransformException
public Transform(Element element, String BaseURI) throws InvalidTransformException, TransformationException, XMLSecurityException
element
- ds:Transform
elementBaseURI
- the URI of the resource where the XML instance was stored
InvalidTransformException
TransformationException
XMLSecurityException
Method Detail |
---|
public static void register(String algorithmURI, String implementingClass) throws AlgorithmAlreadyRegisteredException, ClassNotFoundException, InvalidTransformException
algorithmURI
- algorithmURI URI representation of Transform algorithm
implementingClass
- implementingClass
the implementing
class of TransformSpi
AlgorithmAlreadyRegisteredException
- if specified algorithmURI
is already registered
ClassNotFoundException
InvalidTransformException
public static void register(String algorithmURI, Class<? extends TransformSpi> implementingClass) throws AlgorithmAlreadyRegisteredException
algorithmURI
- algorithmURI URI representation of Transform algorithm
implementingClass
- implementingClass
the implementing
class of TransformSpi
AlgorithmAlreadyRegisteredException
- if specified algorithmURI
is already registeredpublic static void registerDefaultAlgorithms()
public String getURI()
public XMLSignatureInput performTransform(XMLSignatureInput input) throws IOException, CanonicalizationException, InvalidCanonicalizerException, TransformationException
XMLSignatureInput
as output.
input
- input XMLSignatureInput
which can supplied Octet
Stream and NodeSet as Input of Transformation
XMLSignatureInput
class as the result of
transformation
CanonicalizationException
IOException
InvalidCanonicalizerException
TransformationException
public XMLSignatureInput performTransform(XMLSignatureInput input, OutputStream os) throws IOException, CanonicalizationException, InvalidCanonicalizerException, TransformationException
XMLSignatureInput
as output.
input
- input XMLSignatureInput
which can supplied Octect
Stream and NodeSet as Input of Transformationos
- where to output the result of the last transformation
XMLSignatureInput
class as the result of
transformation
CanonicalizationException
IOException
InvalidCanonicalizerException
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 |