Re: RFR 8184744 : Replace finalizer in crypto classes with Cleaner

2017-08-03 Thread Mandy Chung
Thanks for doing this. It’s good to see JDK finalizes being replaced. It looks good to me. I wonder if there is any existing security utility class that may be a good place for this zero-ing byte array method to share. Sean and other may have opinion. Mandy > On Aug 3, 2017, at 1:01 PM, Rog

Re: RFR 8184744 : Replace finalizer in crypto classes with Cleaner

2017-08-03 Thread Roger Riggs
Found a race in the tests between the Cleaner clearing the arrays and the test waiting for the key to be freed. Revised to continuously check the arrays and exit when they are cleared. If not cleared the test will timeout. Updated the webrev: http://cr.openjdk.java.net/~rriggs/webrev-crypt-f

Java security socket permission

2017-08-03 Thread Anish kumar
Hi,Greeting!I'm working on the Java security and enabled security manager with the custom grant policy file.I'm facing issue related to socket permission. My application is listening to localhost on the port '', for which listen socket permission is granted in the policy file. For this port

RFR 8184744 : Replace finalizer in crypto classes with Cleaner

2017-08-03 Thread Roger Riggs
Please review replacing finalize with java.lang.ref.Cleaner in a few simple cases. Webrev: http://cr.openjdk.java.net/~rriggs/webrev-crypt-finalize-8184744/ Thanks, Roger