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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdds 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<CertificateToken> certificateTokensToExclude) Removes all certificate token entries matching the provided collectionvoidexcludeCRLTokens(Collection<EncapsulatedRevocationTokenIdentifier<CRL>> crlTokensToExclude) Removes all CRL token entries matching the provided collection of encapsulated CRL binariesvoidexcludeOCSPTokens(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 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
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
Removes all certificate token entries matching the provided collection- Parameters:
certificateTokensToExclude- a collection ofCertificateTokento 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 ofEncapsulatedRevocationTokenIdentifierto 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 ofEncapsulatedRevocationTokenIdentifierto exclude
-
isEmpty
public boolean isEmpty()Checks if the validation data is empty- Returns:
- TRUE if the object is empty, FALSE otherwise
-