File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed
com/sun/security/auth/callback/TextCallbackHandler Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -659,7 +659,6 @@ sun/security/smartcardio/TestExclusive.java 8039280 generic-
659659sun/security/smartcardio/TestMultiplePresent.java 8039280 generic-all
660660sun/security/smartcardio/TestPresent.java 8039280 generic-all
661661sun/security/smartcardio/TestTransmit.java 8039280 generic-all
662- com/sun/security/auth/callback/TextCallbackHandler/Password.java 8039280 generic-all
663662com/sun/security/sasl/gsskerb/AuthOnly.java 8039280 generic-all
664663com/sun/security/sasl/gsskerb/ConfSecurityLayer.java 8039280 generic-all
665664com/sun/security/sasl/gsskerb/NoSecurityLayer.java 8039280 generic-all
Original file line number Diff line number Diff line change @@ -570,7 +570,6 @@ jdk_security_manual_no_input = \
570570 :jdk_security_infra \
571571 com/sun/crypto/provider/Cipher/AEAD/GCMIncrementByte4.java \
572572 com/sun/crypto/provider/Cipher/AEAD/GCMIncrementDirect4.java \
573- com/sun/security/auth/callback/TextCallbackHandler/Password.java \
574573 com/sun/security/sasl/gsskerb/AuthOnly.java \
575574 com/sun/security/sasl/gsskerb/ConfSecurityLayer.java \
576575 com/sun/security/sasl/gsskerb/NoSecurityLayer.java \
@@ -601,6 +600,7 @@ jdk_core_manual_interactive = \
601600jdk_security_manual_interactive = \
602601 sun/security/tools/keytool/i18n.java \
603602 java/security/Policy/Root/Root.java \
603+ com/sun/security/auth/callback/TextCallbackHandler/Password.java \
604604 sun/security/krb5/config/native/TestDynamicStore.java
605605
606606# Test sets for running inside container environment
Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2009, 2014 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2009, 2024 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
2323
2424/*
2525 * @test
26- * @bug 6825240
26+ * @bug 6825240 6829785
2727 * @summary Password.readPassword() echos the input when System.Console is null
2828 * @run main/manual Password
2929 */
3030
31+ /*
32+ * This scenario cannot be automated because util/Password.java verifies the given input stream is
33+ * equal to the initialSystemIn. This prevents the test from providing a custom input stream.
34+ *
35+ * Steps to run the test:
36+ * 1) Compile the class using the JDK version being tested: '<JdkBin>/javac Password.java'
37+ * 2) Run the test using the JDK version being tested: '<JdkBin>/java -cp . Password'
38+ * 3) Type in the first password, it should not be visible in the console
39+ * 4) Type in the second password, it should be visible in the console
40+ * 5) The final output line displays the entered passwords, both should be visible
41+ */
42+
3143import com .sun .security .auth .callback .TextCallbackHandler ;
3244import javax .security .auth .callback .*;
3345
You can’t perform that action at this time.
0 commit comments