Package com.itextpdf.signatures
Class CertificateInfo
- java.lang.Object
-
- com.itextpdf.signatures.CertificateInfo
-
public class CertificateInfo extends java.lang.Object
Class containing static methods that allow you to get information from an X509 Certificate: the issuer and the subject.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CertificateInfo.X500Name
Class that holds an X509 name.static class
CertificateInfo.X509NameTokenizer
Class for breaking up an X500 Name into it's component tokens, similar toStringTokenizer
.
-
Field Summary
Fields Modifier and Type Field Description private static IBouncyCastleFactory
BOUNCY_CASTLE_FACTORY
-
Constructor Summary
Constructors Constructor Description CertificateInfo()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IASN1Primitive
getIssuer(byte[] enc)
Get the "issuer" from the TBSCertificate bytes that are passed in.static CertificateInfo.X500Name
getIssuerFields(java.security.cert.X509Certificate cert)
Get the issuer fields from an X509 Certificate.static IASN1Primitive
getSubject(byte[] enc)
Get the "subject" from the TBSCertificate bytes that are passed in.static CertificateInfo.X500Name
getSubjectFields(java.security.cert.X509Certificate cert)
Get the subject fields from an X509 Certificate.
-
-
-
Field Detail
-
BOUNCY_CASTLE_FACTORY
private static final IBouncyCastleFactory BOUNCY_CASTLE_FACTORY
-
-
Method Detail
-
getIssuerFields
public static CertificateInfo.X500Name getIssuerFields(java.security.cert.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(java.security.cert.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
-
-