Package org.miaixz.bus.http.socket
Class Handshake
java.lang.Object
org.miaixz.bus.http.socket.Handshake
TLS握手的记录。对于HTTPS客户机,客户机是local,远程服务器
此值对象描述完成的握手。使用
ConnectionSuite设置新的握手策略- Since:
- Java 17+
- Author:
- Kimi Liu
-
Method Summary
Modifier and TypeMethodDescriptionReturns the cipher suite used for the connection.booleanstatic Handshakeget(SSLSession session) static Handshakeget(org.miaixz.bus.core.net.tls.TlsVersion tlsVersion, CipherSuite cipherSuite, List<Certificate> peerCertificates, List<Certificate> localCertificates) inthashCode()Returns a possibly-empty list of certificates that identify this peer.Returns the local principle, or null if this peer is anonymous.Returns a possibly-empty list of certificates that identify the remote peer.Returns the remote peer's principle, or null if that peer is anonymous.org.miaixz.bus.core.net.tls.TlsVersionReturns the TLS version used for this connection.toString()
-
Method Details
-
get
- Throws:
IOException
-
get
public static Handshake get(org.miaixz.bus.core.net.tls.TlsVersion tlsVersion, CipherSuite cipherSuite, List<Certificate> peerCertificates, List<Certificate> localCertificates) -
tlsVersion
public org.miaixz.bus.core.net.tls.TlsVersion tlsVersion()Returns the TLS version used for this connection. This value wasn't tracked prior to Http 3.0. For responses cached by preceding versions this returnsTlsVersion.SSL_3_0. -
cipherSuite
Returns the cipher suite used for the connection. -
peerCertificates
Returns a possibly-empty list of certificates that identify the remote peer. -
peerPrincipal
Returns the remote peer's principle, or null if that peer is anonymous. -
localCertificates
Returns a possibly-empty list of certificates that identify this peer. -
localPrincipal
Returns the local principle, or null if this peer is anonymous. -
equals
-
hashCode
public int hashCode() -
toString
-