From 65bc1153d54183abdf2d5353e5bdeb499fb5e7af Mon Sep 17 00:00:00 2001 From: Bob Du Date: Mon, 13 Feb 2023 13:20:37 -0500 Subject: [PATCH] tokenLabel duplicate entry fix Updating tokenLabel check so keyword is recorded properly. Signed-off-by: Bob Du bob.du@ibm.com --- .../share/classes/sun/security/pkcs11/Config.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/Config.java b/src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/Config.java index 5d796a9396c..ada56122bf9 100644 --- a/src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/Config.java +++ b/src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/Config.java @@ -515,7 +515,8 @@ private void parse() throws IOException { default-> { if ("tokenLabel".equalsIgnoreCase(st.sval)) { - tokenLabel = parseStringEntry("tokenLabel"); + st.sval = "tokenLabel"; + tokenLabel = parseStringEntry(st.sval); } else { throw new ConfigurationException ("Unknown keyword '" + st.sval + "', line " +