Package eu.europa.esig.dss.validation
Class CertificateDiagnosticDataBuilder
java.lang.Object
eu.europa.esig.dss.validation.DiagnosticDataBuilder
eu.europa.esig.dss.validation.CertificateDiagnosticDataBuilder
Builds the DiagnosticData for a CertificateToken validation
-
Field Summary
Fields inherited from class eu.europa.esig.dss.validation.DiagnosticDataBuilder
allCertificateSources, certificateIdsMap, defaultDigestAlgorithm, identifierProvider, referenceMap, signingCertificateMap, tlInfoMap, tokenExtractionStrategy, usedCertificates, usedRevocations, validationDate, xmlCertsMap, xmlOrphanCertificateTokensMap, xmlOrphanRevocationTokensMap, xmlRevocationsMap, xmlTrustedListsMap
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallCertificateSources
(ListCertificateSource trustedCertSources) This method allows to setListCertificateSource
containing all certificate sources used in the validator (including trusted certificate sources)build()
BuildsXmlDiagnosticData
defaultDigestAlgorithm
(DigestAlgorithm digestAlgorithm) This method allows to set the defaultDigestAlgorithm
which will be used for tokens' DigestAlgoAndValue calculationtokenExtractionStrategy
(TokenExtractionStrategy tokenExtractionStrategy) This method allows to set theTokenExtractionStrategy
to follow for the token extractionusedCertificates
(Set<CertificateToken> usedCertificates) This method allows to set the used certificatesusedRevocations
(Set<RevocationToken> usedRevocations) This method allows to set the used revocation datavalidationDate
(Date validationDate) This method allows to set the validation dateMethods inherited from class eu.europa.esig.dss.validation.DiagnosticDataBuilder
buildDetachedXmlCertificate, buildDetachedXmlRevocation, buildXmlOrphanCertificateToken, buildXmlOrphanTokens, getUsedCertificateByCertificateRef, getXmlBasicSignature, getXmlCertificateRef, getXmlCRLRevocationRef, getXmlDigestAlgoAndValue, getXmlDigestAlgoAndValue, getXmlForCertificateChain, getXmlForCertificateChain, getXmlForCertificateChain, getXmlFoundCertificates, getXmlOCSPRevocationRef, getXmlOrphanCertificate, getXmlRelatedCertificateForOrphanReferences, getXmlRevocationRefs, getXmlSignerInfo, getXmlSigningCertificate, linkSigningCertificateAndChains, populateCertificateOriginMap, populateOrphanCertificateOriginMap, populateXmlRelatedCertificatesList, populateXmlRelatedCertificatesList, tokenIdentifierProvider, verifyAgainstCertificateToken
-
Constructor Details
-
CertificateDiagnosticDataBuilder
public CertificateDiagnosticDataBuilder()Default constructor
-
-
Method Details
-
build
BuildsXmlDiagnosticData
- Overrides:
build
in classDiagnosticDataBuilder
- Returns:
XmlDiagnosticData
-
usedCertificates
Description copied from class:DiagnosticDataBuilder
This method allows to set the used certificates- Overrides:
usedCertificates
in classDiagnosticDataBuilder
- Parameters:
usedCertificates
- the used certificates- Returns:
- the builder
-
usedRevocations
Description copied from class:DiagnosticDataBuilder
This method allows to set the used revocation data- Overrides:
usedRevocations
in classDiagnosticDataBuilder
- Parameters:
usedRevocations
- the used revocation data- Returns:
- the builder
-
allCertificateSources
public CertificateDiagnosticDataBuilder allCertificateSources(ListCertificateSource trustedCertSources) Description copied from class:DiagnosticDataBuilder
This method allows to setListCertificateSource
containing all certificate sources used in the validator (including trusted certificate sources)- Overrides:
allCertificateSources
in classDiagnosticDataBuilder
- Parameters:
trustedCertSources
- the list of trusted lists certificate sources- Returns:
- the builder
-
validationDate
Description copied from class:DiagnosticDataBuilder
This method allows to set the validation date- Overrides:
validationDate
in classDiagnosticDataBuilder
- Parameters:
validationDate
- the validation date- Returns:
- the builder
-
tokenExtractionStrategy
public CertificateDiagnosticDataBuilder tokenExtractionStrategy(TokenExtractionStrategy tokenExtractionStrategy) Description copied from class:DiagnosticDataBuilder
This method allows to set theTokenExtractionStrategy
to follow for the token extraction- Overrides:
tokenExtractionStrategy
in classDiagnosticDataBuilder
- Parameters:
tokenExtractionStrategy
-TokenExtractionStrategy
to use- Returns:
- the builder
-
defaultDigestAlgorithm
Description copied from class:DiagnosticDataBuilder
This method allows to set the defaultDigestAlgorithm
which will be used for tokens' DigestAlgoAndValue calculation- Overrides:
defaultDigestAlgorithm
in classDiagnosticDataBuilder
- Parameters:
digestAlgorithm
-DigestAlgorithm
to set as default- Returns:
- the builder
-