Cleanup unused methods in RSASignature.java JDK-8145252-TLS13-branch
authorxuelei
Fri, 08 Jun 2018 16:51:30 -0700
branchJDK-8145252-TLS13-branch
changeset 56711 ad4c1c488574
parent 56710 f4c7a97a1275
child 56712 bad9f4c7eeec
Cleanup unused methods in RSASignature.java
src/java.base/share/classes/sun/security/ssl/RSASignature.java
--- a/src/java.base/share/classes/sun/security/ssl/RSASignature.java	Fri Jun 08 12:48:32 2018 -0700
+++ b/src/java.base/share/classes/sun/security/ssl/RSASignature.java	Fri Jun 08 16:51:30 2018 -0700
@@ -69,25 +69,6 @@
         return JsseJce.getSignature(JsseJce.SIGNATURE_SSLRSA);
     }
 
-    /**
-     * Get an internal implementation for the RSA signature.
-     *
-     * Used for RSA client authentication, which needs the ability to set
-     * the digests to externally provided values via the setHashes() method.
-     */
-    static Signature getInternalInstance()
-            throws NoSuchAlgorithmException, NoSuchProviderException {
-        return Signature.getInstance(JsseJce.SIGNATURE_SSLRSA, "SunJSSE");
-    }
-
-    /**
-     * Set the MD5 and SHA hashes to the provided objects.
-     */
-    @SuppressWarnings("deprecation")
-    static void setHashes(Signature sig, MessageDigest md5, MessageDigest sha) {
-        sig.setParameter("hashes", new MessageDigest[] {md5, sha});
-    }
-
     @Override
     protected void engineInitVerify(PublicKey publicKey)
             throws InvalidKeyException {