Class AbstractTransform
java.lang.Object
eu.europa.esig.dss.xades.reference.AbstractTransform
- All Implemented Interfaces:
DSSTransform
,Serializable
- Direct Known Subclasses:
Base64Transform
,ComplexTransform
,EnvelopedSignatureTransform
,SPDocDigestAsInSpecificationTransform
The abstract implementation of a transform
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected final String
The algorithm url stringprotected DSSNamespace
The namespace -
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractTransform
(DSSNamespace xmlDSigNamespace, String algorithm) Constructor with namespaceprotected
AbstractTransform
(String algorithm) Default constructor -
Method Summary
Modifier and TypeMethodDescriptioncreateTransform
(Document document, Element parentNode) Creates a Transform element DOM and appends it to theparentNode
boolean
Returns a particular transformation algorithm nameint
hashCode()
void
setNamespace
(DSSNamespace namespace) Specifies a namespace for the transformation elementstoString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface eu.europa.esig.dss.xades.reference.DSSTransform
getBytesAfterTransformation
-
Field Details
-
algorithm
The algorithm url string -
namespace
The namespace
-
-
Constructor Details
-
AbstractTransform
Default constructor- Parameters:
algorithm
-String
algorithm url
-
AbstractTransform
Constructor with namespace- Parameters:
xmlDSigNamespace
-DSSNamespace
algorithm
-String
-
-
Method Details
-
getAlgorithm
Description copied from interface:DSSTransform
Returns a particular transformation algorithm name- Specified by:
getAlgorithm
in interfaceDSSTransform
- Returns:
String
algorithm name of transformation
-
setNamespace
Description copied from interface:DSSTransform
Specifies a namespace for the transformation elements- Specified by:
setNamespace
in interfaceDSSTransform
- Parameters:
namespace
-DSSNamespace
uri
-
createTransform
Description copied from interface:DSSTransform
Creates a Transform element DOM and appends it to theparentNode
- Specified by:
createTransform
in interfaceDSSTransform
- Parameters:
document
-Document
to add transform forparentNode
-Element
to append transform to- Returns:
- created transform
Element
-
hashCode
public int hashCode() -
equals
-
toString
-