mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8344366: Remove Security Manager dependencies from javax.net.ssl and sun.security.ssl packages
Reviewed-by: coffeys, ascarpino, hchao
This commit is contained in:
parent
965aace297
commit
ddc8a9d5da
26 changed files with 147 additions and 440 deletions
|
@ -25,7 +25,7 @@
|
|||
|
||||
package sun.security.ssl;
|
||||
|
||||
import java.security.*;
|
||||
import java.security.Provider;
|
||||
import java.util.*;
|
||||
import static sun.security.util.SecurityConstants.PROVIDER_VER;
|
||||
|
||||
|
@ -46,20 +46,12 @@ public class SunJSSE extends java.security.Provider {
|
|||
registerAlgorithms();
|
||||
}
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
private void registerAlgorithms() {
|
||||
AccessController.doPrivileged((PrivilegedAction<Void>) () -> {
|
||||
doRegister();
|
||||
return null;
|
||||
});
|
||||
}
|
||||
|
||||
private void ps(String type, String algo, String cn,
|
||||
List<String> a, HashMap<String, String> attrs) {
|
||||
putService(new Provider.Service(this, type, algo, cn, a, attrs));
|
||||
}
|
||||
|
||||
private void doRegister() {
|
||||
private void registerAlgorithms() {
|
||||
ps("Signature", "MD5andSHA1withRSA",
|
||||
"sun.security.ssl.RSASignature", null, null);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue