|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.apache.xml.security.utils.ElementProxy
|
+--org.apache.xml.security.utils.SignatureElementProxy
|
+--org.apache.xml.security.transforms.Transform
Implements the behaviour of the ds:Transform element.
This Transform(Factory) class role as the Factory and Proxy of
implemanting class that have the functionality of a Transform
algorithm.
Implements the Factory and Proxy pattern for ds:Transform algorithms.
Transforms,
TransformSpi,
Canonicalizer| Field Summary | |
protected TransformSpi |
transformSpi
Field transformSpi |
| Fields inherited from class org.apache.xml.security.utils.ElementProxy |
_baseURI, _constructionElement, _doc, _state, MODE_CREATE, MODE_DECRYPT, MODE_ENCRYPT, MODE_PROCESS, MODE_SIGN, MODE_UNKNOWN, MODE_VERIFY |
| Constructor Summary | |
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)
This constructor can only be called from the Transforms object, so
it's protected. |
|
| Method Summary | |
java.lang.String |
getBaseLocalName()
Returns the localname of the Elements of the sub-class. |
static Transform |
getInstance(org.w3c.dom.Document doc,
java.lang.String algorithmURI)
Generates a Transform object that implements the specified Transform algorithm URI. |
static Transform |
getInstance(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. |
static Transform |
getInstance(org.w3c.dom.Document doc,
java.lang.String algorithmURI,
org.w3c.dom.NodeList contextNodes)
Generates a Transform object that implements the specified Transform algorithm URI. |
java.lang.String |
getURI()
Returns the URI representation of Transformation algorithm |
static void |
init()
Initalizes for this Transform |
XMLSignatureInput |
performTransform(XMLSignatureInput input)
Transforms the input, and generats XMLSignatureInput as output. |
static void |
register(java.lang.String algorithmURI,
java.lang.String implementingClass)
Registers implementing class of the Transform algorithm with algorithmURI |
| Methods inherited from class org.apache.xml.security.utils.SignatureElementProxy |
getBaseNamespace |
| Methods inherited from class org.apache.xml.security.utils.ElementProxy |
addBase64Element, addBase64Text, addBigIntegerElement, addText, addTextElement, createElementForFamily, getBaseURI, getBigIntegerFromChildElement, getBytesFromChildElement, getBytesFromTextChild, getChildElementLocalName, getDefaultPrefix, getDocument, getElement, getElementPlusReturns, getTextFromChildElement, getTextFromTextChild, guaranteeThatElementInCorrectSpace, length, setDefaultPrefix, setElement, setXPathNamespaceContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected TransformSpi transformSpi
| Constructor Detail |
public Transform(org.w3c.dom.Document doc,
java.lang.String algorithmURI,
org.w3c.dom.NodeList contextNodes)
throws InvalidTransformException
Transform
doc - the Document in which Transform will be placedalgorithmURI - URI representation of Transform algorithm will be specified as parameter of getInstance(org.w3c.dom.Document, java.lang.String), when generate. contextNodes - the child node list of Transform element
InvalidTransformException
public Transform(org.w3c.dom.Element element,
java.lang.String BaseURI)
throws InvalidTransformException,
TransformationException,
XMLSecurityException
Transforms object, so
it's protected.
element - ds:Transform elementBaseURI - the URI of the resource where the XML instance was stored
InvalidTransformException
TransformationException
XMLSecurityException| Method Detail |
public static final Transform getInstance(org.w3c.dom.Document doc,
java.lang.String algorithmURI)
throws InvalidTransformException
Transform algorithm URI.
algorithmURI - Transform algorithm URI representation, such as specified in Transform algorithm doc - the proxy Document
Transform object
InvalidTransformException
public static final Transform getInstance(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 Document
Transform object
InvalidTransformException
public static final Transform getInstance(org.w3c.dom.Document doc,
java.lang.String algorithmURI,
org.w3c.dom.NodeList contextNodes)
throws InvalidTransformException
Transform algorithm URI.
algorithmURI - Transform algorithm URI form, such as specified in Transform algorithm contextNodes - the child node list of Transform elementdoc - the proxy Document
Transform object
InvalidTransformExceptionpublic static void init()
Transform
public static void register(java.lang.String algorithmURI,
java.lang.String implementingClass)
throws AlgorithmAlreadyRegisteredException
algorithmURI - algorithmURI URI representation of Transform algorithm will be specified as parameter of getInstance(org.w3c.dom.Document, java.lang.String), when generate. implementingClass - implementingClass the implementing class of TransformSpi
AlgorithmAlreadyRegisteredException - if specified algorithmURI is already registeredpublic final 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 Octect Stream and NodeSet as Input of Transformation
XMLSignatureInput class as the result of transformation
CanonicalizationException
java.io.IOException
InvalidCanonicalizerException
TransformationExceptionpublic java.lang.String getBaseLocalName()
ElementProxy
getBaseLocalName in class ElementProxy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||