mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 03:54:33 +02:00
8160247: Mark deprecated javax.security.cert APIs with forRemoval=true
Reviewed-by: weijun
This commit is contained in:
parent
d845c397ea
commit
42cb9bf51a
13 changed files with 36 additions and 24 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2019, 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
|
||||
|
@ -92,7 +92,8 @@ public class ImmutableExtendedSSLSession extends ExtendedSSLSession {
|
|||
return delegate.getLocalCertificates();
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@SuppressWarnings("removal")
|
||||
@Deprecated(since="11", forRemoval=true)
|
||||
public javax.security.cert.X509Certificate [] getPeerCertificateChain()
|
||||
throws SSLPeerUnverifiedException {
|
||||
return delegate.getPeerCertificateChain();
|
||||
|
|
|
@ -91,7 +91,8 @@ public class ImmutableSSLSession implements SSLSession {
|
|||
return delegate.getLocalCertificates();
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@SuppressWarnings("removal")
|
||||
@Deprecated(since="11", forRemoval=true)
|
||||
public javax.security.cert.X509Certificate [] getPeerCertificateChain()
|
||||
throws SSLPeerUnverifiedException {
|
||||
return delegate.getPeerCertificateChain();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue