File tree 3 files changed +15
-4
lines changed
com/sun/security/auth/callback/TextCallbackHandler
3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -609,7 +609,6 @@ sun/security/smartcardio/TestExclusive.java 8039280 generic-
609
609
sun/security/smartcardio/TestMultiplePresent.java 8039280 generic-all
610
610
sun/security/smartcardio/TestPresent.java 8039280 generic-all
611
611
sun/security/smartcardio/TestTransmit.java 8039280 generic-all
612
- com/sun/security/auth/callback/TextCallbackHandler/Password.java 8039280 generic-all
613
612
com/sun/security/sasl/gsskerb/AuthOnly.java 8039280 generic-all
614
613
com/sun/security/sasl/gsskerb/ConfSecurityLayer.java 8039280 generic-all
615
614
com/sun/security/sasl/gsskerb/NoSecurityLayer.java 8039280 generic-all
Original file line number Diff line number Diff line change @@ -616,7 +616,6 @@ jdk_security_manual_no_input = \
616
616
:jdk_security_infra \
617
617
com/sun/crypto/provider/Cipher/AEAD/GCMIncrementByte4.java \
618
618
com/sun/crypto/provider/Cipher/AEAD/GCMIncrementDirect4.java \
619
- com/sun/security/auth/callback/TextCallbackHandler/Password.java \
620
619
com/sun/security/sasl/gsskerb/AuthOnly.java \
621
620
com/sun/security/sasl/gsskerb/ConfSecurityLayer.java \
622
621
com/sun/security/sasl/gsskerb/NoSecurityLayer.java \
@@ -644,6 +643,7 @@ jdk_core_manual_interactive = \
644
643
jdk_security_manual_interactive = \
645
644
sun/security/tools/keytool/i18n.java \
646
645
java/security/Policy/Root/Root.java \
646
+ com/sun/security/auth/callback/TextCallbackHandler/Password.java \
647
647
sun/security/krb5/config/native/TestDynamicStore.java
648
648
649
649
# Test sets for running inside container environment
Original file line number Diff line number Diff line change 1
1
/*
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.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
23
23
24
24
/*
25
25
* @test
26
- * @bug 6825240
26
+ * @bug 6825240 6829785
27
27
* @summary Password.readPassword() echos the input when System.Console is null
28
28
* @run main/manual Password
29
29
*/
30
30
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
+
31
43
import com .sun .security .auth .callback .TextCallbackHandler ;
32
44
import javax .security .auth .callback .*;
33
45
You can’t perform that action at this time.
0 commit comments