Package com.itextpdf.signatures
Class CertificateInfo
java.lang.Object
com.itextpdf.signatures.CertificateInfo
Class containing static methods that allow you to get information from an X509 Certificate: the issuer and the subject.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classClass that holds an X509 name.static classClass for breaking up an X500 Name into it's component tokens, similar toStringTokenizer. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IASN1PrimitivegetIssuer(byte[] enc) Get the "issuer" from the TBSCertificate bytes that are passed in.static CertificateInfo.X500NameGet the issuer fields from an X509 Certificate.static IASN1PrimitivegetSubject(byte[] enc) Get the "subject" from the TBSCertificate bytes that are passed in.static CertificateInfo.X500NameGet the subject fields from an X509 Certificate.
-
Constructor Details
-
CertificateInfo
public CertificateInfo()
-
-
Method Details
-
getIssuerFields
Get the issuer fields from an X509 Certificate.- Parameters:
-
cert- an X509Certificate - Returns:
- an X500Name
-
getIssuer
Get the "issuer" from the TBSCertificate bytes that are passed in.- Parameters:
-
enc- a TBSCertificate in a byte array - Returns:
- an IASN1Primitive
-
getSubjectFields
Get the subject fields from an X509 Certificate.- Parameters:
-
cert- an X509Certificate - Returns:
- an X500Name
-
getSubject
Get the "subject" from the TBSCertificate bytes that are passed in.- Parameters:
-
enc- A TBSCertificate in a byte array - Returns:
- a IASN1Primitive
-