public final class SSLExt extends Object
Modifier and Type | Field and Description |
---|---|
static int |
SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER |
static int |
SSL_MODE_ENABLE_PARTIAL_WRITE |
static int |
SSL_MODE_RELEASE_BUFFERS |
Constructor and Description |
---|
SSLExt() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkNPN(long tcsocket,
byte[] expected)
Higher level method, checking if the specified protocol has been
negotiated.
|
static int |
debug(long tcsock)
Enabling dump/debugging on the socket.
|
static int |
getNPN(long tcsock,
byte[] proto)
Get other side's advertised protocols.
|
static byte[] |
getSessionData(long tcsock)
Server: Extract the session data associated with the socket.
|
static int |
getTicket(long tcsock,
byte[] resBuf)
Client: get the ticket received from server, if tickets are supported.
|
static int |
setNPN(long sslContext,
byte[] spdyNPN) |
static int |
setNPN(long tcctx,
byte[] proto,
int len)
Set advertised NPN protocol.
|
static int |
setSessionData(long tcsock,
byte[] data,
int len)
Server: Set the session data for a socket.
|
static int |
setSNI(long tcsock,
byte[] data,
int len)
For client side calls.
|
static int |
setTicket(long tcsock,
byte[] data,
int len)
Client: set the previously received ticket.
|
static int |
setTicketKeys(long ctx,
byte[] data,
int len)
Set the key used by server to generate tickets.
|
static long |
sslCtxSetMode(long ctx,
long mode) |
static String |
sslErrReasonErrorString()
Return the last openssl error
|
static long |
sslSetMode(long tcsock,
long mode)
SSL_set_mode
|
public static final int SSL_MODE_ENABLE_PARTIAL_WRITE
public static final int SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER
public static final int SSL_MODE_RELEASE_BUFFERS
public static int setNPN(long tcctx, byte[] proto, int len)
public static int getNPN(long tcsock, byte[] proto)
public static int debug(long tcsock)
public static byte[] getSessionData(long tcsock)
public static int setSessionData(long tcsock, byte[] data, int len)
public static int getTicket(long tcsock, byte[] resBuf)
public static int setTicket(long tcsock, byte[] data, int len)
public static int setTicketKeys(long ctx, byte[] data, int len)
public static int setSNI(long tcsock, byte[] data, int len)
public static String sslErrReasonErrorString()
public static long sslCtxSetMode(long ctx, long mode)
public static long sslSetMode(long tcsock, long mode)
public static int setNPN(long sslContext, byte[] spdyNPN)
public static boolean checkNPN(long tcsocket, byte[] expected)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.