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 XmlDiagnosticDatabuild()DiagnosticDataBuildercertificateSourceTypes(Map<CertificateToken,Set<CertificateSourceType>> certificateSourceTypes)This method allows to set the certificate source typesDiagnosticDataBuildercompleteCRLSource(ListRevocationSource<CRL> completeCRLSource)Sets a merged CRL SourceDiagnosticDataBuildercompleteOCSPSource(ListRevocationSource<OCSP> completeOCSPSource)Sets a merged OCSP SourceDiagnosticDataBuildercontainerInfo(ContainerInfo containerInfo)This method allows to set the container info (ASiC)DiagnosticDataBuilderdocument(DSSDocument signedDocument)This method allows to set the document which is analysedDiagnosticDataBuilderfoundSignatures(List<AdvancedSignature> signatures)This method allows to set the found signaturesbooleanisAtLeastOneFound(List<ReferenceValidation> referenceValidations)Checks if at least one Manifest entry was foundDiagnosticDataBuildersetDefaultDigestAlgorithm(DigestAlgorithm digestAlgorithm)This method allows to set the defaultDigestAlgorithmwhich will be used for tokens' DigestAlgoAndValue calculationDiagnosticDataBuildertokenExtractionStategy(TokenExtractionStategy tokenExtractionStategy)This method allows to set theTokenExtractionStategyto follow for the token extractionDiagnosticDataBuildertrustedCertificateSources(ListCertificateSource trustedCertSources)This method allows to set the TrustedListsCertificateSourcesDiagnosticDataBuilderusedCertificates(Set<CertificateToken> usedCertificates)This method allows to set the used certificatesDiagnosticDataBuilderusedRevocations(Set<RevocationToken<Revocation>> usedRevocations)This method allows to set the used revocation dataDiagnosticDataBuilderusedTimestamps(Set<TimestampToken> usedTimestamps)This method allows to set the timestampsDiagnosticDataBuildervalidationDate(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 validatedTimestampTokens- Returns:
- the builder
-
tokenExtractionStategy
This method allows to set theTokenExtractionStategyto follow for the token extraction- Parameters:
tokenExtractionStategy-TokenExtractionStategyto use- Returns:
- the builder
-
setDefaultDigestAlgorithm
This method allows to set the defaultDigestAlgorithmwhich will be used for tokens' DigestAlgoAndValue calculation- Parameters:
digestAlgorithm-DigestAlgorithmto 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
-
completeCRLSource
Sets a merged CRL Source- Parameters:
completeCRLSource-ListRevocationSourcecomputed from existing sources- Returns:
- the builder
-
completeOCSPSource
Sets a merged OCSP Source- Parameters:
completeOCSPSource-ListRevocationSourcecomputed from existing sources- Returns:
- the builder
-
build
-
isAtLeastOneFound
Checks if at least one Manifest entry was found- Returns:
- TRUE if at least one ManifestEntry was found, FALSE otherwise
-