com.itextpdf.text.pdf.security
Class CertificateInfo

java.lang.Object
  extended by com.itextpdf.text.pdf.security.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.


Nested Class Summary
static class CertificateInfo.X500Name
          a class that holds an X509 name
static class CertificateInfo.X509NameTokenizer
          class for breaking up an X500 Name into it's component tokens, similar to java.util.StringTokenizer.
 
Constructor Summary
CertificateInfo()
           
 
Method Summary
static org.bouncycastle.asn1.ASN1Primitive getIssuer(byte[] enc)
          Get the "issuer" from the TBSCertificate bytes that are passed in
static CertificateInfo.X500Name getIssuerFields(X509Certificate cert)
          Get the issuer fields from an X509 Certificate
static org.bouncycastle.asn1.ASN1Primitive getSubject(byte[] enc)
          Get the "subject" from the TBSCertificate bytes that are passed in
static CertificateInfo.X500Name getSubjectFields(X509Certificate cert)
          Get the subject fields from an X509 Certificate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CertificateInfo

public CertificateInfo()
Method Detail

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 org.bouncycastle.asn1.ASN1Primitive getIssuer(byte[] enc)
Get the "issuer" from the TBSCertificate bytes that are passed in

Parameters:
enc - a TBSCertificate in a byte array
Returns:
a ASN1Primitive

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 org.bouncycastle.asn1.ASN1Primitive getSubject(byte[] enc)
Get the "subject" from the TBSCertificate bytes that are passed in

Parameters:
enc - A TBSCertificate in a byte array
Returns:
a ASN1Primitive


Copyright © 2013. All Rights Reserved.