jdk/src/java.base/share/classes/sun/net/www/protocol/https/HttpsClient.java
changeset 29615 b0057b63b4e7
parent 29377 d3f457ce9c48
child 37593 824750ada3d6
equal deleted inserted replaced
29614:c95b4a5f89d6 29615:b0057b63b4e7
   695     {
   695     {
   696         return session.getPeerCertificates();
   696         return session.getPeerCertificates();
   697     }
   697     }
   698 
   698 
   699     /**
   699     /**
   700      * Returns the X.509 certificate chain with which the server
       
   701      * authenticated itself, or null if the server did not authenticate.
       
   702      *
       
   703      * @deprecated This method returns the deprecated
       
   704      *  {@code javax.security.cert.X509Certificate} type.
       
   705      *  Use {@code getServerCertificates()} instead.
       
   706      */
       
   707     @Deprecated
       
   708     javax.security.cert.X509Certificate [] getServerCertificateChain()
       
   709             throws SSLPeerUnverifiedException
       
   710     {
       
   711         return session.getPeerCertificateChain();
       
   712     }
       
   713 
       
   714     /**
       
   715      * Returns the principal with which the server authenticated
   700      * Returns the principal with which the server authenticated
   716      * itself, or throw a SSLPeerUnverifiedException if the
   701      * itself, or throw a SSLPeerUnverifiedException if the
   717      * server did not authenticate.
   702      * server did not authenticate.
   718      */
   703      */
   719     Principal getPeerPrincipal()
   704     Principal getPeerPrincipal()