changeset 5569:dc0600ed6c80

8003403: Test ShortRSAKeyWithinTLS and ClientJSSEServerJSSE failing after 7u11 cleanup Reviewed-by: xuelei
author ewendeli
date Wed, 14 Nov 2012 18:02:35 +0100
parents 933b76318e8c
children 9ecedd838baf
files test/sun/security/mscapi/ShortRSAKeyWithinTLS.java test/sun/security/pkcs11/fips/ClientJSSEServerJSSE.java
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/test/sun/security/mscapi/ShortRSAKeyWithinTLS.java	Wed Nov 14 16:46:37 2012 +0100
+++ b/test/sun/security/mscapi/ShortRSAKeyWithinTLS.java	Wed Nov 14 18:02:35 2012 +0100
@@ -29,7 +29,7 @@
 import javax.net.ssl.*;
 import java.lang.reflect.*;
 
-import sun.security.util.KeyLength;
+import sun.security.util.KeyUtil;
 
 public class ShortRSAKeyWithinTLS {
 
@@ -175,13 +175,13 @@
             privateKey = (PrivateKey)ks.getKey(keyAlias, null);
             publicKey = (PublicKey)ks.getCertificate(keyAlias).getPublicKey();
 
-            int privateKeySize = KeyLength.getKeySize(privateKey);
+            int privateKeySize = KeyUtil.getKeySize(privateKey);
             if (privateKeySize != keySize) {
                 throw new Exception("Expected key size is " + keySize +
                         ", but the private key size is " + privateKeySize);
             }
 
-            int publicKeySize = KeyLength.getKeySize(publicKey);
+            int publicKeySize = KeyUtil.getKeySize(publicKey);
             if (publicKeySize != keySize) {
                 throw new Exception("Expected key size is " + keySize +
                         ", but the public key size is " + publicKeySize);
--- a/test/sun/security/pkcs11/fips/ClientJSSEServerJSSE.java	Wed Nov 14 16:46:37 2012 +0100
+++ b/test/sun/security/pkcs11/fips/ClientJSSEServerJSSE.java	Wed Nov 14 18:02:35 2012 +0100
@@ -25,10 +25,10 @@
  * @test
  * @bug 6313675 6323647
  * @summary Verify that all ciphersuites work in FIPS mode
+ * @library ..
  * @ignore JSSE supported cipher suites are changed with CR 6916074,
  *     need to update this test case in JDK 7 soon
  * @author Andreas Sterbenz
- * @library ..
  */
 
 import java.security.*;