java.lang.Object | |
↳ | sun.security.provider.certpath.X509CertificatePair |
This class represents an X.509 Certificate Pair object, which is primarily used to hold a pair of cross certificates issued between Certification Authorities. The ASN.1 structure is listed below. The forward certificate of the CertificatePair contains a certificate issued to this CA by another CA. The reverse certificate of the CertificatePair contains a certificate issued by this CA to another CA. When both the forward and the reverse certificates are present in the CertificatePair, the issuer name in one certificate shall match the subject name in the other and vice versa, and the subject public key in one certificate shall be capable of verifying the digital signature on the other certificate and vice versa. If a subject public key in one certificate does not contain required key algorithm parameters, then the signature check involving that key is not done.
The ASN.1 syntax for this object is:
CertificatePair ::= SEQUENCE { forward [0] Certificate OPTIONAL, reverse [1] Certificate OPTIONAL -- at least one of the pair shall be present -- }
This structure uses EXPLICIT tagging. References: Annex A of X.509(2000), X.509(1997).
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an empty instance of X509CertificatePair.
| |||||||||||
Creates an instance of X509CertificatePair.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Clear the cache for debugging.
| |||||||||||
Create a X509CertificatePair from its encoding.
| |||||||||||
Return the DER encoded form of the certificate pair.
| |||||||||||
Returns the forward component of the certificate pair.
| |||||||||||
Returns the reverse component of the certificate pair.
| |||||||||||
Sets the forward component of the certificate pair.
| |||||||||||
Sets the reverse component of the certificate pair.
| |||||||||||
Return a printable representation of the certificate pair.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates an empty instance of X509CertificatePair.
Creates an instance of X509CertificatePair. At least one of the pair must be non-null.
forward | The forward component of the certificate pair which represents a certificate issued to this CA by other CAs. |
---|---|
reverse | The reverse component of the certificate pair which represents a certificate issued by this CA to other CAs. |
CertificateException | If an exception occurs. |
---|
Clear the cache for debugging.
Create a X509CertificatePair from its encoding. Uses cache lookup if possible.
CertificateException |
---|
Return the DER encoded form of the certificate pair.
If an encoding exception occurs. | |
CertificateEncodingException |
Returns the forward component of the certificate pair.
Returns the reverse component of the certificate pair.
Sets the forward component of the certificate pair.
CertificateException |
---|
Sets the reverse component of the certificate pair.
CertificateException |
---|
Return a printable representation of the certificate pair.