Re: JDK-8280491 and JEP411

2023-06-17 Thread Peter Firmstone
Thanks Sean. It's a pity we're not permitted to redesign a light weight authorization mechanism from the ashes of the existing system, something that allowed the use of PrivilegedAction et al. The reality is, authorization could be so much simpler and more useful than it is today, especially

Re: JDK-8280491 and JEP411

2023-06-16 Thread Sean Mullan
See also https://bugs.openjdk.org/browse/JDK-8296244 --Sean On 6/16/23 1:48 AM, Alan Bateman wrote: On 16/06/2023 03:48, Peter Firmstone wrote: : As it isn't yet clear how a Subject context will be preserved across threads in future version of OpenJDK, (currently we use the AccessControlConte

Re: JDK-8280491 and JEP411

2023-06-16 Thread Peter Firmstone
Thanks Alan, That's quite interesting.   Often we use Executor tasks to perform event notifications to listeners, context is the same across many, in fact we do this for distributed garbage collection over TLS connections too. -- Regards, Peter On 16/06/2023 3:48 pm, Alan Bateman wrote:

Re: JDK-8280491 and JEP411

2023-06-15 Thread Alan Bateman
On 16/06/2023 03:48, Peter Firmstone wrote: : As it isn't yet clear how a Subject context will be preserved across threads in future version of OpenJDK, (currently we use the AccessControlContext for that), for example we capture the existing context, to establish TLS connections in call back

JDK-8280491 and JEP411

2023-06-15 Thread Peter Firmstone
Release Note: Alternate Subject.getSubject and doAs APIs Created That Do Not Depend on Security Manager APIs https://bugs.openjdk.org/browse/JDK-8280491 Just wondering about the future implementation plans for these new API's? The implementation depends on deprecated for removal API's in JEP