org.bouncycastle.x509
Class X509CertificatePair
java.lang.Object
org.bouncycastle.x509.X509CertificatePair
public class X509CertificatePair
extends java.lang.Object
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.
X509CertificatePair
public X509CertificatePair(X509Certificate forward,
X509Certificate reverse)
Constructor.
forward
- Certificate from the other CA to this CA.reverse
- Certificate from this CA to the other CA.
X509CertificatePair
public X509CertificatePair(CertificatePair pair)
throws CertificateParsingException
Constructor from a ASN.1 CertificatePair structure.
pair
- The CertificatePair
ASN.1 object.
equals
public boolean equals(Object o)
getEncoded
public byte[] getEncoded()
throws CertificateEncodingException
getForward
public X509Certificate getForward()
Returns the certificate from the other CA to this CA.
- Returns the forward certificate.
getReverse
public X509Certificate getReverse()
Return the certificate from this CA to the other CA.
- Returns the reverse certificate.
hashCode
public int hashCode()