1
1
/*
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.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -159,7 +159,6 @@ public String toString() {
159
159
/**
160
160
* Get the provider object. Loads the provider if it is not already loaded.
161
161
*/
162
- // com.sun.net.ssl.internal.ssl.Provider has been deprecated since JDK 9
163
162
@ SuppressWarnings ("deprecation" )
164
163
synchronized Provider getProvider () {
165
164
// volatile variable load
@@ -178,11 +177,7 @@ synchronized Provider getProvider() {
178
177
p = new sun .security .rsa .SunRsaSign ();
179
178
} else if (provName .equals ("SunJCE" ) || provName .equals ("com.sun.crypto.provider.SunJCE" )) {
180
179
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" )) {
186
181
p = new sun .security .ssl .SunJSSE ();
187
182
} else if (provName .equals ("Apple" ) || provName .equals ("apple.security.AppleProvider" )) {
188
183
// need to use reflection since this class only exists on MacOsx
0 commit comments