public class CertificateUtil extends Object
Constructor | Description |
---|---|
CertificateUtil() |
Modifier and Type | Method | 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
- CertificateException
CRLException
IOException
public static String getCRLURL(X509Certificate certificate) throws CertificateParsingException
certificate
- the CertificateCertificateParsingException
IOException
public static CRL getCRL(String url) throws IOException, CertificateException, CRLException
url
- the URL where to get the CRLIOException
CertificateException
CRLException
public static String getOCSPURL(X509Certificate certificate)
certificate
- the certificateIOException
public static String getTSAURL(X509Certificate certificate)
certificate
- a certificateIOException
Copyright © 2018. All rights reserved.