125 * @see java.security.cert.X509Extension
126 * @see java.security.Security security properties
127 * @deprecated Use the classes in {@code java.security.cert} instead.
128 */
129 @Deprecated
130 public abstract class X509Certificate extends Certificate {
131
132 /*
133 * Constant to lookup in the Security properties file.
134 * In the Security properties file the default implementation
135 * for X.509 v3 is given as:
136 * <pre>
137 * cert.provider.x509v1=com.sun.security.cert.internal.x509.X509V1CertImpl
138 * </pre>
139 */
140 private static final String X509_PROVIDER = "cert.provider.x509v1";
141 private static String X509Provider;
142
143 static {
144 X509Provider = AccessController.doPrivileged(
145 new PrivilegedAction<String>() {
146 public String run() {
147 return Security.getProperty(X509_PROVIDER);
148 }
149 }
150 );
151 }
152
153 /**
154 * Instantiates an X509Certificate object, and initializes it with
155 * the data read from the input stream {@code inStream}.
156 * The implementation (X509Certificate is an abstract class) is
157 * provided by the class specified as the value of the
158 * {@code cert.provider.x509v1} security property.
159 *
160 * <p>Note: Only one DER-encoded
161 * certificate is expected to be in the input stream.
162 * Also, all X509Certificate
163 * subclasses must provide a constructor of the form:
164 * <pre>{@code
165 * public <subClass>(InputStream inStream) ...
|
125 * @see java.security.cert.X509Extension
126 * @see java.security.Security security properties
127 * @deprecated Use the classes in {@code java.security.cert} instead.
128 */
129 @Deprecated
130 public abstract class X509Certificate extends Certificate {
131
132 /*
133 * Constant to lookup in the Security properties file.
134 * In the Security properties file the default implementation
135 * for X.509 v3 is given as:
136 * <pre>
137 * cert.provider.x509v1=com.sun.security.cert.internal.x509.X509V1CertImpl
138 * </pre>
139 */
140 private static final String X509_PROVIDER = "cert.provider.x509v1";
141 private static String X509Provider;
142
143 static {
144 X509Provider = AccessController.doPrivileged(
145 new PrivilegedAction<>() {
146 public String run() {
147 return Security.getProperty(X509_PROVIDER);
148 }
149 }
150 );
151 }
152
153 /**
154 * Instantiates an X509Certificate object, and initializes it with
155 * the data read from the input stream {@code inStream}.
156 * The implementation (X509Certificate is an abstract class) is
157 * provided by the class specified as the value of the
158 * {@code cert.provider.x509v1} security property.
159 *
160 * <p>Note: Only one DER-encoded
161 * certificate is expected to be in the input stream.
162 * Also, all X509Certificate
163 * subclasses must provide a constructor of the form:
164 * <pre>{@code
165 * public <subClass>(InputStream inStream) ...
|