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
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAlternativeCRLUrls(CertificateToken trustAnchor) Returns a list of alternative CRL access point Urls for the certificate tokengetAlternativeOCSPUrls(CertificateToken trustAnchor) Returns a list of alternative OCSP access point Urls for the certificate tokenThis method returns the certificate source type associated to the implementation class.getTrustServices(CertificateToken token) Returns TrustProperties for the given certificatevoidimportAsTrusted(CertificateSource certificateSource) This method allows to declare all certificates from a given certificate source as trusted.booleanisTrusted(CertificateToken certificateToken) This method checks if a given certificate is trustedMethods inherited from class eu.europa.esig.dss.spi.x509.CommonCertificateSource
addCertificate, findTokensFromCertRef, getByCertificateDigest, getByPublicKey, getBySignerIdentifier, getBySki, getBySubject, getCertificates, getEntities, getNumberOfCertificates, getNumberOfEntities, isAllSelfSigned, isCertificateSourceEqual, isCertificateSourceEquivalent, isKnown, removeCertificate, reset
-
Constructor Details
-
CommonTrustedCertificateSource
public CommonTrustedCertificateSource()Default constructor
-
-
Method Details
-
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
This method allows to declare all certificates from a given certificate source as trusted.- Parameters:
certificateSource- the certificate source to be trusted
-
getTrustServices
Returns TrustProperties for the given certificate- Parameters:
token-CertificateToken- Returns:
- a list of
TrustProperties
-
getAlternativeOCSPUrls
Returns a list of alternative OCSP access point Urls for the certificate token- Parameters:
trustAnchor-CertificateToken- Returns:
- a list of
Strings
-
getAlternativeCRLUrls
Returns a list of alternative CRL access point Urls for the certificate token- Parameters:
trustAnchor-CertificateToken- Returns:
- a list of
Strings
-
isTrusted
Description copied from interface:CertificateSourceThis method checks if a given certificate is trusted- Specified by:
isTrustedin interfaceCertificateSource- Overrides:
isTrustedin classCommonCertificateSource- Parameters:
certificateToken- the certificate to be tested- Returns:
- true if the certificate is trusted
-