类 Handshake
java.lang.Object
com.lark.oapi.okhttp.Handshake
A record of a TLS handshake. For HTTPS clients, the client is local and the remote server
is its peer.
This value object describes a completed handshake. Use ConnectionSpec to set policy
for new handshakes.
-
方法概要
修饰符和类型方法说明Returns the cipher suite used for the connection.booleanstatic Handshakeget(TlsVersion tlsVersion, CipherSuite cipherSuite, List<Certificate> peerCertificates, List<Certificate> localCertificates) static Handshakeget(SSLSession session) 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.Returns the TLS version used for this connection.toString()
-
方法详细资料
-
get
- 抛出:
IOException
-
get
public static Handshake get(TlsVersion tlsVersion, CipherSuite cipherSuite, List<Certificate> peerCertificates, List<Certificate> localCertificates) -
tlsVersion
Returns the TLS version used for this connection. This value wasn't tracked prior to OkHttp 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
-