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
,TrustedCertificateSource
,Serializable
- Direct Known Subclasses:
TrustedListsCertificateSource
public class CommonTrustedCertificateSource
extends CommonCertificateSource
implements TrustedCertificateSource
This class represents the simple list of trusted certificates.
- See Also:
-
Field Summary
Fields inherited from class eu.europa.esig.dss.spi.x509.CommonCertificateSource
certificateMatcher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAlternativeCRLUrls
(CertificateToken trustAnchor) Returns a list of alternative CRL access point Urls for certificates issued by the current trust anchorgetAlternativeOCSPUrls
(CertificateToken trustAnchor) Returns a list of alternative OCSP access point Urls for certificates issued by the current trust anchorThis method returns the certificate source type associated to the implementation class.getTrustServices
(CertificateToken token) Deprecated.since DSS 6.1.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, doesCertificateReferenceMatch, findTokensFromCertRef, getByCertificateDigest, getByPublicKey, getBySignerIdentifier, getBySki, getBySubject, getCertificates, getEntities, getNumberOfCertificates, getNumberOfEntities, isAllSelfSigned, isCertificateSourceEqual, isCertificateSourceEquivalent, isKnown, removeCertificate, reset
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface eu.europa.esig.dss.spi.x509.CertificateSource
addCertificate, findTokensFromCertRef, getByCertificateDigest, getByPublicKey, getBySignerIdentifier, getBySki, getBySubject, getCertificates, getEntities, isAllSelfSigned, isCertificateSourceEqual, isCertificateSourceEquivalent, isKnown
-
Constructor Details
-
CommonTrustedCertificateSource
public CommonTrustedCertificateSource()Default constructor
-
-
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
Deprecated.since DSS 6.1. To be removed. Please use implementation ofeu.europa.esig.dss.spi.tsl.TrustPropertiesCertificateSource
, oreu.europa.esig.dss.spi.tsl.TrustedListsCertificateSource
class in order to provide trust servicesReturns TrustProperties for the given certificate, when applicable- Parameters:
token
-CertificateToken
- Returns:
- a list of
TrustProperties
-
getAlternativeOCSPUrls
Description copied from interface:TrustedCertificateSource
Returns a list of alternative OCSP access point Urls for certificates issued by the current trust anchor- Specified by:
getAlternativeOCSPUrls
in interfaceTrustedCertificateSource
- Parameters:
trustAnchor
-CertificateToken
- Returns:
- a list of
String
s
-
getAlternativeCRLUrls
Description copied from interface:TrustedCertificateSource
Returns a list of alternative CRL access point Urls for certificates issued by the current trust anchor- Specified by:
getAlternativeCRLUrls
in interfaceTrustedCertificateSource
- Parameters:
trustAnchor
-CertificateToken
- Returns:
- a list of
String
s
-
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
-