public final class Transform extends SignatureElementProxy
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,
TransformSpibaseURI, constructionElement, doc| Constructor and Description |
|---|
Transform(org.w3c.dom.Document doc,
java.lang.String algorithmURI)
Generates a Transform object that implements the specified
Transform algorithm URI. |
Transform(org.w3c.dom.Document doc,
java.lang.String algorithmURI,
org.w3c.dom.Element contextChild)
Generates a Transform object that implements the specified
Transform algorithm URI. |
Transform(org.w3c.dom.Document doc,
java.lang.String algorithmURI,
org.w3c.dom.NodeList contextNodes)
Constructs
Transform |
Transform(org.w3c.dom.Element element,
java.lang.String BaseURI) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBaseLocalName()
Returns the localname of the Elements of the sub-class.
|
java.lang.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,
java.io.OutputStream os)
Transforms the input, and generates
XMLSignatureInput as output. |
static void |
register(java.lang.String algorithmURI,
java.lang.Class<? extends TransformSpi> implementingClass)
Registers implementing class of the Transform algorithm with algorithmURI
|
static void |
register(java.lang.String algorithmURI,
java.lang.String implementingClass)
Registers implementing class of the Transform algorithm with algorithmURI
|
static void |
registerDefaultAlgorithms()
This method registers the default algorithms.
|
getBaseNamespaceaddBase64Element, addBase64Text, addBigIntegerElement, addText, addTextElement, createElementForFamily, createElementForFamilyLocal, getBaseURI, getBigIntegerFromChildElement, getBytesFromChildElement, getBytesFromTextChild, getDefaultPrefix, getDocument, getElement, getElementPlusReturns, getTextFromChildElement, getTextFromTextChild, length, registerDefaultPrefixes, setDefaultPrefix, setElement, setXPathNamespaceContextpublic Transform(org.w3c.dom.Document doc,
java.lang.String algorithmURI)
throws InvalidTransformException
Transform algorithm URI.doc - the proxy DocumentalgorithmURI - Transform algorithm URI representation,
such as specified in
Transform algorithm InvalidTransformExceptionpublic Transform(org.w3c.dom.Document doc,
java.lang.String algorithmURI,
org.w3c.dom.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 DocumentInvalidTransformExceptionpublic Transform(org.w3c.dom.Document doc,
java.lang.String algorithmURI,
org.w3c.dom.NodeList contextNodes)
throws InvalidTransformException
Transformdoc - the Document in which Transform will be
placedalgorithmURI - URI representation of Transform algorithmcontextNodes - the child node list of Transform elementInvalidTransformExceptionpublic Transform(org.w3c.dom.Element element,
java.lang.String BaseURI)
throws InvalidTransformException,
TransformationException,
XMLSecurityException
element - ds:Transform elementBaseURI - the URI of the resource where the XML instance was storedInvalidTransformExceptionTransformationExceptionXMLSecurityExceptionpublic static void register(java.lang.String algorithmURI,
java.lang.String implementingClass)
throws AlgorithmAlreadyRegisteredException,
java.lang.ClassNotFoundException,
InvalidTransformException
algorithmURI - algorithmURI URI representation of Transform algorithmimplementingClass - implementingClass the implementing
class of TransformSpiAlgorithmAlreadyRegisteredException - if specified algorithmURI
is already registeredjava.lang.ClassNotFoundExceptionInvalidTransformExceptionpublic static void register(java.lang.String algorithmURI,
java.lang.Class<? extends TransformSpi> implementingClass)
throws AlgorithmAlreadyRegisteredException
algorithmURI - algorithmURI URI representation of Transform algorithmimplementingClass - implementingClass the implementing
class of TransformSpiAlgorithmAlreadyRegisteredException - if specified algorithmURI
is already registeredpublic static void registerDefaultAlgorithms()
public java.lang.String getURI()
public XMLSignatureInput performTransform(XMLSignatureInput input) throws java.io.IOException, CanonicalizationException, InvalidCanonicalizerException, TransformationException
XMLSignatureInput as output.input - input XMLSignatureInput which can supplied Octet
Stream and NodeSet as Input of TransformationXMLSignatureInput class as the result of
transformationCanonicalizationExceptionjava.io.IOExceptionInvalidCanonicalizerExceptionTransformationExceptionpublic XMLSignatureInput performTransform(XMLSignatureInput input, java.io.OutputStream os) throws java.io.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 transformationXMLSignatureInput class as the result of
transformationCanonicalizationExceptionjava.io.IOExceptionInvalidCanonicalizerExceptionTransformationExceptionpublic java.lang.String getBaseLocalName()
ElementProxygetBaseLocalName in class ElementProxy