Skip to content

Commit 8562298

Browse files
committed
8268558: [TESTBUG] Case 2 in TestP11KeyFactoryGetRSAKeySpec is skipped
Reviewed-by: phh Backport-of: 041ae20b10e11381415e8f61fd39e9e19aa8d4f2
1 parent c7c080a commit 8562298

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jdk/test/sun/security/pkcs11/rsa/TestP11KeyFactoryGetRSAKeySpec.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/*
2+
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
23
* Copyright (c) 2021, Amazon.com, Inc. or its affiliates. All rights reserved.
34
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
45
*
@@ -21,7 +22,6 @@
2122
* questions.
2223
*/
2324

24-
import java.math.BigInteger;
2525
import java.security.KeyFactory;
2626
import java.security.KeyPair;
2727
import java.security.KeyPairGenerator;
@@ -85,7 +85,7 @@ public void main(Provider p) throws Exception {
8585

8686
private static void testKeySpec(KeyFactory factory, PrivateKey key, Class<? extends KeySpec> specClass) throws Exception {
8787
try {
88-
KeySpec spec = factory.getKeySpec(key, RSAPrivateKeySpec.class);
88+
KeySpec spec = factory.getKeySpec(key, specClass);
8989
if (testingSensitiveKeys) {
9090
throw new Exception("Able to retrieve spec from sensitive key");
9191
}

0 commit comments

Comments
 (0)