Table of Contents

Class X509CertificatePair

Namespace
Org.BouncyCastle.X509
Assembly
BouncyCastle.Cryptography.dll
public class X509CertificatePair
Inheritance
X509CertificatePair
Inherited Members

Remarks

This class contains a cross certificate pair. Cross certificates pairs may contain two cross signed certificates from two CAs. A certificate from the other CA to this CA is contained in the forward certificate, the certificate from this CA to the other CA is contained in the reverse certificate.

Constructors

X509CertificatePair(CertificatePair)

Constructor from a ASN.1 CertificatePair structure.

public X509CertificatePair(CertificatePair pair)

Parameters

pair CertificatePair

The CertificatePair ASN.1 object.

X509CertificatePair(X509Certificate, X509Certificate)

Constructor

public X509CertificatePair(X509Certificate forward, X509Certificate reverse)

Parameters

forward X509Certificate

Certificate from the other CA to this CA.

reverse X509Certificate

Certificate from this CA to the other CA.

Properties

Forward

Returns the certificate from the other CA to this CA.

public X509Certificate Forward { get; }

Property Value

X509Certificate

Reverse

Returns the certificate from this CA to the other CA.

public X509Certificate Reverse { get; }

Property Value

X509Certificate

Methods

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetCertificatePair()

public CertificatePair GetCertificatePair()

Returns

CertificatePair

GetEncoded()

public byte[] GetEncoded()

Returns

byte[]

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.