Package eu.europa.esig.dss.model
Class ReferenceValidation
java.lang.Object
eu.europa.esig.dss.model.ReferenceValidation
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
JAdESReferenceValidation,XAdESReferenceValidation
This class is used to store individual reference validations.
For XAdES, that means reference tag(s) validation
For CAdES, that means message-digest validation
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionList of used transforms to compute digest of the reference -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor instantiating object with null values -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of dependent validations fromthisNote: used to contain manifest entriesGets the incorporatedDigestGets matching document namegetId()Gets the unique identifier of a reference.getName()Deprecated.since DSS 6.1.Returns a list of transformations contained in thereferencegetType()Returns type of the validated referencegetUri()Gets the reference to the original document.booleanReturns if the referenced data is ambiguousbooleanisFound()Gets if the references data has been foundbooleanisIntact()Gets if the digest of a referenced document matches to one defined in the referencevoidSets the reference'sDigestvoidsetDocumentName(String documentName) Sets the matching document namevoidsetDuplicated(boolean isDuplicated) Sets if the referenced data is ambiguousvoidsetFound(boolean found) Sets if the references data has been foundvoidSets the unique identifier of a reference.voidsetIntact(boolean intact) Sets if the digest value of a referenced document matchesvoidDeprecated.since DSS 6.1.voidsetTransformationNames(List<String> transforms) Sets a list of transforms for the referencevoidsetType(DigestMatcherType type) Sets type of the referencevoidSets the reference to the original document.
-
Field Details
-
transforms
-
-
Constructor Details
-
ReferenceValidation
public ReferenceValidation()Default constructor instantiating object with null values
-
-
Method Details
-
getType
Returns type of the validated reference- Returns:
DigestMatcherType
-
setType
Sets type of the reference- Parameters:
type-DigestMatcherType
-
isFound
public boolean isFound()Gets if the references data has been found- Returns:
- TRUE if the data was found, FALSE otherwise
-
setFound
public void setFound(boolean found) Sets if the references data has been found- Parameters:
found- if the references data has been found
-
isIntact
public boolean isIntact()Gets if the digest of a referenced document matches to one defined in the reference- Returns:
- TRUE if the digest value of a referenced document matches, FALSE otherwise
-
setIntact
public void setIntact(boolean intact) Sets if the digest value of a referenced document matches- Parameters:
intact- if the digest value of a referenced document matches
-
getDigest
-
setDigest
-
getName
Deprecated.since DSS 6.1. Please see#getIdand#getUrimethodsGets name of the reference- Returns:
String
-
setName
Deprecated.since DSS 6.1. Please see#setIdand#setUrimethodsSets name of the reference- Parameters:
name-String
-
getId
-
setId
-
getUri
-
setUri
-
getDocumentName
-
setDocumentName
-
getTransformationNames
-
setTransformationNames
-
isDuplicated
public boolean isDuplicated()Returns if the referenced data is ambiguous- Returns:
- TRUE if the referenced data is ambiguous, FALSE otherwise
-
setDuplicated
public void setDuplicated(boolean isDuplicated) Sets if the referenced data is ambiguous- Parameters:
isDuplicated- if the referenced data is ambiguous
-
getDependentValidations
Returns a list of dependent validations fromthisNote: used to contain manifest entries- Returns:
- list of
ReferenceValidations
-