Package eu.europa.esig.dss.spi.tsl
Class TrustedListsCertificateSource
java.lang.Object
eu.europa.esig.dss.spi.x509.CommonCertificateSource
eu.europa.esig.dss.spi.x509.CommonTrustedCertificateSource
eu.europa.esig.dss.spi.tsl.TrustedListsCertificateSource
- All Implemented Interfaces:
CertificateSource,Serializable
public class TrustedListsCertificateSource extends CommonTrustedCertificateSource
This class allows to inject trusted certificates from Trusted Lists
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description TrustedListsCertificateSource()The default constructor. -
Method Summary
Modifier and Type Method Description CertificateTokenaddCertificate(CertificateToken certificate)This method is not applicable for this kind of certificate source.List<String>getAlternativeCRLUrls(CertificateToken trustAnchor)List<String>getAlternativeOCSPUrls(CertificateToken trustAnchor)CertificateSourceTypegetCertificateSourceType()This method returns the certificate source type associated to the implementation class.intgetNumberOfTrustedPublicKeys()TLValidationJobSummarygetSummary()List<TrustProperties>getTrustServices(CertificateToken token)voidsetSummary(TLValidationJobSummary summary)voidsetTrustPropertiesByCertificates(Map<CertificateToken,List<TrustProperties>> trustPropertiesByCerts)The method allows to fill the CertificateSourceMethods inherited from class eu.europa.esig.dss.spi.x509.CommonTrustedCertificateSource
importAsTrusted, isTrustedMethods inherited from class eu.europa.esig.dss.spi.x509.CommonCertificateSource
getByCertificateIdentifier, getByPublicKey, getBySki, getBySubject, getCertificates, getEntities, getNumberOfCertificates, getNumberOfEntities, isAllSelfSigned, isKnown, reset
-
Constructor Details
-
TrustedListsCertificateSource
public TrustedListsCertificateSource()The default constructor.
-
-
Method Details
-
getSummary
-
setSummary
-
getCertificateSourceType
Description copied from interface:CertificateSourceThis method returns the certificate source type associated to the implementation class.- Specified by:
getCertificateSourceTypein interfaceCertificateSource- Overrides:
getCertificateSourceTypein classCommonTrustedCertificateSource- Returns:
- the certificate origin
-
addCertificate
This method is not applicable for this kind of certificate source. You should usesetTrustPropertiesByCertificates(java.util.Map<eu.europa.esig.dss.model.x509.CertificateToken, java.util.List<eu.europa.esig.dss.spi.tsl.TrustProperties>>)- Specified by:
addCertificatein interfaceCertificateSource- Overrides:
addCertificatein classCommonCertificateSource- Parameters:
certificate- the certificate you have to trust- Returns:
- the corresponding certificate token
-
setTrustPropertiesByCertificates
public void setTrustPropertiesByCertificates(Map<CertificateToken,List<TrustProperties>> trustPropertiesByCerts)The method allows to fill the CertificateSource- Parameters:
trustPropertiesByCerts- map betweenCertificateTokens and a list ofTrustProperties
-
getTrustServices
- Overrides:
getTrustServicesin classCommonTrustedCertificateSource
-
getAlternativeOCSPUrls
- Overrides:
getAlternativeOCSPUrlsin classCommonTrustedCertificateSource
-
getAlternativeCRLUrls
- Overrides:
getAlternativeCRLUrlsin classCommonTrustedCertificateSource
-
getNumberOfTrustedPublicKeys
public int getNumberOfTrustedPublicKeys()
-