java.lang.Object
eu.europa.esig.dss.validation.ValidationData
Contains a validation data to be included into the signature
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddToken(eu.europa.esig.dss.model.x509.Token token) Adds validation data token and boolean indication if the token has been added successfullyvoidaddValidationData(ValidationData validationData) Allows to add all tokens from a provided validation data to the current collectionvoidexcludeCertificateTokens(Collection<eu.europa.esig.dss.model.x509.CertificateToken> certificateTokensToExclude) Removes all certificate token entries matching the provided collectionvoidexcludeCRLTokens(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 binariesvoidexcludeOCSPTokens(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 binariesSet<eu.europa.esig.dss.model.x509.CertificateToken> Gets certificate tokens to be included into the signatureSet<eu.europa.esig.dss.spi.x509.revocation.crl.CRLToken> Sets CRL tokens to be included into the signatureSet<eu.europa.esig.dss.spi.x509.revocation.ocsp.OCSPToken> Sets OCSP tokens to be included into the signaturebooleanisEmpty()Checks if the validation data is empty
-
Constructor Details
-
ValidationData
public ValidationData()Default constructor instantiating empty maps of tokens
-
-
Method Details
-
getCertificateTokens
Gets certificate tokens to be included into the signature- Returns:
- a set of
CertificateTokens
-
getCrlTokens
Sets CRL tokens to be included into the signature- Returns:
- a list of
CRLTokens
-
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-Tokentoken to be added- Returns:
- TRUE of the given token has been added successfully to the ValidationData, FALSE otherwise
-
addValidationData
Allows to add all tokens from a provided validation data to the current collection- Parameters:
validationData-ValidationDatato 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 ofCertificateTokento 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 ofEncapsulatedRevocationTokenIdentifierto 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 ofEncapsulatedRevocationTokenIdentifierto exclude
-
isEmpty
public boolean isEmpty()Checks if the validation data is empty- Returns:
- TRUE if the object is empty, FALSE otherwise
-