Class DSSReference
java.lang.Object
eu.europa.esig.dss.xades.reference.DSSReference
- All Implemented Interfaces:
Serializable
Defines a ds:Reference element to be built
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the original referenced document contentGets DigestAlgorithm to use for digest value computationgetId()
Gets Id attribute of the referenceGets ds:Object element's structure to be incorporated within the signatureGets a list of transforms to performgetType()
Gets Type attribute of the referencegetUri()
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 computation Default : DigestAlgorithm.SHA256void
Sets Id attribute of the referencevoid
Sets the pre-defined ds:Object element to be incorporated within the signature.void
setTransforms
(List<DSSTransform> transforms) Sets a list of transforms to performvoid
Sets Type attribute of the referencevoid
Sets URI attribute of the referencetoString()
-
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 Default : DigestAlgorithm.SHA256- 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
-
getObject
Gets ds:Object element's structure to be incorporated within the signature- Returns:
DSSObject
-
setObject
Sets the pre-defined ds:Object element to be incorporated within the signature. NOTE : if not set, the basic ds:Object creation will be proceeded, when required- Parameters:
object
-DSSObject
-
toString
-