Pkcs11Interop.PDF  1.3.0
Static Public Member Functions | List of all members
Net.Pkcs11Interop.PDF.CertUtils Class Reference

Utility class that helps with certificate processing More...

Static Public Member Functions

static X509Certificate2 ToDotNetObject (byte[] data)
 Converts raw certificate data to the instance of .NET X509Certificate2 class More...
 
static X509Certificate2 ToDotNetObject (BCX509.X509Certificate cert)
 Converts the instance of BouncyCastle X509Certificate class to the instance of .NET X509Certificate2 class More...
 
static BCX509.X509Certificate ToBouncyCastleObject (byte[] data)
 Converts raw certificate data to the instance of BouncyCastle X509Certificate class More...
 
static BCX509.X509Certificate ToBouncyCastleObject (X509Certificate2 cert)
 Converts the instance of .NET X509Certificate2 class to the instance of BouncyCastle X509Certificate class More...
 
static byte[] ToDerEncodedByteArray (BCX509.X509Certificate cert)
 Converts the instance of BouncyCastle X509Certificate class to the DER encoded byte array More...
 
static byte[] ToDerEncodedByteArray (X509Certificate2 cert)
 Converts the instance of .NET X509Certificate2 class to the DER encoded byte array More...
 
static bool IsSelfSigned (BCX509.X509Certificate certificate)
 Checks whether certificate is self-signed More...
 
static ICollection< BCX509.X509Certificate > BuildCertPath (byte[] signingCertificate, List< byte[]> otherCertificates)
 Builds certification path for provided signing certificate More...
 

Detailed Description

Utility class that helps with certificate processing

Member Function Documentation

static ICollection<BCX509.X509Certificate> Net.Pkcs11Interop.PDF.CertUtils.BuildCertPath ( byte[]  signingCertificate,
List< byte[]>  otherCertificates 
)
static

Builds certification path for provided signing certificate

Parameters
signingCertificateSigning certificate
otherCertificatesOther certificates that should be used in path building process. Self-signed certificates from this list are used as trust anchors.
Returns
Certification path for provided signing certificate
static bool Net.Pkcs11Interop.PDF.CertUtils.IsSelfSigned ( BCX509.X509Certificate  certificate)
static

Checks whether certificate is self-signed

Parameters
certificateCertificate to be checked
Returns
True if certificate is self-signed; false otherwise
static BCX509.X509Certificate Net.Pkcs11Interop.PDF.CertUtils.ToBouncyCastleObject ( byte[]  data)
static

Converts raw certificate data to the instance of BouncyCastle X509Certificate class

Parameters
dataRaw certificate data
Returns
Instance of BouncyCastle X509Certificate class
static BCX509.X509Certificate Net.Pkcs11Interop.PDF.CertUtils.ToBouncyCastleObject ( X509Certificate2  cert)
static

Converts the instance of .NET X509Certificate2 class to the instance of BouncyCastle X509Certificate class

Parameters
certInstance of .NET X509Certificate2 class
Returns
Instance of BouncyCastle X509Certificate class
static byte [] Net.Pkcs11Interop.PDF.CertUtils.ToDerEncodedByteArray ( BCX509.X509Certificate  cert)
static

Converts the instance of BouncyCastle X509Certificate class to the DER encoded byte array

Parameters
certInstance of BouncyCastle X509Certificate class
Returns
DER encoded byte array
static byte [] Net.Pkcs11Interop.PDF.CertUtils.ToDerEncodedByteArray ( X509Certificate2  cert)
static

Converts the instance of .NET X509Certificate2 class to the DER encoded byte array

Parameters
certInstance of .NET X509Certificate2 class
Returns
DER encoded byte array
static X509Certificate2 Net.Pkcs11Interop.PDF.CertUtils.ToDotNetObject ( byte[]  data)
static

Converts raw certificate data to the instance of .NET X509Certificate2 class

Parameters
dataRaw certificate data
Returns
Instance of .NET X509Certificate2 class
static X509Certificate2 Net.Pkcs11Interop.PDF.CertUtils.ToDotNetObject ( BCX509.X509Certificate  cert)
static

Converts the instance of BouncyCastle X509Certificate class to the instance of .NET X509Certificate2 class

Parameters
certInstance of BouncyCastle X509Certificate class
Returns
Instance of .NET X509Certificate2 class

The documentation for this class was generated from the following file: