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
completeCRLSource(ListRevocationSource<CRL> completeCRLSource)
Sets a merged CRL SourceDiagnosticDataBuilder
completeOCSPSource(ListRevocationSource<OCSP> completeOCSPSource)
Sets a merged OCSP SourceDiagnosticDataBuilder
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 signaturesboolean
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
tokenExtractionStategy(TokenExtractionStategy tokenExtractionStategy)
This method allows to set theTokenExtractionStategy
to follow for the token extractionDiagnosticDataBuilder
trustedCertificateSources(ListCertificateSource trustedCertSources)
This method allows to set the TrustedListsCertificateSourcesDiagnosticDataBuilder
usedCertificates(Set<CertificateToken> usedCertificates)
This method allows to set the used certificatesDiagnosticDataBuilder
usedRevocations(Set<RevocationToken<Revocation>> 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
-
tokenExtractionStategy
This method allows to set theTokenExtractionStategy
to follow for the token extraction- Parameters:
tokenExtractionStategy
-TokenExtractionStategy
to use- 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
-
completeCRLSource
Sets a merged CRL Source- Parameters:
completeCRLSource
-ListRevocationSource
computed from existing sources- Returns:
- the builder
-
completeOCSPSource
Sets a merged OCSP Source- Parameters:
completeOCSPSource
-ListRevocationSource
computed 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
-