From 8c06d5c5a172aa890ac975aa1e466c5fbe45a315 Mon Sep 17 00:00:00 2001 From: michaelm Date: Thu, 3 Mar 2011 17:14:23 +0000 Subject: [PATCH] 7024264: HttpURLConnection/NetPermission doc issue Reviewed-by: chegar --- src/share/classes/java/net/HttpURLConnection.java | 3 ++- src/share/classes/java/net/NetPermission.java | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/share/classes/java/net/HttpURLConnection.java b/src/share/classes/java/net/HttpURLConnection.java index db4fc05d9..3b74394f6 100644 --- a/src/share/classes/java/net/HttpURLConnection.java +++ b/src/share/classes/java/net/HttpURLConnection.java @@ -400,7 +400,8 @@ abstract public class HttpURLConnection extends URLConnection { * @exception ProtocolException if the method cannot be reset or if * the requested method isn't valid for HTTP. * @exception SecurityException if a security manager is set and the - * "allowHttpTrace" NetPermission is not granted. + * method is "TRACE", but the "allowHttpTrace" + * NetPermission is not granted. * @see #getRequestMethod() */ public void setRequestMethod(String method) throws ProtocolException { diff --git a/src/share/classes/java/net/NetPermission.java b/src/share/classes/java/net/NetPermission.java index 0c459c3d5..2e1a2c93b 100644 --- a/src/share/classes/java/net/NetPermission.java +++ b/src/share/classes/java/net/NetPermission.java @@ -73,6 +73,13 @@ import java.util.StringTokenizer; * * * + * getNetworkInformation + * The ability to retrieve all information about local network interfaces. + * Malicious code can read information about network hardware such as + * MAC addresses, which could be used to construct local IPv6 addresses. + * + * + * * getProxySelector * The ability to get the proxy selector used to make decisions * on which proxies to use when making network connections. -- GitLab