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 DSSDocument
getContents()
Gets the original referenced document contentDigestAlgorithm
getDigestMethodAlgorithm()
Gets DigestAlgorithm to use for digest value computationString
getId()
Gets Id attribute of the referenceList<DSSTransform>
getTransforms()
Gets a list of transforms to performString
getType()
Gets Type attribute of the referenceString
getUri()
Gets URI attribute of the referencevoid
setContents(DSSDocument contents)
Sets the original referenced document contentvoid
setDigestMethodAlgorithm(DigestAlgorithm digestMethod)
Sets DigestAlgorithm to use for digest value computationvoid
setId(String id)
Sets Id attribute of the referencevoid
setTransforms(List<DSSTransform> transforms)
Sets a list of transforms to performvoid
setType(String type)
Sets Type attribute of the referencevoid
setUri(String uri)
Sets URI attribute of the referenceString
toString()
-
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
DSSTransform
s
-
setTransforms
Sets a list of transforms to perform- Parameters:
transforms
- a list ofDSSTransform
s
-
getContents
Gets the original referenced document content- Returns:
DSSDocument
-
setContents
Sets the original referenced document content- Parameters:
contents
-DSSDocument
-
toString
-