From dc536f2d7454cd9bb9bdcff013480b400aa33a83 Mon Sep 17 00:00:00 2001 From: Vinnie Ryan Date: Fri, 1 Jul 2016 22:55:26 +0100 Subject: [PATCH] 8157730: Mark deprecated java.security.{Identity,IdentityScope,Signer} APIs with forRemoval=true Reviewed-by: mullan --- .../share/classes/java/security/Identity.java | 11 ++++++----- .../share/classes/java/security/IdentityScope.java | 14 +++++++++----- .../share/classes/java/security/Signer.java | 11 ++++++----- 3 files changed, 21 insertions(+), 15 deletions(-) diff --git a/jdk/src/java.base/share/classes/java/security/Identity.java b/jdk/src/java.base/share/classes/java/security/Identity.java index 83e10cee128..44713c4906f 100644 --- a/jdk/src/java.base/share/classes/java/security/Identity.java +++ b/jdk/src/java.base/share/classes/java/security/Identity.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 @@ -52,11 +52,12 @@ import java.util.*; * * @author Benjamin Renaud * @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}. + * replaced by {@link java.security.KeyStore}, the + * {@link java.security.cert} package, and + * {@link java.security.Principal}. + * This class is subject to removal in a future version of Java SE. */ -@Deprecated +@Deprecated(since="1.2", forRemoval=true) public abstract class Identity implements Principal, Serializable { /** use serialVersionUID from JDK 1.1.x for interoperability */ diff --git a/jdk/src/java.base/share/classes/java/security/IdentityScope.java b/jdk/src/java.base/share/classes/java/security/IdentityScope.java index 763f8308c53..e07d724438a 100644 --- a/jdk/src/java.base/share/classes/java/security/IdentityScope.java +++ b/jdk/src/java.base/share/classes/java/security/IdentityScope.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2013, 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 @@ -57,11 +57,15 @@ import java.util.Properties; * @author Benjamin Renaud * * @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}. + * replaced by {@link java.security.KeyStore}, the + * {@link java.security.cert} package, and + * {@link java.security.Principal}. + * This class is subject to removal in a future version of Java SE. + * + * Note that the security property {@code policy.ignoreIdentityScope} + * is only applicable to these APIs and is also a candidate for removal. */ -@Deprecated +@Deprecated(since="1.2", forRemoval=true) public abstract class IdentityScope extends Identity { diff --git a/jdk/src/java.base/share/classes/java/security/Signer.java b/jdk/src/java.base/share/classes/java/security/Signer.java index 2edf668b530..93c6ff73af5 100644 --- a/jdk/src/java.base/share/classes/java/security/Signer.java +++ b/jdk/src/java.base/share/classes/java/security/Signer.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2013, 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 @@ -40,11 +40,12 @@ import java.io.*; * @author Benjamin Renaud * * @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}. + * replaced by {@link java.security.KeyStore}, the + * {@link java.security.cert} package, and + * {@link java.security.Principal}. + * This class is subject to removal in a future version of Java SE. */ -@Deprecated +@Deprecated(since="1.2", forRemoval=true) public abstract class Signer extends Identity { private static final long serialVersionUID = -1763464102261361480L;