Package eu.europa.esig.dss.validation
Class DiagnosticDataBuilder
java.lang.Object
eu.europa.esig.dss.validation.DiagnosticDataBuilder
public class DiagnosticDataBuilder extends Object
This class is used to build JAXB objects from the DSS model
-
Constructor Summary
Constructors Constructor Description DiagnosticDataBuilder()
-
Method Summary
Modifier and Type Method Description XmlDiagnosticData
build()
DiagnosticDataBuilder
certificateSourceTypes(Map<CertificateToken,Set<CertificateSourceType>> certificateSourceTypes)
This method allows to set the certificate source typesDiagnosticDataBuilder
containerInfo(ContainerInfo containerInfo)
This method allows to set the container info (ASiC)DiagnosticDataBuilder
document(DSSDocument signedDocument)
This method allows to set the document which is analysedDiagnosticDataBuilder
foundSignatures(List<AdvancedSignature> signatures)
This method allows to set the found signaturesDiagnosticDataBuilder
includeRawCertificateTokens(boolean includeRawCertificateTokens)
This method allows set the behavior to include raw certificate tokens into the diagnostic report.DiagnosticDataBuilder
includeRawRevocationData(boolean includeRawRevocationData)
This method allows set the behavior to include raw revocation data into the diagnostic report.DiagnosticDataBuilder
includeRawTimestampTokens(boolean includeRawTimestampTokens)
This method allows set the behavior to include raw timestamp tokens into the diagnostic report.List<BigInteger>
intArrayToBigIntegerList(int[] v)
boolean
isAtLeastOneFound(List<ReferenceValidation> referenceValidations)
Checks if at least one Manifest entry was foundDiagnosticDataBuilder
setDefaultDigestAlgorithm(DigestAlgorithm digestAlgorithm)
This method allows to set the defaultDigestAlgorithm
which will be used for tokens' DigestAlgoAndValue calculationDiagnosticDataBuilder
signatureScope(List<SignatureScope> signatureScopes)
This method allows to set a list ofSignatureScope
sDiagnosticDataBuilder
trustedCertificateSources(List<CertificateSource> trustedCertSources)
This method allows to set the TrustedListsCertificateSourcesDiagnosticDataBuilder
usedCertificates(Set<CertificateToken> usedCertificates)
This method allows to set the used certificatesDiagnosticDataBuilder
usedRevocations(Set<RevocationToken> usedRevocations)
This method allows to set the used revocation dataDiagnosticDataBuilder
usedTimestamps(Set<TimestampToken> usedTimestamps)
This method allows to set the timestampsDiagnosticDataBuilder
validationDate(Date validationDate)
This method allows to set the validation date
-
Constructor Details
-
DiagnosticDataBuilder
public DiagnosticDataBuilder()
-
-
Method Details
-
document
This method allows to set the document which is analysed- Parameters:
signedDocument
- the document which is analysed- Returns:
- the builder
-
containerInfo
This method allows to set the container info (ASiC)- Parameters:
containerInfo
- the container information- Returns:
- the builder
-
foundSignatures
This method allows to set the found signatures- Parameters:
signatures
- the found signatures- Returns:
- the builder
-
usedCertificates
This method allows to set the used certificates- Parameters:
usedCertificates
- the used certificates- Returns:
- the builder
-
certificateSourceTypes
public DiagnosticDataBuilder certificateSourceTypes(Map<CertificateToken,Set<CertificateSourceType>> certificateSourceTypes)This method allows to set the certificate source types- Parameters:
certificateSourceTypes
- the certificate source types- Returns:
- the builder
-
usedRevocations
This method allows to set the used revocation data- Parameters:
usedRevocations
- the used revocation data- Returns:
- the builder
-
usedTimestamps
This method allows to set the timestamps- Parameters:
usedTimestamps
- a set of validatedTimestampToken
s- Returns:
- the builder
-
signatureScope
This method allows to set a list ofSignatureScope
s- Parameters:
signatureScopes
- a list ofSignatureScope
s- Returns:
- this builder
-
includeRawCertificateTokens
This method allows set the behavior to include raw certificate tokens into the diagnostic report. (default: false)- Parameters:
includeRawCertificateTokens
- true if the certificate tokens need to be exported in the diagnostic data- Returns:
- the builder
-
includeRawRevocationData
This method allows set the behavior to include raw revocation data into the diagnostic report. (default: false)- Parameters:
includeRawRevocationData
- true if the revocation data need to be exported in the diagnostic data- Returns:
- the builder
-
includeRawTimestampTokens
This method allows set the behavior to include raw timestamp tokens into the diagnostic report. (default: false)- Parameters:
includeRawTimestampTokens
- true if the timestamp tokens need to be exported in the diagnostic data- Returns:
- the builder
-
setDefaultDigestAlgorithm
This method allows to set the defaultDigestAlgorithm
which will be used for tokens' DigestAlgoAndValue calculation- Parameters:
digestAlgorithm
-DigestAlgorithm
to set as default- Returns:
- the builder
-
trustedCertificateSources
This method allows to set the TrustedListsCertificateSources- Parameters:
trustedCertSources
- the list of trusted lists certificate sources- Returns:
- the builder
-
validationDate
This method allows to set the validation date- Parameters:
validationDate
- the validation date- Returns:
- the builder
-
build
-
intArrayToBigIntegerList
-
isAtLeastOneFound
Checks if at least one Manifest entry was found- Returns:
- TRUE if at least one ManifestEntry was found, FALSE otherwise
-