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
pairCertificatePairThe
CertificatePairASN.1 object.
X509CertificatePair(X509Certificate, X509Certificate)
Constructor
public X509CertificatePair(X509Certificate forward, X509Certificate reverse)
Parameters
forwardX509CertificateCertificate from the other CA to this CA.
reverseX509CertificateCertificate 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
Reverse
Returns the certificate from this CA to the other CA.
public X509Certificate Reverse { get; }
Property Value
Methods
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetCertificatePair()
public CertificatePair GetCertificatePair()
Returns
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.