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.
|
Certificate |
getCertificateTrustedForCA(String certificateName)
Get certificate, if any, which is trusted to be a CA, which corresponds to the provided certificate name.
|
Certificate |
getCertificateTrustedForCrl(String certificateName)
Get certificate, if any, which is trusted for CRL generation, which corresponds to the provided certificate name.
|
Certificate |
getCertificateTrustedForOcsp(String certificateName)
Get certificate, if any, which is trusted for OCSP response generation,
which corresponds to the provided certificate name.
|
Certificate |
getCertificateTrustedForTimestamp(String certificateName)
Get certificate, if any, which is trusted for timestamp generation,
which corresponds to the provided certificate name.
|
Certificate |
getGenerallyTrustedCertificate(String certificateName)
Get certificate, if any, which is trusted for any usage, which corresponds to the provided certificate name.
|
Certificate |
getKnownCertificate(String certificateName)
Get certificate, 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 Certificate getGenerallyTrustedCertificate(String certificateName)
certificateName - String certificate nameCertificate which corresponds to the provided certificate namepublic Certificate getCertificateTrustedForOcsp(String certificateName)
certificateName - String certificate nameCertificate which corresponds to the provided certificate namepublic Certificate getCertificateTrustedForCrl(String certificateName)
certificateName - String certificate nameCertificate which corresponds to the provided certificate namepublic Certificate getCertificateTrustedForTimestamp(String certificateName)
certificateName - String certificate nameCertificate which corresponds to the provided certificate namepublic Certificate getCertificateTrustedForCA(String certificateName)
certificateName - String certificate nameCertificate which corresponds to the provided certificate namepublic Certificate getKnownCertificate(String certificateName)
certificateName - String certificate nameCertificate which corresponds to the provided certificate namepublic Collection<Certificate> getAllTrustedCertificates()
Collection of Certificate instancesCopyright © 1998–2024 Apryse Group NV. All rights reserved.