mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8266459: Implement JEP 411: Deprecate the Security Manager for Removal
Co-authored-by: Sean Mullan <mullan@openjdk.org> Co-authored-by: Lance Andersen <lancea@openjdk.org> Co-authored-by: Weijun Wang <weijun@openjdk.org> Reviewed-by: erikj, darcy, chegar, naoto, joehw, alanb, mchung, kcr, prr, lancea
This commit is contained in:
parent
19450b9951
commit
6765f90250
826 changed files with 2734 additions and 757 deletions
|
@ -48,6 +48,7 @@ final class TransportContext implements ConnectionContext {
|
|||
|
||||
// registered plaintext consumers
|
||||
final Map<Byte, SSLConsumer> consumers;
|
||||
@SuppressWarnings("removal")
|
||||
final AccessControlContext acc;
|
||||
|
||||
final SSLContextImpl sslContext;
|
||||
|
@ -133,6 +134,7 @@ final class TransportContext implements ConnectionContext {
|
|||
inputRecord, outputRecord, false);
|
||||
}
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
private TransportContext(SSLContextImpl sslContext, SSLTransport transport,
|
||||
SSLConfiguration sslConfig, InputRecord inputRecord,
|
||||
OutputRecord outputRecord, boolean isUnsureMode) {
|
||||
|
@ -660,17 +662,20 @@ final class TransportContext implements ConnectionContext {
|
|||
// A separate thread is allocated to deliver handshake completion
|
||||
// events.
|
||||
private static class NotifyHandshake implements Runnable {
|
||||
@SuppressWarnings("removal")
|
||||
private final Set<Map.Entry<HandshakeCompletedListener,
|
||||
AccessControlContext>> targets; // who gets notified
|
||||
private final HandshakeCompletedEvent event; // the notification
|
||||
|
||||
NotifyHandshake(
|
||||
@SuppressWarnings("removal")
|
||||
Map<HandshakeCompletedListener,AccessControlContext> listeners,
|
||||
HandshakeCompletedEvent event) {
|
||||
this.targets = new HashSet<>(listeners.entrySet()); // clone
|
||||
this.event = event;
|
||||
}
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
@Override
|
||||
public void run() {
|
||||
// Don't need to synchronize, as it only runs in one thread.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue