8175091: Mark the deprecated java.security.{Certificate,Identity,IdentityScope,Signer} APIs with forRemoval=true
authormullan
Tue, 14 Nov 2017 08:24:27 -0500
changeset 47742 28096878fae5
parent 47733 fbfe06b70e16
child 47743 3dfec0fcb34f
8175091: Mark the deprecated java.security.{Certificate,Identity,IdentityScope,Signer} APIs with forRemoval=true Reviewed-by: weijun
src/java.base/share/classes/java/security/Certificate.java
src/java.base/share/classes/java/security/Identity.java
src/java.base/share/classes/java/security/IdentityScope.java
src/java.base/share/classes/java/security/Signer.java
--- a/src/java.base/share/classes/java/security/Certificate.java	Mon Nov 13 14:03:36 2017 +0530
+++ b/src/java.base/share/classes/java/security/Certificate.java	Tue Nov 14 08:24:27 2017 -0500
@@ -57,13 +57,12 @@
  *
  * @author Benjamin Renaud
  * @since 1.1
- * @deprecated A new certificate handling package is created in the Java platform.
- *             This Certificate interface is entirely deprecated and
- *             is here to allow for a smooth transition to the new
- *             package.
+ * @deprecated This class is deprecated and subject to removal in a future
+ *     version of Java SE. It has been replaced by
+ *     {@code java.security.cert.Certificate} and related classes.
  * @see java.security.cert.Certificate
  */
-@Deprecated(since="1.2")
+@Deprecated(since="1.2", forRemoval=true)
 public interface Certificate {
 
     /**
--- a/src/java.base/share/classes/java/security/Identity.java	Mon Nov 13 14:03:36 2017 +0530
+++ b/src/java.base/share/classes/java/security/Identity.java	Tue Nov 14 08:24:27 2017 -0500
@@ -52,12 +52,13 @@
  *
  * @author Benjamin Renaud
  * @since 1.1
- * @deprecated This class is no longer used. Its functionality has been
- * replaced by {@code java.security.KeyStore}, the
- * {@code java.security.cert} package, and
- * {@code java.security.Principal}.
+ * @deprecated This class is deprecated and subject to removal in a future
+ *     version of Java SE. It has been replaced by
+ *     {@code java.security.KeyStore}, the {@code java.security.cert} package,
+ *     and {@code java.security.Principal}.
  */
-@Deprecated(since="1.2")
+@Deprecated(since="1.2", forRemoval=true)
+@SuppressWarnings("removal")
 public abstract class Identity implements Principal, Serializable {
 
     /** use serialVersionUID from JDK 1.1.x for interoperability */
--- a/src/java.base/share/classes/java/security/IdentityScope.java	Mon Nov 13 14:03:36 2017 +0530
+++ b/src/java.base/share/classes/java/security/IdentityScope.java	Tue Nov 14 08:24:27 2017 -0500
@@ -57,12 +57,13 @@
  * @author Benjamin Renaud
  * @since 1.1
  *
- * @deprecated This class is no longer used. Its functionality has been
- * replaced by {@code java.security.KeyStore}, the
- * {@code java.security.cert} package, and
- * {@code java.security.Principal}.
+ * @deprecated This class is deprecated and subject to removal in a future
+ *     version of Java SE. It has been replaced by
+ *     {@code java.security.KeyStore}, the {@code java.security.cert} package,
+ *     and {@code java.security.Principal}.
  */
-@Deprecated(since="1.2")
+@Deprecated(since="1.2", forRemoval=true)
+@SuppressWarnings("removal")
 public abstract
 class IdentityScope extends Identity {
 
--- a/src/java.base/share/classes/java/security/Signer.java	Mon Nov 13 14:03:36 2017 +0530
+++ b/src/java.base/share/classes/java/security/Signer.java	Tue Nov 14 08:24:27 2017 -0500
@@ -40,12 +40,13 @@
  * @author Benjamin Renaud
  * @since 1.1
  *
- * @deprecated This class is no longer used. Its functionality has been
- * replaced by {@code java.security.KeyStore}, the
- * {@code java.security.cert} package, and
- * {@code java.security.Principal}.
+ * @deprecated This class is deprecated and subject to removal in a future
+ *     version of Java SE. It has been replaced by
+ *     {@code java.security.KeyStore}, the {@code java.security.cert} package,
+ *     and {@code java.security.Principal}.
  */
-@Deprecated(since="1.2")
+@Deprecated(since="1.2", forRemoval=true)
+@SuppressWarnings("removal")
 public abstract class Signer extends Identity {
 
     private static final long serialVersionUID = -1763464102261361480L;