Skip to content

Commit f67868d

Browse files
committedMar 20, 2020
8219989: Retire the com.sun.net.ssl.internal.ssl.Provider name
Remove the provider name in JDK Reviewed-by: mullan
1 parent d243e40 commit f67868d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed
 

‎src/java.base/share/classes/sun/security/jca/ProviderConfig.java

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -159,7 +159,6 @@ public String toString() {
159159
/**
160160
* Get the provider object. Loads the provider if it is not already loaded.
161161
*/
162-
// com.sun.net.ssl.internal.ssl.Provider has been deprecated since JDK 9
163162
@SuppressWarnings("deprecation")
164163
synchronized Provider getProvider() {
165164
// volatile variable load
@@ -178,11 +177,7 @@ synchronized Provider getProvider() {
178177
p = new sun.security.rsa.SunRsaSign();
179178
} else if (provName.equals("SunJCE") || provName.equals("com.sun.crypto.provider.SunJCE")) {
180179
p = new com.sun.crypto.provider.SunJCE();
181-
} else if (provName.equals("SunJSSE") ||
182-
provName.equals("com.sun.net.ssl.internal.ssl.Provider")) {
183-
// com.sun.net.ssl.internal.ssl.Provider is the legacy SunJSSE
184-
// provider implementation. For compatibility, let's continue to
185-
// support the legacy name for a while.
180+
} else if (provName.equals("SunJSSE")) {
186181
p = new sun.security.ssl.SunJSSE();
187182
} else if (provName.equals("Apple") || provName.equals("apple.security.AppleProvider")) {
188183
// need to use reflection since this class only exists on MacOsx

0 commit comments

Comments
 (0)
Please sign in to comment.