78 * subjectPublicKeyInfo SubjectPublicKeyInfo,
79 * issuerUniqueID [1] IMPLICIT UniqueIdentifier OPTIONAL,
80 * -- If present, version must be v2 or v3
81 * subjectUniqueID [2] IMPLICIT UniqueIdentifier OPTIONAL,
82 * -- If present, version must be v2 or v3
83 * extensions [3] EXPLICIT Extensions OPTIONAL
84 * -- If present, version must be v3
85 * }
86 * </pre>
87 * <p>
88 * Certificates are instantiated using a certificate factory. The following is
89 * an example of how to instantiate an X.509 certificate:
90 * <pre>
91 * try (InputStream inStream = new FileInputStream("fileName-of-cert")) {
92 * CertificateFactory cf = CertificateFactory.getInstance("X.509");
93 * X509Certificate cert = (X509Certificate)cf.generateCertificate(inStream);
94 * }
95 * </pre>
96 *
97 * @author Hemma Prafullchandra
98 *
99 *
100 * @see Certificate
101 * @see CertificateFactory
102 * @see X509Extension
103 */
104
105 public abstract class X509Certificate extends Certificate
106 implements X509Extension {
107
108 private static final long serialVersionUID = -2491127588187038216L;
109
110 private transient X500Principal subjectX500Principal, issuerX500Principal;
111
112 /**
113 * Constructor for X.509 certificates.
114 */
115 protected X509Certificate() {
116 super("X.509");
117 }
|
78 * subjectPublicKeyInfo SubjectPublicKeyInfo,
79 * issuerUniqueID [1] IMPLICIT UniqueIdentifier OPTIONAL,
80 * -- If present, version must be v2 or v3
81 * subjectUniqueID [2] IMPLICIT UniqueIdentifier OPTIONAL,
82 * -- If present, version must be v2 or v3
83 * extensions [3] EXPLICIT Extensions OPTIONAL
84 * -- If present, version must be v3
85 * }
86 * </pre>
87 * <p>
88 * Certificates are instantiated using a certificate factory. The following is
89 * an example of how to instantiate an X.509 certificate:
90 * <pre>
91 * try (InputStream inStream = new FileInputStream("fileName-of-cert")) {
92 * CertificateFactory cf = CertificateFactory.getInstance("X.509");
93 * X509Certificate cert = (X509Certificate)cf.generateCertificate(inStream);
94 * }
95 * </pre>
96 *
97 * @author Hemma Prafullchandra
98 * @since 1.2
99 *
100 *
101 * @see Certificate
102 * @see CertificateFactory
103 * @see X509Extension
104 */
105
106 public abstract class X509Certificate extends Certificate
107 implements X509Extension {
108
109 private static final long serialVersionUID = -2491127588187038216L;
110
111 private transient X500Principal subjectX500Principal, issuerX500Principal;
112
113 /**
114 * Constructor for X.509 certificates.
115 */
116 protected X509Certificate() {
117 super("X.509");
118 }
|