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)
CertificateSourceType
getCertificateSourceType()
This method returns the certificate source type associated to the implementation class.List<TrustProperties>
getTrustServices(CertificateToken token)
void
importAsTrusted(CertificateSource certificateSource)
This method allows to declare all certificates from a given certificate source as trusted.boolean
isTrusted(CertificateToken certificateToken)
This method checks if a given certificate is trustedMethods inherited from class eu.europa.esig.dss.spi.x509.CommonCertificateSource
addCertificate, getByCertificateIdentifier, getByPublicKey, getBySki, getBySubject, getCertificates, getEntities, getNumberOfCertificates, getNumberOfEntities, isAllSelfSigned, isKnown, reset
-
Constructor Details
-
CommonTrustedCertificateSource
public CommonTrustedCertificateSource()
-
-
Method Details
-
getCertificateSourceType
Description copied from interface:CertificateSource
This method returns the certificate source type associated to the implementation class.- Specified by:
getCertificateSourceType
in interfaceCertificateSource
- Overrides:
getCertificateSourceType
in classCommonCertificateSource
- Returns:
- the certificate origin
-
importAsTrusted
This method allows to declare all certificates from a given certificate source as trusted.- Parameters:
certificateSource
- the certificate source to be trusted
-
getTrustServices
-
getAlternativeOCSPUrls
-
getAlternativeCRLUrls
-
isTrusted
Description copied from interface:CertificateSource
This method checks if a given certificate is trusted- Specified by:
isTrusted
in interfaceCertificateSource
- Overrides:
isTrusted
in classCommonCertificateSource
- Parameters:
certificateToken
- the certificate to be tested- Returns:
- true if the certificate is trusted
-