Package eu.europa.esig.dss.tsl.source
Class TLSource
java.lang.Object
eu.europa.esig.dss.tsl.source.TLSource
- Direct Known Subclasses:
LOTLSource
Represent a Trusted List source
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the TL cache keyGets the certificate source to be used for TL validationGets a list of TL versions to be accepted for the current TL/LOTL sourceGets a predicate for filteringTrustServiceStatusAndInformationExtensionsin order to define an acceptability period of a corresponding SDI as a trust anchor.Gets a predicate to filter TrustServicesGets a predicate to filter TrustServiceProvidersgetUrl()Gets the TL URLvoidsetCertificateSource(CertificateSource certificateSource) Sets the certificate source to be used for TL validationvoidsetTLVersions(List<Integer> tlVersions) Sets a list of acceptable XML Trusted List versions.voidsetTrustAnchorValidityPredicate(Predicate<TrustServiceStatusAndInformationExtensions> trustAnchorValidityPredicate) Sets a predicate allowing to filterTrustServiceStatusAndInformationExtensionsin order to define an acceptability period of a corresponding SDI as a trust anchor.voidsetTrustServicePredicate(Predicate<TSPServiceType> trustServicePredicate) Sets a predicate to filter TrustServicesvoidsetTrustServiceProviderPredicate(Predicate<TSPType> trustServiceProviderPredicate) Sets a predicate to filter TrustServiceProvidersvoidSets the TL access URL
-
Constructor Details
-
TLSource
public TLSource()Default constructor instantiating object with null values
-
-
Method Details
-
getUrl
Gets the TL URL- Returns:
String
-
setUrl
Sets the TL access URL- Parameters:
url-String
-
getCertificateSource
Gets the certificate source to be used for TL validation- Returns:
CertificateSource
-
setCertificateSource
Sets the certificate source to be used for TL validation- Parameters:
certificateSource-CertificateSource
-
getTrustServiceProviderPredicate
Gets a predicate to filter TrustServiceProviders- Returns:
Predicate
-
setTrustServiceProviderPredicate
Sets a predicate to filter TrustServiceProviders- Parameters:
trustServiceProviderPredicate-Predicate
-
getTrustServicePredicate
Gets a predicate to filter TrustServices- Returns:
Predicate
-
setTrustServicePredicate
Sets a predicate to filter TrustServices- Parameters:
trustServicePredicate-Predicate
-
getTrustAnchorValidityPredicate
Gets a predicate for filteringTrustServiceStatusAndInformationExtensionsin order to define an acceptability period of a corresponding SDI as a trust anchor.- Returns:
- trust anchor validity predicate
-
setTrustAnchorValidityPredicate
public void setTrustAnchorValidityPredicate(Predicate<TrustServiceStatusAndInformationExtensions> trustAnchorValidityPredicate) Sets a predicate allowing to filterTrustServiceStatusAndInformationExtensionsin order to define an acceptability period of a corresponding SDI as a trust anchor. If the predicate is defined and condition fails, the SDI will not be treated as a trust anchor during the validation process.- Parameters:
trustAnchorValidityPredicate- trust anchor validity predicate
-
getTLVersions
Gets a list of TL versions to be accepted for the current TL/LOTL source- Returns:
- a list of
Integers representing acceptable XML TL versions
-
setTLVersions
Sets a list of acceptable XML Trusted List versions. When defined, an error message to be returned on structural validation. If not defined, no structural validation is performed.Default: 5, 6 (structure validation is performed for versions 5 and 6, while other versions are invalidated)
- Parameters:
tlVersions- a list ofIntegers representing a supported TL versions to be validated
-
getCacheKey
Gets the TL cache key- Returns:
CacheKey
-