Package eu.europa.esig.dss.validation
Class ValidationData
java.lang.Object
eu.europa.esig.dss.validation.ValidationData
Contains a validation data to be included into the signature
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Adds validation data token and boolean indication if the token has been added successfullyvoid
addValidationData
(ValidationData validationData) Allows to add all tokens from a provided validation data to the current collectionvoid
excludeCertificateTokens
(Collection<CertificateToken> certificateTokensToExclude) Removes all certificate token entries matching the provided collectionvoid
excludeCRLTokens
(Collection<EncapsulatedRevocationTokenIdentifier<CRL>> crlTokensToExclude) Removes all CRL token entries matching the provided collection of encapsulated CRL binariesvoid
excludeOCSPTokens
(Collection<EncapsulatedRevocationTokenIdentifier<OCSP>> ocspTokensToExclude) Removes all OCSP token entries matching the provided collection of encapsulated OCSP binariesGets certificate tokens to be included into the signatureSets CRL tokens to be included into the signatureSets OCSP tokens to be included into the signatureboolean
isEmpty()
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
CertificateToken
s
-
getCrlTokens
Sets CRL tokens to be included into the signature- Returns:
- a list of
CRLToken
s
-
getOcspTokens
Sets OCSP tokens to be included into the signature- Returns:
- a list of
OCSPToken
s
-
addToken
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
Allows to add all tokens from a provided validation data to the current collection- Parameters:
validationData
-ValidationData
to add tokens from
-
excludeCertificateTokens
Removes all certificate token entries matching the provided collection- Parameters:
certificateTokensToExclude
- a collection ofCertificateToken
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 ofEncapsulatedRevocationTokenIdentifier
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 ofEncapsulatedRevocationTokenIdentifier
to exclude
-
isEmpty
public boolean isEmpty()Checks if the validation data is empty- Returns:
- TRUE if the object is empty, FALSE otherwise
-