public class TrustedCertificatesStore extends Object
| Constructor and Description |
|---|
TrustedCertificatesStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCATrustedCertificates(Collection<Certificate> certificates)
Add collection of certificates to be trusted to be CA certificates.
|
void |
addCrlTrustedCertificates(Collection<Certificate> certificates)
Add collection of certificates to be trusted for CRL signing.
|
void |
addGenerallyTrustedCertificates(Collection<Certificate> certificates)
Add collection of certificates to be trusted for any possible usage.
|
void |
addOcspTrustedCertificates(Collection<Certificate> certificates)
Add collection of certificates to be trusted for OCSP response signing.
|
void |
addTimestampTrustedCertificates(Collection<Certificate> certificates)
Add collection of certificates to be trusted for timestamping.
|
Collection<Certificate> |
getAllTrustedCertificates()
Get all the certificates, which where provided to this storage as trusted certificate.
|
Set<Certificate> |
getAllTrustedCertificates(String name)
Get all the certificates having name as subject, which where provided to this storage as trusted certificate.
|
Set<Certificate> |
getCertificatesTrustedForCA(String certificateName)
Get certificates, if any,
which is trusted to be a CA, which corresponds to the provided certificate name.
|
Set<Certificate> |
getCertificatesTrustedForCrl(String certificateName)
Get certificates, if any, which is trusted for CRL generation,
which corresponds to the provided certificate name.
|
Set<Certificate> |
getCertificatesTrustedForOcsp(String certificateName)
Get certificates, if any, which is trusted for OCSP response generation,
which corresponds to the provided certificate name.
|
Set<Certificate> |
getCertificatesTrustedForTimestamp(String certificateName)
Get certificate, if any, which is trusted for timestamp generation,
which corresponds to the provided certificate name.
|
Set<Certificate> |
getGenerallyTrustedCertificates(String certificateName)
Get certificates, if any, which is trusted for any usage, which corresponds to the provided certificate name.
|
Set<Certificate> |
getKnownCertificates(String certificateName)
Get certificates, if any, which corresponds to the provided certificate name.
|
boolean |
isCertificateGenerallyTrusted(Certificate certificate)
Check if provided certificate is configured to be trusted for any purpose.
|
boolean |
isCertificateTrustedForCA(Certificate certificate)
Check if provided certificate is configured to be trusted to be CA.
|
boolean |
isCertificateTrustedForCrl(Certificate certificate)
Check if provided certificate is configured to be trusted for CRL generation.
|
boolean |
isCertificateTrustedForOcsp(Certificate certificate)
Check if provided certificate is configured to be trusted for OCSP response generation.
|
boolean |
isCertificateTrustedForTimestamp(Certificate certificate)
Check if provided certificate is configured to be trusted for timestamp generation.
|
public void addGenerallyTrustedCertificates(Collection<Certificate> certificates)
certificates - Collection of Certificate instancespublic void addOcspTrustedCertificates(Collection<Certificate> certificates)
certificates - Collection of Certificate instancespublic void addCrlTrustedCertificates(Collection<Certificate> certificates)
certificates - Collection of Certificate instancespublic void addTimestampTrustedCertificates(Collection<Certificate> certificates)
certificates - Collection of Certificate instancespublic void addCATrustedCertificates(Collection<Certificate> certificates)
certificates - Collection of Certificate instancespublic boolean isCertificateGenerallyTrusted(Certificate certificate)
certificate - Certificate to be checkedtrue is provided certificate is generally trusted, false otherwisepublic boolean isCertificateTrustedForOcsp(Certificate certificate)
certificate - Certificate to be checkedtrue is provided certificate is trusted for OCSP generation, false otherwisepublic boolean isCertificateTrustedForCrl(Certificate certificate)
certificate - Certificate to be checkedtrue is provided certificate is trusted for CRL generation, false otherwisepublic boolean isCertificateTrustedForTimestamp(Certificate certificate)
certificate - Certificate to be checkedtrue is provided certificate is trusted for timestamp generation, false otherwisepublic boolean isCertificateTrustedForCA(Certificate certificate)
certificate - Certificate to be checkedtrue is provided certificate is trusted for certificates generation, false otherwisepublic Set<Certificate> getGenerallyTrustedCertificates(String certificateName)
certificateName - String certificate nameCertificate which correspond to the provided certificate namepublic Set<Certificate> getCertificatesTrustedForOcsp(String certificateName)
certificateName - String certificate nameCertificate which correspond to the provided certificate namepublic Set<Certificate> getCertificatesTrustedForCrl(String certificateName)
certificateName - String certificate nameCertificate which correspond to the provided certificate namepublic Set<Certificate> getCertificatesTrustedForTimestamp(String certificateName)
certificateName - String certificate nameCertificate which correspond to the provided certificate namepublic Set<Certificate> getCertificatesTrustedForCA(String certificateName)
certificateName - String certificate nameCertificate which correspond to the provided certificate namepublic Set<Certificate> getKnownCertificates(String certificateName)
certificateName - String certificate nameCertificate which correspond to the provided certificate namepublic Collection<Certificate> getAllTrustedCertificates()
Collection of Certificate instancespublic Set<Certificate> getAllTrustedCertificates(String name)
name - the subject name value for which to retrieve all trusted certificateCertificate which correspond to the provided certificate nameCopyright © 1998–2025 Apryse Group NV. All rights reserved.