mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +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
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1999, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -25,7 +25,6 @@
|
|||
|
||||
package javax.net.ssl;
|
||||
|
||||
import java.security.Security;
|
||||
import java.security.*;
|
||||
import java.util.Objects;
|
||||
|
||||
|
@ -62,11 +61,8 @@ public class KeyManagerFactory {
|
|||
* {@code ssl.KeyManagerFactory.algorithm} security property, or an
|
||||
* implementation-specific default if no such property exists.
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
public static final String getDefaultAlgorithm() {
|
||||
String type;
|
||||
type = AccessController.doPrivileged((PrivilegedAction<String>) () ->
|
||||
Security.getProperty("ssl.KeyManagerFactory.algorithm"));
|
||||
String type = Security.getProperty("ssl.KeyManagerFactory.algorithm");
|
||||
if (type == null) {
|
||||
type = "SunX509";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue