Skip to content
Permalink
Browse files
8241039: Retire the deprecated SSLSession.getPeerCertificateChain() m…
…ethod

Reviewed-by: mullan, alanb, dfuchs
  • Loading branch information
XueleiFan committed Mar 20, 2020
1 parent 2288788 commit d243e40f7b000d3f46a63da66ce55bc790706657

This file was deleted.

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2020, 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
@@ -157,7 +157,10 @@ public String getCipherSuite()
* certificate authorities. (The certificates are in
* the original JSSE
* {@link javax.security.cert.X509Certificate} format).
* @exception SSLPeerUnverifiedException if the peer is not verified.
* @throws SSLPeerUnverifiedException if the peer is not verified.
* @throws UnsupportedOperationException if the underlying provider
* does not implement the
* {@link SSLSession#getPeerCertificateChain} operation.
* @see #getPeerPrincipal()
* @deprecated The {@link #getPeerCertificates()} method that returns an
* array of {@code java.security.cert.Certificate} should
@@ -166,8 +169,7 @@ public String getCipherSuite()
@SuppressWarnings("removal")
@Deprecated(since="9", forRemoval=true)
public javax.security.cert.X509Certificate [] getPeerCertificateChain()
throws SSLPeerUnverifiedException
{
throws SSLPeerUnverifiedException {
return session.getPeerCertificateChain();
}

@@ -176,7 +178,7 @@ public String getCipherSuite()
* defining the session.
*
* @return the peer's principal. Returns an X500Principal of the
* end-entity certiticate for X509-based cipher suites, and
* end-entity certificate for X509-based cipher suites, and
* KerberosPrincipal for Kerberos cipher suites.
*
* @throws SSLPeerUnverifiedException if the peer's identity has not

0 comments on commit d243e40

Please sign in to comment.