8161898: Mark the use of deprecated javax.security.cert APIs with forRemoval=true
Reviewed-by: vinnie, mullan
--- a/jdk/src/java.base/share/classes/javax/net/ssl/HandshakeCompletedEvent.java Wed Jul 27 01:24:09 2016 +0000
+++ b/jdk/src/java.base/share/classes/javax/net/ssl/HandshakeCompletedEvent.java Wed Jul 27 02:47:04 2016 +0000
@@ -153,10 +153,11 @@
* @exception SSLPeerUnverifiedException if the peer is not verified.
* @see #getPeerPrincipal()
* @deprecated The {@link #getPeerCertificates()} method that returns an
- * array of {@code java.security.cert.Certificate} should
- * be used instead.
+ * array of {@code java.security.cert.Certificate} should
+ * be used instead. This method is subject to removal in
+ * a future version of Java SE.
*/
- @Deprecated
+ @Deprecated(since="9", forRemoval=true)
public javax.security.cert.X509Certificate [] getPeerCertificateChain()
throws SSLPeerUnverifiedException
{
--- a/jdk/src/java.base/share/classes/javax/net/ssl/SSLSession.java Wed Jul 27 01:24:09 2016 +0000
+++ b/jdk/src/java.base/share/classes/javax/net/ssl/SSLSession.java Wed Jul 27 02:47:04 2016 +0000
@@ -273,10 +273,11 @@
* has not been verified
* @see #getPeerPrincipal()
* @deprecated The {@link #getPeerCertificates()} method that returns an
- * array of {@code java.security.cert.Certificate} should
- * be used instead.
+ * array of {@code java.security.cert.Certificate} should
+ * be used instead. This method is subject to removal in
+ * a future version of Java SE.
*/
- @Deprecated
+ @Deprecated(since="9", forRemoval=true)
public javax.security.cert.X509Certificate [] getPeerCertificateChain()
throws SSLPeerUnverifiedException;