Class XmlPolicyWithTransforms
java.lang.Object
eu.europa.esig.dss.model.Policy
eu.europa.esig.dss.xades.signature.XmlPolicyWithTransforms
- All Implemented Interfaces:
Serializable
public class XmlPolicyWithTransforms extends Policy
This class represents an extension of
Policy class allowing addition
of a custom list of DSSTransforms to build the ds:Transforms element
NOTE: The digest should be computed by the user and set through the
setDigestValue(digestValue) method
Use DSSXMLUtils.applyTransforms(document, transforms) in order obtain
policy binaries after transforms- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description XmlPolicyWithTransforms()Default constructor -
Method Summary
Modifier and Type Method Description booleanequals(Object obj)List<DSSTransform>getTransforms()Gets the list of Transforms to incorporate into the signatureinthashCode()booleanisEmpty()Checks if the object's data is not filledvoidsetTransforms(List<DSSTransform> transforms)Sets the list of Transforms to incorporate into the signatureStringtoString()Methods inherited from class eu.europa.esig.dss.model.Policy
getDescription, getDigestAlgorithm, getDigestValue, getDocumentationReferences, getId, getQualifier, getSpuri, setDescription, setDigestAlgorithm, setDigestValue, setDocumentationReferences, setId, setQualifier, setSpuri
-
Constructor Details
-
XmlPolicyWithTransforms
public XmlPolicyWithTransforms()Default constructor
-
-
Method Details
-
getTransforms
Gets the list of Transforms to incorporate into the signature- Returns:
- a list of
DSSTransforms
-
setTransforms
Sets the list of Transforms to incorporate into the signature- Parameters:
transforms- a list ofDSSTransforms
-
isEmpty
public boolean isEmpty()Description copied from class:PolicyChecks if the object's data is not filled -
hashCode
public int hashCode() -
equals
-
toString
-