Package org.bouncycastle.x509
Class X509CertificatePair
java.lang.Object
org.bouncycastle.x509.X509CertificatePair
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.
-
Constructor Summary
ConstructorDescriptionX509CertificatePair
(X509Certificate forward, X509Certificate reverse) Constructor.Constructor from a ASN.1 CertificatePair structure. -
Method Summary
Modifier and TypeMethodDescriptionboolean
byte[]
Returns the certificate from the other CA to this CA.Return the certificate from this CA to the other CA.int
hashCode()
-
Constructor Details
-
X509CertificatePair
Constructor.- Parameters:
forward
- Certificate from the other CA to this CA.reverse
- Certificate from this CA to the other CA.
-
X509CertificatePair
Constructor from a ASN.1 CertificatePair structure.- Parameters:
pair
- TheCertificatePair
ASN.1 object.- Throws:
CertificateParsingException
-
-
Method Details
-
getEncoded
- Throws:
CertificateEncodingException
-
getForward
Returns the certificate from the other CA to this CA.- Returns:
- Returns the forward certificate.
-
getReverse
Return the certificate from this CA to the other CA.- Returns:
- Returns the reverse certificate.
-
equals
-
hashCode
public int hashCode()
-