Class CertificateInfo

java.lang.Object
com.itextpdf.signatures.CertificateInfo

public class CertificateInfo extends Object
Class containing static methods that allow you to get information from an X509 Certificate: the issuer and the subject.
  • Constructor Details

    • CertificateInfo

      public CertificateInfo()
  • Method Details

    • getIssuerFields

      public static CertificateInfo.X500Name getIssuerFields (X509Certificate cert)
      Get the issuer fields from an X509 Certificate.
      Parameters:
      cert - an X509Certificate
      Returns:
      an X500Name
    • getIssuer

      public static IASN1Primitive getIssuer (byte[] enc)
      Get the "issuer" from the TBSCertificate bytes that are passed in.
      Parameters:
      enc - a TBSCertificate in a byte array
      Returns:
      an IASN1Primitive
    • getSubjectFields

      public static CertificateInfo.X500Name getSubjectFields (X509Certificate cert)
      Get the subject fields from an X509 Certificate.
      Parameters:
      cert - an X509Certificate
      Returns:
      an X500Name
    • getSubject

      public static IASN1Primitive getSubject (byte[] enc)
      Get the "subject" from the TBSCertificate bytes that are passed in.
      Parameters:
      enc - A TBSCertificate in a byte array
      Returns:
      a IASN1Primitive