-
public final class HandshakeA 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.
-
-
Method Summary
Modifier and Type Method Description static Handshakeget(SSLSession session)static Handshakeget(TlsVersion tlsVersion, CipherSuite cipherSuite, List<Certificate> peerCertificates, List<Certificate> localCertificates)TlsVersiontlsVersion()Returns the TLS version used for this connection. CipherSuitecipherSuite()Returns the cipher suite used for the connection. List<Certificate>peerCertificates()Returns a possibly-empty list of certificates that identify the remote peer. PrincipalpeerPrincipal()Returns the remote peer's principle, or null if that peer is anonymous. List<Certificate>localCertificates()Returns a possibly-empty list of certificates that identify this peer. PrincipallocalPrincipal()Returns the local principle, or null if this peer is anonymous. booleanequals(@Nullable() Object other)inthashCode()-
-
Method Detail
-
get
static Handshake get(SSLSession session)
-
get
static Handshake get(TlsVersion tlsVersion, CipherSuite cipherSuite, List<Certificate> peerCertificates, List<Certificate> localCertificates)
-
tlsVersion
TlsVersion tlsVersion()
Returns the TLS version used for this connection. This value wasn't tracked prior to OkHttp3.0. For responses cached by preceding versions this returns SSL_3_0.
-
cipherSuite
CipherSuite cipherSuite()
Returns the cipher suite used for the connection.
-
peerCertificates
List<Certificate> peerCertificates()
Returns a possibly-empty list of certificates that identify the remote peer.
-
peerPrincipal
@Nullable() Principal peerPrincipal()
Returns the remote peer's principle, or null if that peer is anonymous.
-
localCertificates
List<Certificate> localCertificates()
Returns a possibly-empty list of certificates that identify this peer.
-
localPrincipal
@Nullable() Principal localPrincipal()
Returns the local principle, or null if this peer is anonymous.
-
hashCode
int hashCode()
-
-
-
-