RFR: JDK-8291974 PrivateCredentialPermission should not use local variable to enable debugging [v2]

Weijun Wang weijun at openjdk.org
Tue Oct 4 15:22:12 UTC 2022


On Mon, 19 Sep 2022 17:54:57 GMT, Mark Powers <mpowers at openjdk.org> wrote:

>> https://bugs.openjdk.org/browse/JDK-8291974
>
> Mark Powers has updated the pull request incrementally with one additional commit since the last revision:
> 
>   added test

test/jdk/javax/security/auth/PrivateCredentialPermission/Serial2.java line 42:

> 40:      * before bug fix for JDK-8291974.
> 41:      */
> 42:     static String before = "rO0ABXNyAC9qYXZheC5zZWN1cml0eS5hdXRoLlByaXZhdGVDcmVkZW50aWFsUGVybWlzc2lvbklV3Hd7UH9MAgADWgAHdGVzdGluZ0wAD2NyZWRlbnRpYWxDbGFzc3QAEkxqYXZhL2xhbmcvU3RyaW5nO0wACnByaW5jaXBhbHN0AA9MamF2YS91dGlsL1NldDt4cgAYamF2YS5zZWN1cml0eS5QZXJtaXNzaW9uscbhPyhXUX4CAAFMAARuYW1lcQB+AAF4cHQAGWNyZWQxIHBjMSAicG4xIiBwYzIgInBuMiIAdAAFY3JlZDFw";

The line is a little too long. You can break it into multiple lines and use `Base64.getMimeDecoder()` to decode it.

-------------

PR: https://git.openjdk.org/jdk/pull/10206



More information about the security-dev mailing list