Package eu.europa.esig.dss.validation
Class ReferenceValidation
java.lang.Object
eu.europa.esig.dss.validation.ReferenceValidation
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
JAdESReferenceValidation
,XAdESReferenceValidation
public class ReferenceValidation extends Object implements Serializable
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:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected List<String>
transforms
List of used transforms to compute digest of the reference -
Constructor Summary
Constructors Constructor Description ReferenceValidation()
-
Method Summary
Modifier and Type Method Description List<ReferenceValidation>
getDependentValidations()
Returns a list of dependent validations fromthis
Note: used to contain manifest entriesDigest
getDigest()
Gets the incorporatedDigest
String
getName()
Gets name of the referenceList<String>
getTransformationNames()
Returns a list of transformations contained in thereference
DigestMatcherType
getType()
Returns type of the validated referenceboolean
isDuplicated()
Returns if the referenced data is ambiguousboolean
isFound()
Gets if the references data has been foundboolean
isIntact()
Gets if the digest of a referenced document matches to one defined in the referencevoid
setDigest(Digest digest)
Sets the reference'sDigest
void
setDuplicated(boolean isDuplicated)
Sets if the referenced data is ambiguousvoid
setFound(boolean found)
Sets if the references data has been foundvoid
setIntact(boolean intact)
Sets if the digest value of a referenced document matchesvoid
setName(String name)
Sets name of the referencevoid
setTransformationNames(List<String> transforms)
Sets a list of transforms for the referencevoid
setType(DigestMatcherType type)
Sets type of the reference
-
Field Details
-
transforms
List of used transforms to compute digest of the reference
-
-
Constructor Details
-
ReferenceValidation
public ReferenceValidation()
-
-
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
Gets the incorporatedDigest
- Returns:
Digest
-
setDigest
Sets the reference'sDigest
- Parameters:
digest
-Digest
-
getName
Gets name of the reference- Returns:
String
-
setName
Sets name of the reference- Parameters:
name
-String
-
getTransformationNames
Returns a list of transformations contained in thereference
- Returns:
- list of
String
transfor names
-
setTransformationNames
Sets a list of transforms for the reference- Parameters:
transforms
- list ofString
transform names
-
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 fromthis
Note: used to contain manifest entries- Returns:
- list of
ReferenceValidation
s
-