public class

X509CertificatePair

extends Object
java.lang.Object
   ↳ org.bouncycastle.x509.X509CertificatePair

Class Overview

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.

Summary

Public Constructors
X509CertificatePair(X509Certificate forward, X509Certificate reverse)
Constructor.
X509CertificatePair(CertificatePair pair)
Constructor from a ASN.1 CertificatePair structure.
Public Methods
boolean equals(Object o)
byte[] getEncoded()
X509Certificate getForward()
Returns the certificate from the other CA to this CA.
X509Certificate getReverse()
Return the certificate from this CA to the other CA.
int hashCode()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public X509CertificatePair (X509Certificate forward, X509Certificate reverse)

Constructor.

Parameters
forward Certificate from the other CA to this CA.
reverse Certificate from this CA to the other CA.

public X509CertificatePair (CertificatePair pair)

Constructor from a ASN.1 CertificatePair structure.

Parameters
pair The CertificatePair ASN.1 object.

Public Methods

public boolean equals (Object o)

public byte[] getEncoded ()

public X509Certificate getForward ()

Returns the certificate from the other CA to this CA.

Returns
  • Returns the forward certificate.

public X509Certificate getReverse ()

Return the certificate from this CA to the other CA.

Returns
  • Returns the reverse certificate.

public int hashCode ()