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 Summary

    Constructors
    Constructor
    Description
    Default constructor instantiating empty maps of tokens
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    addToken(eu.europa.esig.dss.model.x509.Token token)
    Adds validation data token and boolean indication if the token has been added successfully
    void
    Allows to add all tokens from a provided validation data to the current collection
    void
    excludeCertificateTokens(Collection<eu.europa.esig.dss.model.x509.CertificateToken> certificateTokensToExclude)
    Removes all certificate token entries matching the provided collection
    void
    excludeCRLTokens(Collection<eu.europa.esig.dss.model.identifier.EncapsulatedRevocationTokenIdentifier<eu.europa.esig.dss.model.x509.revocation.crl.CRL>> crlTokensToExclude)
    Removes all CRL token entries matching the provided collection of encapsulated CRL binaries
    void
    excludeOCSPTokens(Collection<eu.europa.esig.dss.model.identifier.EncapsulatedRevocationTokenIdentifier<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>> ocspTokensToExclude)
    Removes all OCSP token entries matching the provided collection of encapsulated OCSP binaries
    Set<eu.europa.esig.dss.model.x509.CertificateToken>
    Gets certificate tokens to be included into the signature
    Sets CRL tokens to be included into the signature
    Sets OCSP tokens to be included into the signature
    boolean
    Checks if the validation data is empty

    Methods inherited from class java.lang.Object

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

    • ValidationData

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

    • getCertificateTokens

      public Set<eu.europa.esig.dss.model.x509.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(eu.europa.esig.dss.model.x509.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<eu.europa.esig.dss.model.x509.CertificateToken> certificateTokensToExclude)
      Removes all certificate token entries matching the provided collection
      Parameters:
      certificateTokensToExclude - a collection of CertificateToken to exclude
    • excludeCRLTokens

      public void excludeCRLTokens(Collection<eu.europa.esig.dss.model.identifier.EncapsulatedRevocationTokenIdentifier<eu.europa.esig.dss.model.x509.revocation.crl.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<eu.europa.esig.dss.model.identifier.EncapsulatedRevocationTokenIdentifier<eu.europa.esig.dss.model.x509.revocation.ocsp.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