# HG changeset patch # User xuelei # Date 1528501890 25200 # Node ID ad4c1c488574dc9f99a4aad1b60a934d96894c57 # Parent f4c7a97a127549d85760cf67a29c429db0a8dd49 Cleanup unused methods in RSASignature.java diff -r f4c7a97a1275 -r ad4c1c488574 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 {