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| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBaseLocalName()
Returns the localname of the Elements of the sub-class.
|
String |
getURI()
Returns the URI representation of Transformation algorithm
|
boolean |
isSecureValidation() |
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.
|
void |
setSecureValidation(boolean secureValidation) |
getBaseNamespaceaddBase64Element, addBase64Text, addBigIntegerElement, addReturnToSelf, addText, addTextElement, appendOther, appendSelf, appendSelf, createElementForFamily, createElementForFamilyLocal, createText, getBaseURI, getBigIntegerFromChildElement, getBytesFromTextChild, getDefaultPrefix, getDocument, getElement, getElementPlusReturns, getFirstChild, getLocalAttribute, getTextFromChildElement, getTextFromTextChild, length, registerDefaultPrefixes, setDefaultPrefix, setDocument, setElement, setElement, setLocalAttribute, setLocalIdAttribute, setXPathNamespaceContextpublic Transform(Document doc, String algorithmURI) throws InvalidTransformException
Transform algorithm URI.doc - the proxy DocumentalgorithmURI - Transform algorithm URI representation,
such as specified in
Transform algorithm InvalidTransformExceptionpublic 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 DocumentInvalidTransformExceptionpublic Transform(Document doc, String algorithmURI, 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(Element element, String baseURI) throws InvalidTransformException, TransformationException, XMLSecurityException
element - ds:Transform elementbaseURI - the URI of the resource where the XML instance was storedInvalidTransformExceptionTransformationExceptionXMLSecurityExceptionpublic static void register(String algorithmURI, String implementingClass) throws AlgorithmAlreadyRegisteredException, ClassNotFoundException, InvalidTransformException
algorithmURI - algorithmURI URI representation of Transform algorithmimplementingClass - implementingClass the implementing
class of TransformSpiAlgorithmAlreadyRegisteredException - if specified algorithmURI
is already registeredSecurityException - if a security manager is installed and the
caller does not have permission to register the transformClassNotFoundExceptionInvalidTransformExceptionpublic static void register(String algorithmURI, Class<? extends TransformSpi> implementingClass) throws AlgorithmAlreadyRegisteredException
algorithmURI - algorithmURI URI representation of Transform algorithmimplementingClass - implementingClass the implementing
class of TransformSpiAlgorithmAlreadyRegisteredException - if specified algorithmURI
is already registeredSecurityException - if a security manager is installed and the
caller does not have permission to register the transformpublic 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 TransformationXMLSignatureInput class as the result of
transformationCanonicalizationExceptionIOExceptionInvalidCanonicalizerExceptionTransformationExceptionpublic 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 transformationXMLSignatureInput class as the result of
transformationCanonicalizationExceptionIOExceptionInvalidCanonicalizerExceptionTransformationExceptionpublic String getBaseLocalName()
ElementProxygetBaseLocalName in class ElementProxypublic boolean isSecureValidation()
public void setSecureValidation(boolean secureValidation)
Copyright © 2000–2016 The Apache Software Foundation. All rights reserved.