org.apache.tomcat.jni
public class SSLSocket extends Object
Version: $Revision: 832222 $, $Date: 2009-11-03 01:28:22 +0100 (Tue, 03 Nov 2009) $
Method Summary | |
---|---|
static int | attach(long ctx, long sock)
Attach APR socket on a SSL connection. |
static byte[] | getInfoB(long sock, int id)
Return SSL Info parameter as byte array.
|
static int | getInfoI(long sock, int id)
Return SSL Info parameter as integer.
|
static String | getInfoS(long sock, int id)
Return SSL Info parameter as String.
|
static int | handshake(long thesocket)
Do a SSL handshake. |
static int | renegotiate(long thesocket)
Do a SSL renegotiation.
|
static void | setVerify(long sock, int level, int depth)
Set Type of Client Certificate verification and Maximum depth of CA
Certificates in Client Certificate verification.
|
Parameters: ctx SSLContext to use. sock APR Socket that already did physical connect or accept.
Returns: APR_STATUS code.
Parameters: sock The socket to read the data from. id Parameter id.
Returns: Byte array containing info id value.
Parameters: sock The socket to read the data from. id Parameter id.
Returns: Integer containing info id value or -1 on error.
Parameters: sock The socket to read the data from. id Parameter id.
Returns: String containing info id value.
Parameters: thesocket The socket to use
Parameters: thesocket The socket to use
SSL_CVERIFY_NONE - No client Certificate is required at all SSL_CVERIFY_OPTIONAL - The client may present a valid Certificate SSL_CVERIFY_REQUIRE - The client has to present a valid Certificate SSL_CVERIFY_OPTIONAL_NO_CA - The client may present a valid Certificate but it need not to be (successfully) verifiable
Parameters: sock The socket to change. level Type of Client Certificate verification.