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
|
static Handshake |
get(SSLSession
|
static Handshake |
get(TlsVersion
|
int |
hashCode()
|
List |
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 |
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.
|
public static Handshakeget(SSLSession session)
public static Handshakeget(TlsVersion tlsVersion, CipherSuite cipherSuite, List <Certificate > peerCertificates, List <Certificate > localCertificates)
public TlsVersiontlsVersion()
public CipherSuitecipherSuite()
public List<Certificate > peerCertificates()
public PrincipalpeerPrincipal()
public List<Certificate > localCertificates()
public PrincipallocalPrincipal()
public boolean equals(Objectother)
public int hashCode()