public final class Handshake extends Object
This value object describes a completed handshake. Use SSLSocketFactory
to set policy for new handshakes.
Modifier and Type | Method and Description |
---|---|
String |
cipherSuite()
Returns a cipher suite name like "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA".
|
boolean |
equals(Object other) |
static Handshake |
get(SSLSession session) |
static Handshake |
get(String 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.
|
public static Handshake get(SSLSession session)
public static Handshake get(String cipherSuite, List<Certificate> peerCertificates, List<Certificate> localCertificates)
public String cipherSuite()
public List<Certificate> peerCertificates()
public Principal peerPrincipal()
public List<Certificate> localCertificates()
public Principal localPrincipal()
Copyright © 2014. All Rights Reserved.