iText 8.0.4 API
iText.Commons.Bouncycastle.Cert.IX509Certificate Interface Reference

This interface represents the wrapper for X509Certificate that provides the ability to switch between bouncy-castle and bouncy-castle FIPS implementations. More...

Inheritance diagram for iText.Commons.Bouncycastle.Cert.IX509Certificate:
iText.Bouncycastle.X509.X509CertificateBC iText.Bouncycastlefips.Cert.X509CertificateBCFips

Public Member Functions

IX500Name  GetIssuerDN ()
  Calls actual GetIssuerDN method for the wrapped X509Certificate object. More...
 
IBigInteger  GetSerialNumber ()
  Calls actual GetSerialNumber method for the wrapped X509Certificate object. More...
 
IPublicKey  GetPublicKey ()
  Calls actual GetPublicKey method for the wrapped X509Certificate object. More...
 
string  GetSigAlgOID ()
  Get the Signature Algorithms Object ID. More...
 
byte[]  GetSigAlgParams ()
  Get the signature algorithms parameters. (EG DSA Parameters) More...
 
byte[]  GetEncoded ()
  Calls actual GetEncoded method for the wrapped X509Certificate object. More...
 
byte[]  GetTbsCertificate ()
  Calls actual GetTbsCertificate method for the wrapped X509Certificate object. More...
 
IAsn1OctetString  GetExtensionValue (string oid)
  Calls actual GetExtensionValue method for the wrapped X509Certificate object. More...
 
void  Verify (IPublicKey issuerPublicKey)
  Calls actual Verify method for the wrapped X509Certificate object. More...
 
ISet< string >  GetCriticalExtensionOids ()
  Calls actual GetCriticalExtensionOids method for the wrapped X509Certificate object. More...
 
void  CheckValidity (DateTime time)
  Calls actual CheckValidity method for the wrapped X509Certificate object. More...
 
IX500Name  GetSubjectDN ()
  Returns actual SubjectDN property for the wrapped X509Certificate object. More...
 
string  GetEndDateTime ()
  Returns actual EndDate property of the certificate structure for the wrapped X509Certificate object. More...
 
DateTime  GetNotBefore ()
  Returns actual NotBefore property for the wrapped X509Certificate object. More...
 
DateTime  GetNotAfter ()
  Returns actual NotAfter property for the wrapped X509Certificate object. More...
 
IList  GetExtendedKeyUsage ()
  Calls actual GetExtendedKeyUsage method for the wrapped X509Certificate object. More...
 
bool[]  GetKeyUsage ()
  Calls actual GetKeyUsage method for the wrapped X509Certificate object. More...
 
int  GetBasicConstraints ()
  Call actual GetBasicConstraints method for the wrapped X509Certificate object. More...
 

Detailed Description

This interface represents the wrapper for X509Certificate that provides the ability to switch between bouncy-castle and bouncy-castle FIPS implementations.

Member Function Documentation

◆ CheckValidity()

void iText.Commons.Bouncycastle.Cert.IX509Certificate.CheckValidity ( DateTime  time )

Calls actual CheckValidity method for the wrapped X509Certificate object.

Parameters
time DateTime object

Implemented in iText.Bouncycastlefips.Cert.X509CertificateBCFips, and iText.Bouncycastle.X509.X509CertificateBC.

◆ GetBasicConstraints()

int iText.Commons.Bouncycastle.Cert.IX509Certificate.GetBasicConstraints ( )

Call actual GetBasicConstraints method for the wrapped X509Certificate object.

Returns
int value representing basic constraints extension

Implemented in iText.Bouncycastlefips.Cert.X509CertificateBCFips, and iText.Bouncycastle.X509.X509CertificateBC.

◆ GetCriticalExtensionOids()

ISet iText.Commons.Bouncycastle.Cert.IX509Certificate.GetCriticalExtensionOids ( )

Calls actual GetCriticalExtensionOids method for the wrapped X509Certificate object.

Returns
critical extension oids set.

Implemented in iText.Bouncycastlefips.Cert.X509CertificateBCFips, and iText.Bouncycastle.X509.X509CertificateBC.

◆ GetEncoded()

byte [] iText.Commons.Bouncycastle.Cert.IX509Certificate.GetEncoded ( )

Calls actual GetEncoded method for the wrapped X509Certificate object.

Returns
byte array.

Implemented in iText.Bouncycastle.X509.X509CertificateBC, and iText.Bouncycastlefips.Cert.X509CertificateBCFips.

◆ GetEndDateTime()

string iText.Commons.Bouncycastle.Cert.IX509Certificate.GetEndDateTime ( )

Returns actual EndDate property of the certificate structure for the wrapped X509Certificate object.

Returns
String time value.

Implemented in iText.Bouncycastlefips.Cert.X509CertificateBCFips, and iText.Bouncycastle.X509.X509CertificateBC.

◆ GetExtendedKeyUsage()

IList iText.Commons.Bouncycastle.Cert.IX509Certificate.GetExtendedKeyUsage ( )

