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
This class allows injection of trusted certificates from Trusted Lists
- See Also:
-
Field Summary
Fields inherited from class eu.europa.esig.dss.spi.x509.CommonCertificateSource
certificateMatcher -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioneu.europa.esig.dss.model.x509.CertificateTokenaddCertificate(eu.europa.esig.dss.model.x509.CertificateToken certificate) This method is not applicable for this kind of certificate source.getAlternativeCRLUrls(eu.europa.esig.dss.model.x509.CertificateToken trustAnchor) Returns a list of alternative CRL access point Urls for the certificate tokengetAlternativeOCSPUrls(eu.europa.esig.dss.model.x509.CertificateToken trustAnchor) Returns a list of alternative OCSP access point Urls for the certificate tokeneu.europa.esig.dss.enumerations.CertificateSourceTypeThis method returns the certificate source type associated to the implementation class.intGets the number of trusted public keysGets TL Validation job summarygetTrustServices(eu.europa.esig.dss.model.x509.CertificateToken token) Returns TrustProperties for the given certificatevoidsetSummary(TLValidationJobSummary summary) Sets TL Validation job summaryvoidsetTrustPropertiesByCertificates(Map<eu.europa.esig.dss.model.x509.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
doesCertificateReferenceMatch, findTokensFromCertRef, getByCertificateDigest, getByPublicKey, getBySignerIdentifier, getBySki, getBySubject, getCertificates, getEntities, getNumberOfCertificates, getNumberOfEntities, isAllSelfSigned, isCertificateSourceEqual, isCertificateSourceEquivalent, isKnown, removeCertificate, reset
-
Constructor Details
-
TrustedListsCertificateSource
public TrustedListsCertificateSource()The default constructor.
-
-
Method Details
-
getSummary
Gets TL Validation job summary- Returns:
TLValidationJobSummary
-
setSummary
Sets TL Validation job summary- Parameters:
summary-TLValidationJobSummary
-
getCertificateSourceType
public eu.europa.esig.dss.enumerations.CertificateSourceType 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
public eu.europa.esig.dss.model.x509.CertificateToken addCertificate(eu.europa.esig.dss.model.x509.CertificateToken certificate) 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<eu.europa.esig.dss.model.x509.CertificateToken, List<TrustProperties>> trustPropertiesByCerts) The method allows to fill the CertificateSource- Parameters:
trustPropertiesByCerts- map betweenCertificateTokens and a list ofTrustProperties
-
getTrustServices
Description copied from class:CommonTrustedCertificateSourceReturns TrustProperties for the given certificate- Overrides:
getTrustServicesin classCommonTrustedCertificateSource- Parameters:
token-CertificateToken- Returns:
- a list of
TrustProperties
-
getAlternativeOCSPUrls
public List<String> getAlternativeOCSPUrls(eu.europa.esig.dss.model.x509.CertificateToken trustAnchor) Description copied from class:CommonTrustedCertificateSourceReturns a list of alternative OCSP access point Urls for the certificate token- Overrides:
getAlternativeOCSPUrlsin classCommonTrustedCertificateSource- Parameters:
trustAnchor-CertificateToken- Returns:
- a list of
Strings
-
getAlternativeCRLUrls
public List<String> getAlternativeCRLUrls(eu.europa.esig.dss.model.x509.CertificateToken trustAnchor) Description copied from class:CommonTrustedCertificateSourceReturns a list of alternative CRL access point Urls for the certificate token- Overrides:
getAlternativeCRLUrlsin classCommonTrustedCertificateSource- Parameters:
trustAnchor-CertificateToken- Returns:
- a list of
Strings
-
getNumberOfTrustedPublicKeys
public int getNumberOfTrustedPublicKeys()Gets the number of trusted public keys- Returns:
- the number of trusted public keys
-