public final class Handshake
extends java.lang.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(java.lang.Object other) |
static Handshake |
get(javax.net.ssl.SSLSession session) |
static Handshake |
get(TlsVersion tlsVersion,
CipherSuite cipherSuite,
java.util.List<java.security.cert.Certificate> peerCertificates,
java.util.List<java.security.cert.Certificate> localCertificates) |
int |
hashCode() |
java.util.List<java.security.cert.Certificate> |
localCertificates()
Returns a possibly-empty list of certificates that identify this peer.
|
java.security.Principal |
localPrincipal()
Returns the local principle, or null if this peer is anonymous.
|
java.util.List<java.security.cert.Certificate> |
peerCertificates()
Returns a possibly-empty list of certificates that identify the remote peer.
|
java.security.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.
|
public static Handshake get(javax.net.ssl.SSLSession session)
public static Handshake get(TlsVersion tlsVersion, CipherSuite cipherSuite, java.util.List<java.security.cert.Certificate> peerCertificates, java.util.List<java.security.cert.Certificate> localCertificates)
public TlsVersion tlsVersion()
public CipherSuite cipherSuite()
public java.util.List<java.security.cert.Certificate> peerCertificates()
public java.security.Principal peerPrincipal()
public java.util.List<java.security.cert.Certificate> localCertificates()
public java.security.Principal localPrincipal()
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2016. All Rights Reserved.