File tree 1 file changed +4
-2
lines changed
closed/test/jdk/openj9/internal/security
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 34
34
import java .security .KeyFactory ;
35
35
import java .security .KeyPairGenerator ;
36
36
import java .security .KeyStore ;
37
+ import java .security .KeyStoreException ;
37
38
import java .security .MessageDigest ;
39
+ import java .security .cert .CertificateException ;
38
40
import java .security .NoSuchAlgorithmException ;
39
41
import java .security .Signature ;
40
42
import java .security .cert .CertPathValidator ;
@@ -60,7 +62,7 @@ private static void getInstances() throws Exception {
60
62
try {
61
63
CertificateFactory .getInstance ("X.509" );
62
64
throw new RuntimeException ("A NoSuchAlgorithmException should have been thrown" );
63
- } catch (NoSuchAlgorithmException nsae ) {
65
+ } catch (CertificateException ce ) {
64
66
// Do nothing. This is expected.
65
67
}
66
68
try {
@@ -78,7 +80,7 @@ private static void getInstances() throws Exception {
78
80
try {
79
81
KeyStore .getInstance ("PKCS12" );
80
82
throw new RuntimeException ("A NoSuchAlgorithmException should have been thrown" );
81
- } catch (NoSuchAlgorithmException nsae ) {
83
+ } catch (KeyStoreException ke ) {
82
84
// Do nothing. This is expected.
83
85
}
84
86
You can’t perform that action at this time.
0 commit comments