Class AbstractTransform
- java.lang.Object
-
- eu.europa.esig.dss.xades.reference.AbstractTransform
-
- All Implemented Interfaces:
DSSTransform
- Direct Known Subclasses:
Base64Transform,CanonicalizationTransform,ComplexTransform,EnvelopedSignatureTransform
public abstract class AbstractTransform extends Object implements DSSTransform
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringalgorithmstatic StringALGORITHM_ATTRIBUTE_NAMEstatic StringDS_TRANSFORMprotected Stringnamespace
-
Constructor Summary
Constructors Constructor Description AbstractTransform(String algorithm)
-
Method Summary
Modifier and Type Method Description ElementcreateTransform(Document document, Element parentNode)Creates a Transform element DOM and appends it to theparentNodeStringgetAlgorithm()Returns a particular transformation algorithm namevoidsetNamespace(String namespace)Specifies a namespace for the transformation elements-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface eu.europa.esig.dss.xades.reference.DSSTransform
getBytesAfterTranformation
-
-
-
-
Field Detail
-
ALGORITHM_ATTRIBUTE_NAME
public static final String ALGORITHM_ATTRIBUTE_NAME
- See Also:
- Constant Field Values
-
DS_TRANSFORM
public static final String DS_TRANSFORM
- See Also:
- Constant Field Values
-
algorithm
protected final String algorithm
-
namespace
protected String namespace
-
-
Constructor Detail
-
AbstractTransform
public AbstractTransform(String algorithm)
-
-
Method Detail
-
getAlgorithm
public String getAlgorithm()
Description copied from interface:DSSTransformReturns a particular transformation algorithm name- Specified by:
getAlgorithmin interfaceDSSTransform- Returns:
Stringalgorithm name of transformation
-
setNamespace
public void setNamespace(String namespace)
Description copied from interface:DSSTransformSpecifies a namespace for the transformation elements- Specified by:
setNamespacein interfaceDSSTransform- Parameters:
namespace-Stringuri
-
createTransform
public Element createTransform(Document document, Element parentNode)
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
-
-