diff --git a/jdk/src/java.base/share/classes/com/sun/net/ssl/HostnameVerifier.java b/jdk/src/java.base/share/classes/com/sun/net/ssl/HostnameVerifier.java index 828c30a8bd6..1a78995ec01 100644 --- a/jdk/src/java.base/share/classes/com/sun/net/ssl/HostnameVerifier.java +++ b/jdk/src/java.base/share/classes/com/sun/net/ssl/HostnameVerifier.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2004, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -38,8 +38,9 @@ package com.sun.net.ssl; * @deprecated As of JDK 1.4, this implementation-specific class was * replaced by {@link javax.net.ssl.HostnameVerifier} and * {@link javax.net.ssl.CertificateHostnameVerifier}. + * This class is subject to removal in a future version of JDK. */ -@Deprecated +@Deprecated(since="1.4", forRemoval=true) public interface HostnameVerifier { /** * Verify that the hostname from the URL is an acceptable diff --git a/jdk/src/java.base/share/classes/com/sun/net/ssl/HttpsURLConnection.java b/jdk/src/java.base/share/classes/com/sun/net/ssl/HttpsURLConnection.java index 0ddaa794efc..d376fc395fe 100644 --- a/jdk/src/java.base/share/classes/com/sun/net/ssl/HttpsURLConnection.java +++ b/jdk/src/java.base/share/classes/com/sun/net/ssl/HttpsURLConnection.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -44,8 +44,9 @@ import javax.net.ssl.SSLPeerUnverifiedException; * * @deprecated As of JDK 1.4, this implementation-specific class was * replaced by {@link javax.net.ssl.HttpsURLConnection}. + * This class is subject to removal in a future version of JDK. */ -@Deprecated +@Deprecated(since="1.4", forRemoval=true) public abstract class HttpsURLConnection extends HttpURLConnection { diff --git a/jdk/src/java.base/share/classes/com/sun/net/ssl/KeyManager.java b/jdk/src/java.base/share/classes/com/sun/net/ssl/KeyManager.java index fb0b28f29c4..814d619db8d 100644 --- a/jdk/src/java.base/share/classes/com/sun/net/ssl/KeyManager.java +++ b/jdk/src/java.base/share/classes/com/sun/net/ssl/KeyManager.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2004, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -36,7 +36,8 @@ package com.sun.net.ssl; * * @deprecated As of JDK 1.4, this implementation-specific class was * replaced by {@link javax.net.ssl.KeyManager}. + * This class is subject to removal in a future version of JDK. */ -@Deprecated +@Deprecated(since="1.4", forRemoval=true) public interface KeyManager { } diff --git a/jdk/src/java.base/share/classes/com/sun/net/ssl/KeyManagerFactory.java b/jdk/src/java.base/share/classes/com/sun/net/ssl/KeyManagerFactory.java index 620de110be2..8c0caed6b0e 100644 --- a/jdk/src/java.base/share/classes/com/sun/net/ssl/KeyManagerFactory.java +++ b/jdk/src/java.base/share/classes/com/sun/net/ssl/KeyManagerFactory.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -39,8 +39,9 @@ import java.security.*; * * @deprecated As of JDK 1.4, this implementation-specific class was * replaced by {@link javax.net.ssl.KeyManagerFactory}. + * This class is subject to removal in a future version of JDK. */ -@Deprecated +@Deprecated(since="1.4", forRemoval=true) public class KeyManagerFactory { // The provider private Provider provider; diff --git a/jdk/src/java.base/share/classes/com/sun/net/ssl/KeyManagerFactorySpi.java b/jdk/src/java.base/share/classes/com/sun/net/ssl/KeyManagerFactorySpi.java index 917522fb491..19b2a68b6f5 100644 --- a/jdk/src/java.base/share/classes/com/sun/net/ssl/KeyManagerFactorySpi.java +++ b/jdk/src/java.base/share/classes/com/sun/net/ssl/KeyManagerFactorySpi.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2004, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -41,8 +41,9 @@ import java.security.*; * * @deprecated As of JDK 1.4, this implementation-specific class was * replaced by {@link javax.net.ssl.KeyManagerFactorySpi}. + * This class is subject to removal in a future version of JDK. */ -@Deprecated +@Deprecated(since="1.4", forRemoval=true) public abstract class KeyManagerFactorySpi { /** * Initializes this factory with a source of key material. The diff --git a/jdk/src/java.base/share/classes/com/sun/net/ssl/SSLContext.java b/jdk/src/java.base/share/classes/com/sun/net/ssl/SSLContext.java index d917c056f98..6f0cbf9fd9b 100644 --- a/jdk/src/java.base/share/classes/com/sun/net/ssl/SSLContext.java +++ b/jdk/src/java.base/share/classes/com/sun/net/ssl/SSLContext.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2007, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -44,8 +44,9 @@ import sun.security.ssl.SSLServerSocketFactoryImpl; * * @deprecated As of JDK 1.4, this implementation-specific class was * replaced by {@link javax.net.ssl.SSLContext}. + * This class is subject to removal in a future version of JDK. */ -@Deprecated +@Deprecated(since="1.4", forRemoval=true) public class SSLContext { private Provider provider; diff --git a/jdk/src/java.base/share/classes/com/sun/net/ssl/SSLContextSpi.java b/jdk/src/java.base/share/classes/com/sun/net/ssl/SSLContextSpi.java index 3f2e74e8236..0a663b8ff3f 100644 --- a/jdk/src/java.base/share/classes/com/sun/net/ssl/SSLContextSpi.java +++ b/jdk/src/java.base/share/classes/com/sun/net/ssl/SSLContextSpi.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2004, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -43,8 +43,9 @@ import javax.net.ssl.*; * * @deprecated As of JDK 1.4, this implementation-specific class was * replaced by {@link javax.net.ssl.SSLContextSpi}. + * This class is subject to removal in a future version of JDK. */ -@Deprecated +@Deprecated(since="1.4", forRemoval=true) public abstract class SSLContextSpi { /** * Initializes this context. diff --git a/jdk/src/java.base/share/classes/com/sun/net/ssl/SSLPermission.java b/jdk/src/java.base/share/classes/com/sun/net/ssl/SSLPermission.java index 8f8c249d007..9fd480b93f3 100644 --- a/jdk/src/java.base/share/classes/com/sun/net/ssl/SSLPermission.java +++ b/jdk/src/java.base/share/classes/com/sun/net/ssl/SSLPermission.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -97,8 +97,9 @@ import java.lang.SecurityManager; * * @deprecated As of JDK 1.4, this implementation-specific class was * replaced by {@link javax.net.ssl.SSLPermission}. + * This class is subject to removal in a future version of JDK. */ -@Deprecated +@Deprecated(since="1.4", forRemoval=true) public final class SSLPermission extends BasicPermission { private static final long serialVersionUID = -2583684302506167542L; diff --git a/jdk/src/java.base/share/classes/com/sun/net/ssl/TrustManager.java b/jdk/src/java.base/share/classes/com/sun/net/ssl/TrustManager.java index c7396b61b8d..2856e30be40 100644 --- a/jdk/src/java.base/share/classes/com/sun/net/ssl/TrustManager.java +++ b/jdk/src/java.base/share/classes/com/sun/net/ssl/TrustManager.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2004, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -36,7 +36,8 @@ package com.sun.net.ssl; * * @deprecated As of JDK 1.4, this implementation-specific class was * replaced by {@link javax.net.ssl.TrustManager}. + * This class is subject to removal in a future version of JDK. */ -@Deprecated +@Deprecated(since="1.4", forRemoval=true) public interface TrustManager { } diff --git a/jdk/src/java.base/share/classes/com/sun/net/ssl/TrustManagerFactory.java b/jdk/src/java.base/share/classes/com/sun/net/ssl/TrustManagerFactory.java index 14c54d29a8b..934210c618b 100644 --- a/jdk/src/java.base/share/classes/com/sun/net/ssl/TrustManagerFactory.java +++ b/jdk/src/java.base/share/classes/com/sun/net/ssl/TrustManagerFactory.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -39,8 +39,9 @@ import java.security.*; * * @deprecated As of JDK 1.4, this implementation-specific class was * replaced by {@link javax.net.ssl.TrustManagerFactory}. + * This class is subject to removal in a future version of JDK. */ -@Deprecated +@Deprecated(since="1.4", forRemoval=true) public class TrustManagerFactory { // The provider private Provider provider; diff --git a/jdk/src/java.base/share/classes/com/sun/net/ssl/TrustManagerFactorySpi.java b/jdk/src/java.base/share/classes/com/sun/net/ssl/TrustManagerFactorySpi.java index 627c97fd747..62698a42d32 100644 --- a/jdk/src/java.base/share/classes/com/sun/net/ssl/TrustManagerFactorySpi.java +++ b/jdk/src/java.base/share/classes/com/sun/net/ssl/TrustManagerFactorySpi.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2004, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -41,8 +41,9 @@ import java.security.*; * * @deprecated As of JDK 1.4, this implementation-specific class was * replaced by {@link javax.net.ssl.TrustManagerFactorySpi}. + * This class is subject to removal in a future version of JDK. */ -@Deprecated +@Deprecated(since="1.4", forRemoval=true) public abstract class TrustManagerFactorySpi { /** * Initializes this factory with a source of certificate diff --git a/jdk/src/java.base/share/classes/com/sun/net/ssl/X509KeyManager.java b/jdk/src/java.base/share/classes/com/sun/net/ssl/X509KeyManager.java index 9bad0154019..cb4903171a7 100644 --- a/jdk/src/java.base/share/classes/com/sun/net/ssl/X509KeyManager.java +++ b/jdk/src/java.base/share/classes/com/sun/net/ssl/X509KeyManager.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2004, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -41,8 +41,9 @@ import java.security.cert.X509Certificate; * * @deprecated As of JDK 1.4, this implementation-specific class was * replaced by {@link javax.net.ssl.X509KeyManager}. + * This class is subject to removal in a future version of JDK. */ -@Deprecated +@Deprecated(since="1.4", forRemoval=true) public interface X509KeyManager extends KeyManager { /** * Get the matching aliases for authenticating the client side of a secure diff --git a/jdk/src/java.base/share/classes/com/sun/net/ssl/X509TrustManager.java b/jdk/src/java.base/share/classes/com/sun/net/ssl/X509TrustManager.java index d1775a9df7f..024d33a16f5 100644 --- a/jdk/src/java.base/share/classes/com/sun/net/ssl/X509TrustManager.java +++ b/jdk/src/java.base/share/classes/com/sun/net/ssl/X509TrustManager.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2004, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -40,8 +40,9 @@ import java.security.cert.X509Certificate; * * @deprecated As of JDK 1.4, this implementation-specific class was * replaced by {@link javax.net.ssl.X509TrustManager}. + * This class is subject to removal in a future version of JDK. */ -@Deprecated +@Deprecated(since="1.4", forRemoval=true) public interface X509TrustManager extends TrustManager { /** * Given the partial or complete certificate chain diff --git a/jdk/src/java.base/share/classes/com/sun/net/ssl/internal/ssl/Provider.java b/jdk/src/java.base/share/classes/com/sun/net/ssl/internal/ssl/Provider.java index 2f1d2b42ce9..f438e6401fd 100644 --- a/jdk/src/java.base/share/classes/com/sun/net/ssl/internal/ssl/Provider.java +++ b/jdk/src/java.base/share/classes/com/sun/net/ssl/internal/ssl/Provider.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -31,7 +31,10 @@ import sun.security.ssl.SunJSSE; * Main class for the SunJSSE provider. The actual code was moved to the * class sun.security.ssl.SunJSSE, but for backward compatibility we * continue to use this class as the main Provider class. + * + * @deprecated This class is subject to removal in a future version of JDK. */ +@Deprecated(since="9", forRemoval=true) public final class Provider extends SunJSSE { private static final long serialVersionUID = 3231825739635378733L; diff --git a/jdk/src/java.base/share/classes/com/sun/net/ssl/internal/ssl/X509ExtendedTrustManager.java b/jdk/src/java.base/share/classes/com/sun/net/ssl/internal/ssl/X509ExtendedTrustManager.java index 9859f488a64..3db161b83e4 100644 --- a/jdk/src/java.base/share/classes/com/sun/net/ssl/internal/ssl/X509ExtendedTrustManager.java +++ b/jdk/src/java.base/share/classes/com/sun/net/ssl/internal/ssl/X509ExtendedTrustManager.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2007, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -54,7 +54,9 @@ import java.security.cert.CertificateException; * * @since 1.6 * @author Xuelei Fan + * @deprecated This class is subject to removal in a future version of JDK. */ +@Deprecated(since="9", forRemoval=true) public abstract class X509ExtendedTrustManager implements X509TrustManager { /** * Constructor used by subclasses only. diff --git a/jdk/src/java.base/share/classes/com/sun/net/ssl/internal/www/protocol/https/DelegateHttpsURLConnection.java b/jdk/src/java.base/share/classes/com/sun/net/ssl/internal/www/protocol/https/DelegateHttpsURLConnection.java index 3c05c37a037..8cb1de2b22c 100644 --- a/jdk/src/java.base/share/classes/com/sun/net/ssl/internal/www/protocol/https/DelegateHttpsURLConnection.java +++ b/jdk/src/java.base/share/classes/com/sun/net/ssl/internal/www/protocol/https/DelegateHttpsURLConnection.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -52,7 +52,9 @@ import sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection; * of protocol implementation (this one) * com.sun.net.ssl.HttpURLConnection is used in the com.sun version. * + * @deprecated This class is subject to removal in a future version of JDK. */ +@Deprecated(since="9", forRemoval=true) @SuppressWarnings("deprecation") // HttpsURLConnection is deprecated public class DelegateHttpsURLConnection extends AbstractDelegateHttpsURLConnection { diff --git a/jdk/src/java.base/share/classes/com/sun/net/ssl/internal/www/protocol/https/Handler.java b/jdk/src/java.base/share/classes/com/sun/net/ssl/internal/www/protocol/https/Handler.java index 43cf166ddc2..d52e972646e 100644 --- a/jdk/src/java.base/share/classes/com/sun/net/ssl/internal/www/protocol/https/Handler.java +++ b/jdk/src/java.base/share/classes/com/sun/net/ssl/internal/www/protocol/https/Handler.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2003, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -34,7 +34,9 @@ import java.net.Proxy; * only. The HTTPS implementation can now be found in * sun.net.www.protocol.https. * + * @deprecated This class is subject to removal in a future version of JDK. */ +@Deprecated(since="9", forRemoval=true) public class Handler extends sun.net.www.protocol.https.Handler { public Handler() { diff --git a/jdk/src/java.base/share/classes/com/sun/net/ssl/internal/www/protocol/https/HttpsURLConnectionOldImpl.java b/jdk/src/java.base/share/classes/com/sun/net/ssl/internal/www/protocol/https/HttpsURLConnectionOldImpl.java index 07ff87ba85a..09b1060eab0 100644 --- a/jdk/src/java.base/share/classes/com/sun/net/ssl/internal/www/protocol/https/HttpsURLConnectionOldImpl.java +++ b/jdk/src/java.base/share/classes/com/sun/net/ssl/internal/www/protocol/https/HttpsURLConnectionOldImpl.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -59,11 +59,13 @@ import sun.net.www.http.HttpClient; * needs to implement all public methods in it's super class and all * the way to Object. * + * @deprecated This class is subject to removal in a future version of JDK. */ // For both copies of the file, uncomment one line and comment the other // public class HttpsURLConnectionImpl // extends javax.net.ssl.HttpsURLConnection { +@Deprecated(since="9", forRemoval=true) @SuppressWarnings("deprecation") // HttpsURLConnection is deprecated public class HttpsURLConnectionOldImpl extends com.sun.net.ssl.HttpsURLConnection { diff --git a/jdk/src/java.base/share/classes/javax/security/cert/Certificate.java b/jdk/src/java.base/share/classes/javax/security/cert/Certificate.java index 84fdefde609..9021a6244cb 100644 --- a/jdk/src/java.base/share/classes/javax/security/cert/Certificate.java +++ b/jdk/src/java.base/share/classes/javax/security/cert/Certificate.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -58,10 +58,11 @@ import java.security.SignatureException; * @since 1.4 * @see X509Certificate * @deprecated Use the classes in {@code java.security.cert} instead. + * This class is subject to removal in a future version of Java SE. * * @author Hemma Prafullchandra */ -@Deprecated +@Deprecated(since="9", forRemoval=true) public abstract class Certificate { /** diff --git a/jdk/src/java.base/share/classes/javax/security/cert/CertificateEncodingException.java b/jdk/src/java.base/share/classes/javax/security/cert/CertificateEncodingException.java index 95fbcfbeb1e..dfbf56bfcfa 100644 --- a/jdk/src/java.base/share/classes/javax/security/cert/CertificateEncodingException.java +++ b/jdk/src/java.base/share/classes/javax/security/cert/CertificateEncodingException.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -39,8 +39,9 @@ package javax.security.cert; * @since 1.4 * @author Hemma Prafullchandra * @deprecated Use the classes in {@code java.security.cert} instead. + * This class is subject to removal in a future version of Java SE. */ -@Deprecated +@Deprecated(since="9", forRemoval=true) public class CertificateEncodingException extends CertificateException { private static final long serialVersionUID = -8187642723048403470L; diff --git a/jdk/src/java.base/share/classes/javax/security/cert/CertificateException.java b/jdk/src/java.base/share/classes/javax/security/cert/CertificateException.java index 144bb97fe6a..f26efb87172 100644 --- a/jdk/src/java.base/share/classes/javax/security/cert/CertificateException.java +++ b/jdk/src/java.base/share/classes/javax/security/cert/CertificateException.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -39,8 +39,9 @@ package javax.security.cert; * @since 1.4 * @see Certificate * @deprecated Use the classes in {@code java.security.cert} instead. + * This class is subject to removal in a future version of Java SE. */ -@Deprecated +@Deprecated(since="9", forRemoval=true) public class CertificateException extends Exception { private static final long serialVersionUID = -5757213374030785290L; diff --git a/jdk/src/java.base/share/classes/javax/security/cert/CertificateExpiredException.java b/jdk/src/java.base/share/classes/javax/security/cert/CertificateExpiredException.java index 9f4eb7d4aed..c3303009c8f 100644 --- a/jdk/src/java.base/share/classes/javax/security/cert/CertificateExpiredException.java +++ b/jdk/src/java.base/share/classes/javax/security/cert/CertificateExpiredException.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -41,8 +41,9 @@ package javax.security.cert; * @since 1.4 * @author Hemma Prafullchandra * @deprecated Use the classes in {@code java.security.cert} instead. + * This class is subject to removal in a future version of Java SE. */ -@Deprecated +@Deprecated(since="9", forRemoval=true) public class CertificateExpiredException extends CertificateException { private static final long serialVersionUID = 5091601212177261883L; diff --git a/jdk/src/java.base/share/classes/javax/security/cert/CertificateNotYetValidException.java b/jdk/src/java.base/share/classes/javax/security/cert/CertificateNotYetValidException.java index c5c67c7f61e..be076e09c86 100644 --- a/jdk/src/java.base/share/classes/javax/security/cert/CertificateNotYetValidException.java +++ b/jdk/src/java.base/share/classes/javax/security/cert/CertificateNotYetValidException.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -41,8 +41,9 @@ package javax.security.cert; * @since 1.4 * @author Hemma Prafullchandra * @deprecated Use the classes in {@code java.security.cert} instead. + * This class is subject to removal in a future version of Java SE. */ -@Deprecated +@Deprecated(since="9", forRemoval=true) public class CertificateNotYetValidException extends CertificateException { private static final long serialVersionUID = -8976172474266822818L; diff --git a/jdk/src/java.base/share/classes/javax/security/cert/CertificateParsingException.java b/jdk/src/java.base/share/classes/javax/security/cert/CertificateParsingException.java index cd1f6ac507c..b099673277a 100644 --- a/jdk/src/java.base/share/classes/javax/security/cert/CertificateParsingException.java +++ b/jdk/src/java.base/share/classes/javax/security/cert/CertificateParsingException.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -40,8 +40,9 @@ package javax.security.cert; * @since 1.4 * @author Hemma Prafullchandra * @deprecated Use the classes in {@code java.security.cert} instead. + * This class is subject to removal in a future version of Java SE. */ -@Deprecated +@Deprecated(since="9", forRemoval=true) public class CertificateParsingException extends CertificateException { private static final long serialVersionUID = -8449352422951136229L; diff --git a/jdk/src/java.base/share/classes/javax/security/cert/X509Certificate.java b/jdk/src/java.base/share/classes/javax/security/cert/X509Certificate.java index 511d6ef601b..83587e233b6 100644 --- a/jdk/src/java.base/share/classes/javax/security/cert/X509Certificate.java +++ b/jdk/src/java.base/share/classes/javax/security/cert/X509Certificate.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -125,8 +125,9 @@ import java.util.Date; * @see java.security.cert.X509Extension * @see java.security.Security security properties * @deprecated Use the classes in {@code java.security.cert} instead. + * This class is subject to removal in a future version of Java SE. */ -@Deprecated +@Deprecated(since="9", forRemoval=true) public abstract class X509Certificate extends Certificate { /* diff --git a/jdk/src/java.base/share/classes/sun/security/jca/ProviderConfig.java b/jdk/src/java.base/share/classes/sun/security/jca/ProviderConfig.java index c12f7f3bc5f..2f52c8b2ca8 100644 --- a/jdk/src/java.base/share/classes/sun/security/jca/ProviderConfig.java +++ b/jdk/src/java.base/share/classes/sun/security/jca/ProviderConfig.java @@ -159,6 +159,8 @@ final class ProviderConfig { /** * Get the provider object. Loads the provider if it is not already loaded. */ + // com.sun.net.ssl.internal.ssl.Provider has been deprecated since JDK 9 + @SuppressWarnings("deprecation") synchronized Provider getProvider() { // volatile variable load Provider p = provider; diff --git a/jdk/src/java.base/share/classes/sun/security/ssl/SunJSSE.java b/jdk/src/java.base/share/classes/sun/security/ssl/SunJSSE.java index 6e4a1a76f82..6e66c00e2af 100644 --- a/jdk/src/java.base/share/classes/sun/security/ssl/SunJSSE.java +++ b/jdk/src/java.base/share/classes/sun/security/ssl/SunJSSE.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -237,6 +237,8 @@ public abstract class SunJSSE extends java.security.Provider { "sun.security.pkcs12.PKCS12KeyStore"); } + // com.sun.net.ssl.internal.ssl.Provider has been deprecated since JDK 9 + @SuppressWarnings("deprecation") private void subclassCheck() { if (getClass() != com.sun.net.ssl.internal.ssl.Provider.class) { throw new AssertionError("Illegal subclass: " + getClass());