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).
| Modifier and Type | Field and Description |
|---|---|
| private static final Cache | |
| private byte[] | |
| private X509Certificate | |
| private X509Certificate | |
| private static final byte | |
| private static final byte |
| Access | Constructor and Description |
|---|---|
| public | |
| public | X509CertificatePair(X509Certificate
The forward component of the certificate pair
which represents a certificate issued to this CA by other CAs. forward, X509Certificate The reverse component of the certificate pair
which represents a certificate issued by this CA to other CAs. reverse)Creates an instance of X509CertificatePair. |
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public static synchronized void | |
| private void | |
| public static synchronized X509CertificatePair | |
| public byte[] | Returns: The encoded form of the certificate pair.Return the DER encoded form of the certificate pair. |
| public X509Certificate | Returns: The forward certificate, or null if not set.Returns the forward component of the certificate pair. |
| public X509Certificate | Returns: The reverse certificate, or null if not set.Returns the reverse component of the certificate pair. |
| private void | |
| public void | |
| public void | |
| public String | Returns: A String describing the contents of the pair.Overrides java. Return a printable representation of the certificate pair. |
| cache | back to summary |
|---|---|
| private static final Cache<Object, X509CertificatePair> cache | |
| encoded | back to summary |
|---|---|
| private byte[] encoded | |
| forward | back to summary |
|---|---|
| private X509Certificate forward | |
| reverse | back to summary |
|---|---|
| private X509Certificate reverse | |
| TAG_FORWARD | back to summary |
|---|---|
| private static final byte TAG_FORWARD | |
| TAG_REVERSE | back to summary |
|---|---|
| private static final byte TAG_REVERSE | |
| X509CertificatePair | back to summary |
|---|---|
| public X509CertificatePair() Creates an empty instance of X509CertificatePair. | |
| X509CertificatePair | back to summary |
|---|---|
| public X509CertificatePair(X509Certificate forward, X509Certificate reverse) throws CertificateException Creates an instance of X509CertificatePair. At least one of the pair must be non-null.
| |
| X509CertificatePair | back to summary |
|---|---|
| private X509CertificatePair(byte[] encoded) throws CertificateException Create a new X509CertificatePair from its encoding. For internal use only, external code should use generateCertificatePair. | |
| checkPair | back to summary |
|---|---|
| private void checkPair() throws CertificateException | |
| clearCache | back to summary |
|---|---|
| public static synchronized void clearCache() Clear the cache for debugging. | |
| emit | back to summary |
|---|---|
| private void emit(DerOutputStream out) throws IOException, CertificateEncodingException | |
| generateCertificatePair | back to summary |
|---|---|
| public static synchronized X509CertificatePair generateCertificatePair(byte[] encoded) throws CertificateException Create a X509CertificatePair from its encoding. Uses cache lookup if possible. | |
| getEncoded | back to summary |
|---|---|
| public byte[] getEncoded() throws CertificateEncodingException Return the DER encoded form of the certificate pair.
| |
| getForward | back to summary |
|---|---|
| public X509Certificate getForward() Returns the forward component of the certificate pair.
| |
| getReverse | back to summary |
|---|---|
| public X509Certificate getReverse() Returns the reverse component of the certificate pair.
| |
| parse | back to summary |
|---|---|
| private void parse(DerValue val) throws IOException, CertificateException | |
| setForward | back to summary |
|---|---|
| public void setForward(X509Certificate cert) throws CertificateException Sets the forward component of the certificate pair. | |
| setReverse | back to summary |
|---|---|
| public void setReverse(X509Certificate cert) throws CertificateException Sets the reverse component of the certificate pair. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Return a printable representation of the certificate pair. | |