Class DSSReference
java.lang.Object
eu.europa.esig.dss.xades.reference.DSSReference
public class DSSReference extends Object
Defines a ds:Reference element to be built
-
Constructor Summary
Constructors Constructor Description DSSReference()The default constructor -
Method Summary
Modifier and Type Method Description DSSDocumentgetContents()Gets the original referenced document contentDigestAlgorithmgetDigestMethodAlgorithm()Gets DigestAlgorithm to use for digest value computationStringgetId()Gets Id attribute of the referenceList<DSSTransform>getTransforms()Gets a list of transforms to performStringgetType()Gets Type attribute of the referenceStringgetUri()Gets URI attribute of the referencevoidsetContents(DSSDocument contents)Sets the original referenced document contentvoidsetDigestMethodAlgorithm(DigestAlgorithm digestMethod)Sets DigestAlgorithm to use for digest value computationvoidsetId(String id)Sets Id attribute of the referencevoidsetTransforms(List<DSSTransform> transforms)Sets a list of transforms to performvoidsetType(String type)Sets Type attribute of the referencevoidsetUri(String uri)Sets URI attribute of the referenceStringtoString()
-
Constructor Details
-
DSSReference
public DSSReference()The default constructor
-
-
Method Details
-
getId
Gets Id attribute of the reference- Returns:
String
-
setId
Sets Id attribute of the reference- Parameters:
id-String
-
getUri
Gets URI attribute of the reference- Returns:
String
-
setUri
Sets URI attribute of the reference- Parameters:
uri-String
-
getType
Gets Type attribute of the reference- Returns:
String
-
setType
Sets Type attribute of the reference- Parameters:
type-String
-
getDigestMethodAlgorithm
Gets DigestAlgorithm to use for digest value computation- Returns:
DigestAlgorithm
-
setDigestMethodAlgorithm
Sets DigestAlgorithm to use for digest value computation- Parameters:
digestMethod-DigestAlgorithm
-
getTransforms
Gets a list of transforms to perform- Returns:
- a list of
DSSTransforms
-
setTransforms
Sets a list of transforms to perform- Parameters:
transforms- a list ofDSSTransforms
-
getContents
Gets the original referenced document content- Returns:
DSSDocument
-
setContents
Sets the original referenced document content- Parameters:
contents-DSSDocument
-
toString
-