public final class Handshake extends Object
This value object describes a completed handshake. Use ConnectionSpec
to set policy
for new handshakes.
Modifier and Type | Method and Description |
---|---|
CipherSuite |
cipherSuite()
Returns the cipher suite used for the connection.
|
boolean |
equals(Object other) |
static Handshake |
get(SSLSession session) |
static Handshake |
get(TlsVersion tlsVersion,
CipherSuite cipherSuite,
List<Certificate> peerCertificates,
List<Certificate> localCertificates) |
int |
hashCode() |
List<Certificate> |
localCertificates()
Returns a possibly-empty list of certificates that identify this peer.
|
Principal |
localPrincipal()
Returns the local principle, or null if this peer is anonymous.
|
List<Certificate> |
peerCertificates()
Returns a possibly-empty list of certificates that identify the remote peer.
|
Principal |
peerPrincipal()
Returns the remote peer's principle, or null if that peer is anonymous.
|
TlsVersion |
tlsVersion()
Returns the TLS version used for this connection.
|
String |
toString() |
public static Handshake get(SSLSession session) throws IOException
IOException
public static Handshake get(TlsVersion tlsVersion, CipherSuite cipherSuite, List<Certificate> peerCertificates, List<Certificate> localCertificates)
public TlsVersion tlsVersion()
TlsVersion.SSL_3_0
.public CipherSuite cipherSuite()
public List<Certificate> peerCertificates()
@Nullable public Principal peerPrincipal()
public List<Certificate> localCertificates()
@Nullable public Principal localPrincipal()
Copyright © 2019. All rights reserved.