On 04/06/2021 05:22, Peter Firmstone wrote:
Could someone please advise the recommended way now to preserve the Subject in Executors to establish a TLS connection?I think the primitive you are looking for is scope local variables. It's still in the exploration phase but there is a draft JEP [1]. I'm quite sure that if we did this 20 years ago then Subject.doAs and friends would be different.
-Alan [1] http://openjdk.java.net/jeps/8263012