Class ValidationData

java.lang.Object
eu.europa.esig.dss.validation.ValidationData

public class ValidationData extends Object
Contains a validation data to be included into the signature
  • Constructor Details

    • ValidationData

      public ValidationData()
      Default constructor instantiating empty maps of tokens
  • Method Details

    • getCertificateTokens

      public Set<CertificateToken> getCertificateTokens()
      Gets certificate tokens to be included into the signature
      Returns:
      a set of CertificateTokens
    • getCrlTokens

      public Set<CRLToken> getCrlTokens()
      Sets CRL tokens to be included into the signature
      Returns:
      a list of CRLTokens
    • getOcspTokens

      public Set<OCSPToken> getOcspTokens()
      Sets OCSP tokens to be included into the signature
      Returns:
      a list of OCSPTokens
    • addToken

      public boolean addToken(Token token)
      Adds validation data token and boolean indication if the token has been added successfully
      Parameters:
      token - Token token to be added
      Returns:
      TRUE of the given token has been added successfully to the ValidationData, FALSE otherwise
    • addValidationData

      public void addValidationData(ValidationData validationData)
      Allows to add all tokens from a provided validation data to the current collection
      Parameters:
      validationData - ValidationData to add tokens from
    • excludeCertificateTokens

      public void excludeCertificateTokens(Collection<CertificateToken> certificateTokensToExclude)
      Removes all certificate token entries matching the provided collection
      Parameters:
      certificateTokensToExclude - a collection of CertificateToken to exclude
    • excludeCRLTokens

      public void excludeCRLTokens(Collection<EncapsulatedRevocationTokenIdentifier<CRL>> crlTokensToExclude)
      Removes all CRL token entries matching the provided collection of encapsulated CRL binaries
      Parameters:
      crlTokensToExclude - a collection of EncapsulatedRevocationTokenIdentifier to exclude
    • excludeOCSPTokens

      public void excludeOCSPTokens(Collection<EncapsulatedRevocationTokenIdentifier<OCSP>> ocspTokensToExclude)
      Removes all OCSP token entries matching the provided collection of encapsulated OCSP binaries
      Parameters:
      ocspTokensToExclude - a collection of EncapsulatedRevocationTokenIdentifier to exclude
    • isEmpty

      public boolean isEmpty()
      Checks if the validation data is empty
      Returns:
      TRUE if the object is empty, FALSE otherwise