Calls actual GetExtendedKeyUsage method for the wrapped X509Certificate object.

Returns
List of object identifiers represented as Strings.

Implemented in iText.Bouncycastlefips.Cert.X509CertificateBCFips, and iText.Bouncycastle.X509.X509CertificateBC.

◆ GetExtensionValue()

IAsn1OctetString iText.Commons.Bouncycastle.Cert.IX509Certificate.GetExtensionValue ( string  oid )

Calls actual GetExtensionValue method for the wrapped X509Certificate object.

Parameters
oid string oid value
Returns
extension value wrapper.

Implemented in iText.Bouncycastle.X509.X509CertificateBC, and iText.Bouncycastlefips.Cert.X509CertificateBCFips.

◆ GetIssuerDN()

IX500Name iText.Commons.Bouncycastle.Cert.IX509Certificate.GetIssuerDN ( )

Calls actual GetIssuerDN method for the wrapped X509Certificate object.

Returns
Issuer DN wrapper .

Implemented in iText.Bouncycastle.X509.X509CertificateBC, and iText.Bouncycastlefips.Cert.X509CertificateBCFips.

◆ GetKeyUsage()

bool [] iText.Commons.Bouncycastle.Cert.IX509Certificate.GetKeyUsage ( )

Calls actual GetKeyUsage method for the wrapped X509Certificate object.

Returns
bool array representing certificate key usage

Implemented in iText.Bouncycastlefips.Cert.X509CertificateBCFips, and iText.Bouncycastle.X509.X509CertificateBC.

◆ GetNotAfter()

DateTime iText.Commons.Bouncycastle.Cert.IX509Certificate.GetNotAfter ( )

Returns actual NotAfter property for the wrapped X509Certificate object.

Returns
DateTime value.

Implemented in iText.Bouncycastlefips.Cert.X509CertificateBCFips, and iText.Bouncycastle.X509.X509CertificateBC.

◆ GetNotBefore()

DateTime iText.Commons.Bouncycastle.Cert.IX509Certificate.GetNotBefore ( )

Returns actual NotBefore property for the wrapped X509Certificate object.

Returns
DateTime value.

Implemented in iText.Bouncycastlefips.Cert.X509CertificateBCFips, and iText.Bouncycastle.X509.X509CertificateBC.

◆ GetPublicKey()

IPublicKey iText.Commons.Bouncycastle.Cert.IX509Certificate.GetPublicKey ( )

Calls actual GetPublicKey method for the wrapped X509Certificate object.

Returns
Public key wrapper.

Implemented in iText.Bouncycastle.X509.X509CertificateBC, and iText.Bouncycastlefips.Cert.X509CertificateBCFips.

◆ GetSerialNumber()

IBigInteger iText.Commons.Bouncycastle.Cert.IX509Certificate.GetSerialNumber ( )

Calls actual GetSerialNumber method for the wrapped X509Certificate object.

Returns
Serial number.

Implemented in iText.Bouncycastle.X509.X509CertificateBC, and iText.Bouncycastlefips.Cert.X509CertificateBCFips.

◆ GetSigAlgOID()

string iText.Commons.Bouncycastle.Cert.IX509Certificate.GetSigAlgOID ( )

Get the Signature Algorithms Object ID.

Returns
A string containg a '.' separated object id.

Implemented in iText.Bouncycastle.X509.X509CertificateBC, and iText.Bouncycastlefips.Cert.X509CertificateBCFips.

◆ GetSigAlgParams()

byte [] iText.Commons.Bouncycastle.Cert.IX509Certificate.GetSigAlgParams ( )

Get the signature algorithms parameters. (EG DSA Parameters)

Returns
A byte array containing the Der encoded version of the parameters or null if there are none.

Implemented in iText.Bouncycastle.X509.X509CertificateBC, and iText.Bouncycastlefips.Cert.X509CertificateBCFips.

◆ GetSubjectDN()

IX500Name iText.Commons.Bouncycastle.Cert.IX509Certificate.GetSubjectDN ( )

Returns actual SubjectDN property for the wrapped X509Certificate object.

Returns
X500Name wrapper.

Implemented in iText.Bouncycastlefips.Cert.X509CertificateBCFips, and iText.Bouncycastle.X509.X509CertificateBC.

◆ GetTbsCertificate()

byte [] iText.Commons.Bouncycastle.Cert.IX509Certificate.GetTbsCertificate ( )

Calls actual GetTbsCertificate method for the wrapped X509Certificate object.

Returns
byte array.

Implemented in iText.Bouncycastle.X509.X509CertificateBC, and iText.Bouncycastlefips.Cert.X509CertificateBCFips.

◆ Verify()

void iText.Commons.Bouncycastle.Cert.IX509Certificate.Verify ( IPublicKey  issuerPublicKey )

Calls actual Verify method for the wrapped X509Certificate object.

Parameters
issuerPublicKey public key wrapper

Implemented in iText.Bouncycastlefips.Cert.X509CertificateBCFips, and iText.Bouncycastle.X509.X509CertificateBC.