Class ReferenceValidation

java.lang.Object
eu.europa.esig.dss.validation.ReferenceValidation
All Implemented Interfaces:
Serializable

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:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected List<String>
    List of used transforms to compute digest of the reference
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor instantiating object with null values
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a list of dependent validations from this Note: used to contain manifest entries
    eu.europa.esig.dss.model.Digest
    Gets the incorporated Digest
    Gets name of the reference
    Returns a list of transformations contained in the reference
    eu.europa.esig.dss.enumerations.DigestMatcherType
    Returns type of the validated reference
    boolean
    Returns if the referenced data is ambiguous
    boolean
    Gets if the references data has been found
    boolean
    Gets if the digest of a referenced document matches to one defined in the reference
    void
    setDigest(eu.europa.esig.dss.model.Digest digest)
    Sets the reference's Digest
    void
    setDuplicated(boolean isDuplicated)
    Sets if the referenced data is ambiguous
    void
    setFound(boolean found)
    Sets if the references data has been found
    void
    setIntact(boolean intact)
    Sets if the digest value of a referenced document matches
    void
    Sets name of the reference
    void
    Sets a list of transforms for the reference
    void
    setType(eu.europa.esig.dss.enumerations.DigestMatcherType type)
    Sets type of the reference

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • transforms

      protected List<String> transforms
      List of used transforms to compute digest of the reference
  • Constructor Details

    • ReferenceValidation

      public ReferenceValidation()
      Default constructor instantiating object with null values
  • Method Details

    • getType

      public eu.europa.esig.dss.enumerations.DigestMatcherType getType()
      Returns type of the validated reference
      Returns:
      DigestMatcherType
    • setType

      public void setType(eu.europa.esig.dss.enumerations.DigestMatcherType type)
      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

      public eu.europa.esig.dss.model.Digest getDigest()
      Gets the incorporated Digest
      Returns:
      Digest
    • setDigest

      public void setDigest(eu.europa.esig.dss.model.Digest digest)
      Sets the reference's Digest
      Parameters:
      digest - Digest
    • getName

      public String getName()
      Gets name of the reference
      Returns:
      String
    • setName

      public void setName(String name)
      Sets name of the reference
      Parameters:
      name - String
    • getTransformationNames

      public List<String> getTransformationNames()
      Returns a list of transformations contained in the reference
      Returns:
      list of String transfor names
    • setTransformationNames

      public void setTransformationNames(List<String> transforms)
      Sets a list of transforms for the reference
      Parameters:
      transforms - list of String 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

      public List<ReferenceValidation> getDependentValidations()
      Returns a list of dependent validations from this Note: used to contain manifest entries
      Returns:
      list of ReferenceValidations