Skip to content

Commit 9769ee8

Browse files
committed
8344652: Remove access control context text from SSLEngine and SSLSession APIs
Reviewed-by: jnimeh
1 parent 82c3612 commit 9769ee8

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

src/java.base/share/classes/javax/net/ssl/SSLEngine.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -377,14 +377,6 @@
377377
* }
378378
* </pre></blockquote>
379379
*
380-
* <P>
381-
* Applications might choose to process delegated tasks in different
382-
* threads. When an {@code SSLEngine}
383-
* is created, the current {@link java.security.AccessControlContext}
384-
* is saved. All future delegated tasks will be processed using this
385-
* context: that is, all access control decisions will be made using the
386-
* context captured at engine creation.
387-
*
388380
* <HR>
389381
*
390382
* <B>Concurrency Notes</B>:
@@ -818,9 +810,6 @@ public abstract SSLEngineResult unwrap(ByteBuffer src,
818810
* {@code run} method returns, the {@code Runnable} object
819811
* is no longer needed and may be discarded.
820812
* <P>
821-
* Delegated tasks run in the {@code AccessControlContext}
822-
* in place when this object was created.
823-
* <P>
824813
* A call to this method will return each outstanding task
825814
* exactly once.
826815
* <P>

src/java.base/share/classes/javax/net/ssl/SSLSession.java

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,6 @@ public interface SSLSession {
148148
* replaced. If the new (or existing) {@code value} implements the
149149
* {@code SSLSessionBindingListener} interface, the object
150150
* represented by {@code value} is notified appropriately.
151-
* <p>
152-
* For security reasons, the same named values may not be
153-
* visible across different access control contexts.
154151
*
155152
* @param name the name to which the data object will be bound.
156153
* This may not be null.
@@ -163,9 +160,6 @@ public interface SSLSession {
163160
/**
164161
* Returns the object bound to the given name in the session's
165162
* application layer data. Returns null if there is no such binding.
166-
* <p>
167-
* For security reasons, the same named values may not be
168-
* visible across different access control contexts.
169163
*
170164
* @param name the name of the binding to find.
171165
* @return the value bound to that name, or null if the binding does
@@ -181,12 +175,8 @@ public interface SSLSession {
181175
* bound to the given name. If the bound existing object
182176
* implements the {@code SSLSessionBindingListener} interface,
183177
* it is notified appropriately.
184-
* <p>
185-
* For security reasons, the same named values may not be
186-
* visible across different access control contexts.
187178
*
188-
* @param name the name of the object to remove visible
189-
* across different access control contexts
179+
* @param name the name of the object to remove
190180
* @throws IllegalArgumentException if the argument is null.
191181
*/
192182
void removeValue(String name);
@@ -195,9 +185,6 @@ public interface SSLSession {
195185
/**
196186
* Returns an array of the names of all the application layer
197187
* data objects bound into the Session.
198-
* <p>
199-
* For security reasons, the same named values may not be
200-
* visible across different access control contexts.
201188
*
202189
* @return a non-null (possibly empty) array of names of the objects
203190
* bound to this Session.

0 commit comments

Comments
 (0)