iText 8.0.2 API
All Classes Namespaces Functions Variables Enumerations Enumerator Properties
iText.Signatures.CertificateUtil Class Reference

This class contains a series of static methods that allow you to retrieve information from a Certificate. More...

Static Public Member Functions

static IX509Crl  GetCRL (IX509Certificate certificate)
  Gets a CRL from an X509 certificate. More...
 
static String  GetCRLURL (IX509Certificate certificate)
  Gets the URL of the Certificate Revocation List for a Certificate More...
 
static IX509Crl  GetCRL (String url)
  Gets the CRL object using a CRL URL. More...
 
static String  GetOCSPURL (IX509Certificate certificate)
  Retrieves the OCSP URL from the given certificate. More...
 
static String  GetTSAURL (IX509Certificate certificate)
  Gets the URL of the TSA if it's available on the certificate More...
 

Detailed Description

This class contains a series of static methods that allow you to retrieve information from a Certificate.

Member Function Documentation

◆ GetCRL() [1/2]

static IX509Crl iText.Signatures.CertificateUtil.GetCRL ( IX509Certificate  certificate )
inlinestatic

Gets a CRL from an X509 certificate.

Parameters
certificate the X509Certificate to extract the CRL from
Returns
CRL or null if there's no CRL available

◆ GetCRL() [2/2]

static IX509Crl iText.Signatures.CertificateUtil.GetCRL ( String  url )
inlinestatic

Gets the CRL object using a CRL URL.

Parameters
url the URL where the CRL is located
Returns
CRL object

◆ GetCRLURL()

static String iText.Signatures.CertificateUtil.GetCRLURL ( IX509Certificate  certificate )
inlinestatic

Gets the URL of the Certificate Revocation List for a Certificate

Parameters
certificate the Certificate
Returns
the String where you can check if the certificate was revoked

◆ GetOCSPURL()

static String iText.Signatures.CertificateUtil.GetOCSPURL ( IX509Certificate  certificate )
inlinestatic

Retrieves the OCSP URL from the given certificate.

Parameters
certificate the certificate
Returns
the URL or null

◆ GetTSAURL()

static String iText.Signatures.CertificateUtil.GetTSAURL ( IX509Certificate  certificate )
inlinestatic

Gets the URL of the TSA if it's available on the certificate

Parameters
certificate a certificate
Returns
a TSA URL