| java.lang.Object org.apache.tomcat.jni.SSLSocket
SSLSocket | public class SSLSocket (Code) | | SSL Socket
author: Mladen Turk version: $Revision: 467222 $, $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $ |
Method Summary | |
native public static int | attach(long ctx, long sock) Attach APR socket on a SSL connection.
Parameters: ctx - SSLContext to use. Parameters: sock - APR Socket that already did physical connect or accept. | native public static byte[] | getInfoB(long sock, int id) Retrun SSL Info parameter as byte array.
Parameters: sock - The socket to read the data from. Parameters: id - Parameter id. | native public static int | getInfoI(long sock, int id) Retrun SSL Info parameter as integer.
Parameters: sock - The socket to read the data from. Parameters: id - Parameter id. | native public static String | getInfoS(long sock, int id) Retrun SSL Info parameter as String.
Parameters: sock - The socket to read the data from. Parameters: id - Parameter id. | native public static int | handshake(long thesocket) Do a SSL handshake. | native public static int | renegotiate(long thesocket) Do a SSL renegotiation.
SSL supports per-directory re-configuration of SSL parameters.
This is implemented by performing an SSL renegotiation of the
re-configured parameters after the request is read, but before the
response is sent. |
attach | native public static int attach(long ctx, long sock) throws Exception(Code) | | Attach APR socket on a SSL connection.
Parameters: ctx - SSLContext to use. Parameters: sock - APR Socket that already did physical connect or accept. APR_STATUS code. |
getInfoB | native public static byte[] getInfoB(long sock, int id) throws Exception(Code) | | Retrun SSL Info parameter as byte array.
Parameters: sock - The socket to read the data from. Parameters: id - Parameter id. Byte array containing info id value. |
getInfoI | native public static int getInfoI(long sock, int id) throws Exception(Code) | | Retrun SSL Info parameter as integer.
Parameters: sock - The socket to read the data from. Parameters: id - Parameter id. Integer containing info id value or -1 on error. |
getInfoS | native public static String getInfoS(long sock, int id) throws Exception(Code) | | Retrun SSL Info parameter as String.
Parameters: sock - The socket to read the data from. Parameters: id - Parameter id. String containing info id value. |
handshake | native public static int handshake(long thesocket)(Code) | | Do a SSL handshake.
Parameters: thesocket - The socket to use |
renegotiate | native public static int renegotiate(long thesocket)(Code) | | Do a SSL renegotiation.
SSL supports per-directory re-configuration of SSL parameters.
This is implemented by performing an SSL renegotiation of the
re-configured parameters after the request is read, but before the
response is sent. In more detail: the renegotiation happens after the
request line and MIME headers were read, but _before_ the attached
request body is read. The reason simply is that in the HTTP protocol
usually there is no acknowledgment step between the headers and the
body (there is the 100-continue feature and the chunking facility
only), so Apache has no API hook for this step.
Parameters: thesocket - The socket to use |
|
|