< prev index next >

src/java.base/share/classes/javax/security/cert/X509Certificate.java

Print this page




 113  * initialization time and will fallback on a default implementation if
 114  * the Security property is not accessible.
 115  *
 116  * <p><em>Note: The classes in the package {@code javax.security.cert}
 117  * exist for compatibility with earlier versions of the
 118  * Java Secure Sockets Extension (JSSE). New applications should instead
 119  * use the standard Java SE certificate classes located in
 120  * {@code java.security.cert}.</em></p>
 121  *
 122  * @author Hemma Prafullchandra
 123  * @since 1.4
 124  * @see Certificate
 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 @SuppressWarnings("removal")
 130 @Deprecated(since="9", forRemoval=true)
 131 public abstract class X509Certificate extends Certificate {
 132 
 133     /*
 134      * Constant to lookup in the Security properties file.
 135      * In the Security properties file the default implementation
 136      * for X.509 v3 is given as:
 137      * <pre>
 138      * cert.provider.x509v1=com.sun.security.cert.internal.x509.X509V1CertImpl
 139      * </pre>
 140      */
 141     private static final String X509_PROVIDER = "cert.provider.x509v1";
 142     private static String X509Provider;
 143 
 144     static {
 145         X509Provider = AccessController.doPrivileged(
 146             new PrivilegedAction<>() {
 147                 public String run() {
 148                     return Security.getProperty(X509_PROVIDER);
 149                 }
 150             }
 151         );
 152     }
 153 




 113  * initialization time and will fallback on a default implementation if
 114  * the Security property is not accessible.
 115  *
 116  * <p><em>Note: The classes in the package {@code javax.security.cert}
 117  * exist for compatibility with earlier versions of the
 118  * Java Secure Sockets Extension (JSSE). New applications should instead
 119  * use the standard Java SE certificate classes located in
 120  * {@code java.security.cert}.</em></p>
 121  *
 122  * @author Hemma Prafullchandra
 123  * @since 1.4
 124  * @see Certificate
 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 @SuppressWarnings("removal")
 130 @Deprecated(since="9", forRemoval=true)
 131 public abstract class X509Certificate extends Certificate {
 132 
 133     /**
 134      * Constant to lookup in the Security properties file.
 135      * In the Security properties file the default implementation
 136      * for X.509 v3 is given as:
 137      * <pre>
 138      * cert.provider.x509v1=com.sun.security.cert.internal.x509.X509V1CertImpl
 139      * </pre>
 140      */
 141     private static final String X509_PROVIDER = "cert.provider.x509v1";
 142     private static String X509Provider;
 143 
 144     static {
 145         X509Provider = AccessController.doPrivileged(
 146             new PrivilegedAction<>() {
 147                 public String run() {
 148                     return Security.getProperty(X509_PROVIDER);
 149                 }
 150             }
 151         );
 152     }
 153 


< prev index next >