public class CertificateUtil extends Object
| Constructor and Description |
|---|
CertificateUtil() |
| Modifier and Type | Method and Description |
|---|---|
static CRL |
getCRL(String url)
Gets the CRL object using a CRL URL.
|
static CRL |
getCRL(X509Certificate certificate)
Gets a CRL from a certificate
|
static String |
getCRLURL(X509Certificate certificate)
Gets the URL of the Certificate Revocation List for a Certificate
|
static String |
getOCSPURL(X509Certificate certificate)
Retrieves the OCSP URL from the given certificate.
|
static String |
getTSAURL(X509Certificate certificate)
Gets the URL of the TSA if it's available on the certificate
|
public static CRL getCRL(X509Certificate certificate) throws CertificateException, CRLException, IOException
certificate - CertificateExceptionCRLExceptionIOExceptionpublic static String getCRLURL(X509Certificate certificate) throws CertificateParsingException
certificate - the CertificateCertificateParsingExceptionIOExceptionpublic static CRL getCRL(String url) throws IOException, CertificateException, CRLException
url - the URL where to get the CRLIOExceptionCertificateExceptionCRLExceptionpublic static String getOCSPURL(X509Certificate certificate)
certificate - the certificateIOExceptionpublic static String getTSAURL(X509Certificate certificate)
certificate - a certificateIOExceptionCopyright © 2024. All rights reserved.