Class AbstractTransform
java.lang.Object
eu.europa.esig.dss.xades.reference.AbstractTransform
- All Implemented Interfaces:
DSSTransform
- Direct Known Subclasses:
Base64Transform,ComplexTransform,EnvelopedSignatureTransform
public abstract class AbstractTransform extends Object implements DSSTransform
The abstract implementation of a transfrom
-
Field Summary
Fields Modifier and Type Field Description protected StringalgorithmThe algorithm url stringprotected DSSNamespacenamespaceThe namespace -
Constructor Summary
Constructors Constructor Description AbstractTransform(DSSNamespace xmlDSigNamespace, String algorithm)Constructor with namespaceAbstractTransform(String algorithm)Default constructor -
Method Summary
Modifier and Type Method Description ElementcreateTransform(Document document, Element parentNode)Creates a Transform element DOM and appends it to theparentNodebooleanequals(Object obj)StringgetAlgorithm()Returns a particular transformation algorithm nameinthashCode()voidsetNamespace(DSSNamespace namespace)Specifies a namespace for the transformation elementsStringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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-Stringalgorithm url
-
AbstractTransform
Constructor with namespace- Parameters:
xmlDSigNamespace-DSSNamespacealgorithm-String
-
-
Method Details
-
getAlgorithm
Description copied from interface:DSSTransformReturns a particular transformation algorithm name- Specified by:
getAlgorithmin interfaceDSSTransform- Returns:
Stringalgorithm name of transformation
-
setNamespace
Description copied from interface:DSSTransformSpecifies a namespace for the transformation elements- Specified by:
setNamespacein interfaceDSSTransform- Parameters:
namespace-DSSNamespaceuri
-
createTransform
Description copied from interface:DSSTransformCreates a Transform element DOM and appends it to theparentNode- Specified by:
createTransformin interfaceDSSTransform- Parameters:
document-Documentto add transform forparentNode-Elementto append transform to- Returns:
- created transform
Element
-
hashCode
public int hashCode() -
equals
-
toString
-