Skip to content

Commit abb7b81

Browse files
committed
Adapt test to Security Manager
1 parent 53abe8a commit abb7b81

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/jdk/sun/security/pkcs11/Cipher/TestDisabledAlgorithms.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
* @bug 8244336
2727
* @summary Test JCE layer algorithm restriction
2828
* @library /test/lib ..
29-
* @run main/othervm TestDisabledAlgorithms CiPhEr.RSA/ECB/PKCS1Padding true
30-
* @run main/othervm TestDisabledAlgorithms cIpHeR.rsA true
31-
* @run main/othervm TestDisabledAlgorithms Cipher.what false
32-
* @run main/othervm TestDisabledAlgorithms CiPhER.RSA/ECB/PKCS1Padding2 false
29+
* @run main/othervm TestDisabledAlgorithms sm CiPhEr.RSA/ECB/PKCS1Padding true
30+
* @run main/othervm TestDisabledAlgorithms sm cIpHeR.rsA true
31+
* @run main/othervm TestDisabledAlgorithms sm Cipher.what false
32+
* @run main/othervm TestDisabledAlgorithms sm CiPhER.RSA/ECB/PKCS1Padding2 false
3333
*/
3434
import java.util.List;
3535
import java.security.NoSuchAlgorithmException;
@@ -71,11 +71,11 @@ public void main(Provider p) throws Exception {
7171
}
7272

7373
public static void main(String[] args) throws Exception {
74-
String propValue = args[0];
74+
String propValue = args[1];
7575
System.out.println("Setting Security Prop " + PROP_NAME + " = " +
7676
propValue);
7777
Security.setProperty(PROP_NAME, propValue);
78-
boolean shouldThrow = Boolean.valueOf(args[1]);
78+
boolean shouldThrow = Boolean.valueOf(args[2]);
7979
main(new TestDisabledAlgorithms(shouldThrow), args);
8080
}
8181
}

0 commit comments

Comments
 (0)