equal
deleted
inserted
replaced
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() |