Interface TrustListManager
- All Known Implementing Classes:
FileBasedTrustListManager,MemoryTrustListManager
public interface TrustListManager
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddIssuerCertificate(X509Certificate certificate) Addcertificateto the Issuer Certificates list.voidaddTrustedCertificate(X509Certificate certificate) Addcertificateto the Trusted Certificates list.Get the list of Issuer Certificates.Get the list of Issuer CRLs.Get the last time the Trust List was updated.Get the list of Trusted Certificates.Get the list of Trusted CRLs.booleanremoveIssuerCertificate(ByteString thumbprint) Remove the certificate identified bythumbprintfrom the Issuer Certificates list.booleanremoveTrustedCertificate(ByteString thumbprint) Remove the certificate identified bythumbprintfrom the Trusted Certificates list.voidsetIssuerCertificates(List<X509Certificate> issuerCertificates) Set a new list of Issuer Certificates.voidsetIssuerCrls(List<X509CRL> issuerCrls) Set a new list of Issuer CRLs.voidsetTrustedCertificates(List<X509Certificate> trustedCertificates) Set a new list of Trusted Certificates.voidsetTrustedCrls(List<X509CRL> trustedCrls) Set a new list of Trusted CRLs.
-
Method Details
-
getIssuerCrls
Get the list of Issuer CRLs.- Returns:
- the list of Issuer
X509CRLs.
-
getTrustedCrls
Get the list of Trusted CRLs.- Returns:
- the list of Trusted
X509CRLs.
-
getIssuerCertificates
List<X509Certificate> getIssuerCertificates()Get the list of Issuer Certificates.- Returns:
- the list of Issuer
X509Certificates.
-
getTrustedCertificates
List<X509Certificate> getTrustedCertificates()Get the list of Trusted Certificates.- Returns:
- the list of Trusted
X509Certificates.
-
setIssuerCrls
Set a new list of Issuer CRLs. This replaces any existing Issuer CRLs.- Parameters:
issuerCrls- a new list of issuerX509CRLs.
-
setTrustedCrls
Set a new list of Trusted CRLs. This replaces any existing Trusted CRLs.- Parameters:
trustedCrls- a new list of trustedX509CRLs.
-
setIssuerCertificates
Set a new list of Issuer Certificates. This replaces any existing Issuer Certificates.- Parameters:
issuerCertificates- a new list of issuerX509Certificates.
-
setTrustedCertificates
Set a new list of Trusted Certificates. This replaces any existing Trusted Certificates.- Parameters:
trustedCertificates- a new list of trustedX509Certificates.
-
addIssuerCertificate
Addcertificateto the Issuer Certificates list.- Parameters:
certificate- theX509Certificateto add to the Issuer Certificates list.
-
addTrustedCertificate
Addcertificateto the Trusted Certificates list.- Parameters:
certificate- theX509Certificateto add to the Trusted Certificates list.
-
removeIssuerCertificate
Remove the certificate identified bythumbprintfrom the Issuer Certificates list.- Parameters:
thumbprint- the certificate thumbprint.- Returns:
trueif a certificate with a matching thumbprint was found.
-
removeTrustedCertificate
Remove the certificate identified bythumbprintfrom the Trusted Certificates list.- Parameters:
thumbprint- the certificate thumbprint.- Returns:
trueif a certificate with a matching thumbprint was found.
-
getLastUpdateTime
DateTime getLastUpdateTime()Get the last time the Trust List was updated.- Returns:
- the last time the Trust List was updated.
-