public class TLSConnection extends Object
| Constructor and Description |
|---|
TLSConnection(GenericNodeRuntime runtime,
boolean serverMode,
String serverName,
int port) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCipherSuite() |
SSLException |
getError() |
X509Certificate |
getPeerCertificate() |
String |
getProtocol() |
SSLException |
getVerifyError() |
int |
getWriteQueueLength() |
void |
inboundError(int err) |
void |
init(SSLContext ctx,
String[] ciphers,
X509TrustManager trustManager) |
boolean |
isInitFinished() |
boolean |
isReceivedShutdown() |
boolean |
isSentShutdown() |
void |
setErrorCallback(Callback<SSLException> cb) |
void |
setHandshakeDoneCallback(Callback<Void> cb) |
void |
setHandshakeStartCallback(Callback<Void> cb) |
void |
setReadCallback(BiCallback<ByteBuffer,Integer> cb) |
void |
setVerificationMode(boolean requestCert,
boolean rejectUnauthorized) |
void |
setWriteCallback(TriCallback<ByteBuffer,Boolean,Object> cb) |
void |
shutdown(Callback<Object> cb) |
void |
shutdownInbound(Callback<Object> cb) |
void |
start() |
void |
unwrap(ByteBuffer buf,
Callback<Object> cb) |
void |
wrap(ByteBuffer buf,
Callback<Object> cb) |
public TLSConnection(GenericNodeRuntime runtime, boolean serverMode, String serverName, int port)
public void init(SSLContext ctx, String[] ciphers, X509TrustManager trustManager)
public void setVerificationMode(boolean requestCert,
boolean rejectUnauthorized)
public void setWriteCallback(TriCallback<ByteBuffer,Boolean,Object> cb)
public void setReadCallback(BiCallback<ByteBuffer,Integer> cb)
public void setErrorCallback(Callback<SSLException> cb)
public SSLException getVerifyError()
public SSLException getError()
public boolean isInitFinished()
public boolean isSentShutdown()
public boolean isReceivedShutdown()
public int getWriteQueueLength()
public void wrap(ByteBuffer buf, Callback<Object> cb)
public void unwrap(ByteBuffer buf, Callback<Object> cb)
public void inboundError(int err)
public void start()
public X509Certificate getPeerCertificate()
public String getCipherSuite()
public String getProtocol()
Copyright © 2016 Apigee Corporation. All Rights Reserved.