public interface TSLCertificateSource
extends eu.europa.esig.dss.spi.x509.CertificateSource
Modifier and Type | Method and Description |
---|---|
void |
addCertificate(eu.europa.esig.dss.model.x509.CertificateToken certificate,
List<eu.europa.esig.dss.spi.tsl.TrustProperties> trustProperties)
This method allows to define (to add) any certificate as trusted.
|
void |
addTSLCertificate(X509Certificate certificate)
This method allows to define (to add) any certificate as trusted.
|
List<eu.europa.esig.dss.model.x509.CertificateToken> |
getCertificates()
Retrieves the list of all certificate tokens from this source.
|
int |
getNumberOfCertificates()
This method returns the number of stored certificates in this source
|
int |
getNumberOfTrustedPublicKeys() |
eu.europa.esig.dss.spi.tsl.TLValidationJobSummary |
getSummary() |
List<eu.europa.esig.dss.spi.tsl.TrustProperties> |
getTrustServices(eu.europa.esig.dss.model.x509.CertificateToken token)
Retrieves the list of trust properties for the gifen certificate token.
|
void |
invalidateCache()
Invalidates cache
Only applicable when cache is used.
|
void |
refresh() |
addCertificate, findTokensFromCertRef, getByCertificateDigest, getByPublicKey, getBySignerIdentifier, getBySki, getBySubject, getCertificateSourceType, getEntities, isAllSelfSigned, isCertificateSourceEqual, isCertificateSourceEquivalent, isKnown, isTrusted
void addTSLCertificate(X509Certificate certificate)
certificate
- X509 certificate to be added to the list, a certificate you have to trust.void addCertificate(eu.europa.esig.dss.model.x509.CertificateToken certificate, List<eu.europa.esig.dss.spi.tsl.TrustProperties> trustProperties)
certificate
- the certificate you have to trusttrustProperties
- list of the service information associated to the serviceList<eu.europa.esig.dss.model.x509.CertificateToken> getCertificates()
getCertificates
in interface eu.europa.esig.dss.spi.x509.CertificateSource
List<eu.europa.esig.dss.spi.tsl.TrustProperties> getTrustServices(eu.europa.esig.dss.model.x509.CertificateToken token)
token
- int getNumberOfCertificates()
eu.europa.esig.dss.spi.tsl.TLValidationJobSummary getSummary()
int getNumberOfTrustedPublicKeys()
void invalidateCache()
void refresh()
Copyright © 2024. All rights reserved.