Package eu.europa.esig.dss.spi.x509
Class CommonTrustedCertificateSource
- java.lang.Object
-
- eu.europa.esig.dss.spi.x509.CommonCertificateSource
-
- eu.europa.esig.dss.spi.x509.CommonTrustedCertificateSource
-
- All Implemented Interfaces:
CertificateSource,Serializable
- Direct Known Subclasses:
TrustedListsCertificateSource
public class CommonTrustedCertificateSource extends CommonCertificateSource
This class represents the simple list of trusted certificates.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CommonTrustedCertificateSource()
-
Method Summary
Modifier and Type Method Description List<String>getAlternativeCRLUrls(CertificateToken trustAnchor)List<String>getAlternativeOCSPUrls(CertificateToken trustAnchor)CertificateSourceTypegetCertificateSourceType()This method returns the certificate source type associated to the implementation class.Set<ServiceInfo>getTrustServices(CertificateToken trustAnchor)voidimportAsTrusted(CertificateSource certificateSource)This method allows to declare all certificates from a given certificate source as trusted.-
Methods inherited from class eu.europa.esig.dss.spi.x509.CommonCertificateSource
addCertificate, getCertificatePool, getCertificates, getCertificateTokenByDigest, getNumberOfCertificates, isTrusted, removeCertificate
-
-
-
-
Method Detail
-
getCertificateSourceType
public CertificateSourceType getCertificateSourceType()
Description copied from interface:CertificateSourceThis method returns the certificate source type associated to the implementation class.- Specified by:
getCertificateSourceTypein interfaceCertificateSource- Overrides:
getCertificateSourceTypein classCommonCertificateSource- Returns:
- the certificate origin
-
importAsTrusted
public void importAsTrusted(CertificateSource certificateSource)
This method allows to declare all certificates from a given certificate source as trusted.- Parameters:
certificateSource- the certificate source to be trusted
-
getTrustServices
public Set<ServiceInfo> getTrustServices(CertificateToken trustAnchor)
-
getAlternativeOCSPUrls
public List<String> getAlternativeOCSPUrls(CertificateToken trustAnchor)
-
getAlternativeCRLUrls
public List<String> getAlternativeCRLUrls(CertificateToken trustAnchor)
-
-