public class LotlTrustedStore extends Object
| Constructor and Description |
|---|
LotlTrustedStore(ValidatorChainBuilder builder)
Creates new instance of
LotlTrustedStore. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkIfCertIsTrusted(ValidationReport result,
ValidationContext context,
X509Certificate certificate,
Date validationDate)
Checks if given certificate is trusted according to context and time in which it is used.
|
Set<Certificate> |
getCertificates()
Gets all the certificates stored in this trusted store.
|
protected Set<CertificateSource> |
getCertificateSourceBasedOnServiceType(String serviceType)
Gets set of
CertificateSource items based on service type identifier of a given certificate in LOTL file. |
protected boolean |
isScopeCorrectlySpecified(List<ReportItem> reportItems,
X509Certificate certificate,
List<AdditionalServiceInformationExtension> extensions)
Checks if scope specified by extensions contains valid types.
|
public LotlTrustedStore(ValidatorChainBuilder builder)
LotlTrustedStore. This constructor shall not be used directly.
Instead, in order to create such instance ValidatorChainBuilder.getLotlTrustedStore() shall be used.builder - ValidatorChainBuilder which was responsible for creationpublic Set<Certificate> getCertificates()
Certificate storedpublic boolean checkIfCertIsTrusted(ValidationReport result, ValidationContext context, X509Certificate certificate, Date validationDate)
result - ValidationReport which stores check resultscontext - ValidationContext in which certificate is usedcertificate - X509Certificate certificate to be checkedvalidationDate - Date date time in which certificate is validatedtrue if certificate is trusted, false otherwiseprotected Set<CertificateSource> getCertificateSourceBasedOnServiceType(String serviceType)
CertificateSource items based on service type identifier of a given certificate in LOTL file.
Certificate source defines in which context this certificate is supposed to be trusted.
serviceType - String representing service type identifier field in LOTL file.CertificateSource representing contexts, in which certificate is supposed to be trusted.protected boolean isScopeCorrectlySpecified(List<ReportItem> reportItems, X509Certificate certificate, List<AdditionalServiceInformationExtension> extensions)
reportItems - ValidationReport which is populated with detailed validation resultscertificate - X509Certificate to be validatedextensions - AdditionalServiceInformationExtension that specify scopeCopyright © 1998–2025 Apryse Group NV. All rights reserved.