8215430: Remove the internal package com.sun.net.ssl

Reviewed-by: chegar, mullan, wetmore
This commit is contained in:
Xue-Lei Andrew Fan 2019-03-01 08:35:14 -08:00
parent e7eae4444d
commit 25f0d60a58
44 changed files with 31 additions and 5384 deletions

View file

@ -58,7 +58,7 @@ import static sun.security.provider.SunEntries.createAliases;
* FIPS mode.
*
*/
public abstract class SunJSSE extends java.security.Provider {
public class SunJSSE extends java.security.Provider {
private static final long serialVersionUID = 3231825739635378733L;
@ -66,9 +66,8 @@ public abstract class SunJSSE extends java.security.Provider {
"(PKCS12, SunX509/PKIX key/trust factories, " +
"SSLv3/TLSv1/TLSv1.1/TLSv1.2/TLSv1.3/DTLSv1.0/DTLSv1.2)";
protected SunJSSE() {
public SunJSSE() {
super("SunJSSE", PROVIDER_VER, info);
subclassCheck();
registerAlgorithms();
}
@ -136,12 +135,4 @@ public abstract class SunJSSE extends java.security.Provider {
ps("KeyStore", "PKCS12",
"sun.security.pkcs12.PKCS12KeyStore", null, null);
}
// com.sun.net.ssl.internal.ssl.Provider has been deprecated since JDK 9
@SuppressWarnings("deprecation")
private void subclassCheck() {
if (getClass() != com.sun.net.ssl.internal.ssl.Provider.class) {
throw new AssertionError("Illegal subclass: " + getClass());
}
}
}