|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.itextpdf.text.pdf.security.CertificateUtil
public class CertificateUtil
This class contains a series of static methods that allow you to retrieve information from a Certificate.
Constructor Summary | |
---|---|
CertificateUtil()
|
Method Summary | |
---|---|
static java.security.cert.CRL |
getCRL(java.lang.String url)
Gets the CRL object using a CRL URL. |
static java.security.cert.CRL |
getCRL(java.security.cert.X509Certificate certificate)
Gets a CRL from a certificate |
static java.lang.String |
getCRLURL(java.security.cert.X509Certificate certificate)
Gets the URL of the Certificate Revocation List for a Certificate |
static java.lang.String |
getOCSPURL(java.security.cert.X509Certificate certificate)
Retrieves the OCSP URL from the given certificate. |
static java.lang.String |
getTSAURL(java.security.cert.X509Certificate certificate)
Gets the URL of the TSA if it's available on the certificate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CertificateUtil()
Method Detail |
---|
public static java.security.cert.CRL getCRL(java.security.cert.X509Certificate certificate) throws java.security.cert.CertificateException, java.security.cert.CRLException, java.io.IOException
certificate
-
java.security.cert.CertificateException
java.security.cert.CRLException
java.io.IOException
public static java.lang.String getCRLURL(java.security.cert.X509Certificate certificate) throws java.security.cert.CertificateParsingException
certificate
- the Certificate
java.security.cert.CertificateParsingException
java.io.IOException
public static java.security.cert.CRL getCRL(java.lang.String url) throws java.io.IOException, java.security.cert.CertificateException, java.security.cert.CRLException
url
- the URL where to get the CRL
java.io.IOException
java.security.cert.CertificateException
java.security.cert.CRLException
public static java.lang.String getOCSPURL(java.security.cert.X509Certificate certificate)
certificate
- the certificate
java.io.IOException
public static java.lang.String getTSAURL(java.security.cert.X509Certificate certificate)
certificate
- a certificate
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |