org.mortbay.http
public abstract class JsseListener extends SocketListener
Deprecated: use SslListener
JSSE Socket Listener. This specialization of HttpListener is an abstract listener that can be used as the basis for a specific JSSE listener. This is heavily based on the work from Court Demas, which in turn is based on the work from Forge Research.Version: $Id: JsseListener.java,v 1.19 2005/11/03 18:21:59 gregwilkins Exp $
Field Summary | |
---|---|
static String | DEFAULT_KEYSTORE Default value for the keystore location path. |
static String | DEFAULT_KEYSTORE_PROVIDER_CLASS Default value for keystore provider class. null = use default |
static String | DEFAULT_KEYSTORE_PROVIDER_NAME Default value for keystore provider name. null = use default |
static String | DEFAULT_KEYSTORE_TYPE Default keystore type |
static String | KEYPASSWORD_PROPERTY String name of key password property. |
static String | KEYSTORE_PROPERTY String name of keystore location path property. |
static String | KEYSTORE_PROVIDER_CLASS_PROPERTY String name of keystore provider class property |
static String | KEYSTORE_PROVIDER_NAME_PROPERTY String name of keystore provider name property |
static String | KEYSTORE_TYPE_PROPERTY String name of keystore type property |
static String | PASSWORD_PROPERTY String name of keystore password property. |
Constructor Summary | |
---|---|
JsseListener()
Constructor. | |
JsseListener(InetAddrPort p_address)
Constructor.
|
Method Summary | |
---|---|
protected Socket | accept(ServerSocket p_serverSocket) |
protected abstract SSLServerSocketFactory | createFactory() |
protected void | customizeRequest(Socket socket, HttpRequest request)
Allow the Listener a chance to customise the request. before the server does its stuff. |
boolean | getNeedClientAuth() |
boolean | isConfidential(HttpConnection connection)
By default, we're confidential, given we speak SSL. |
boolean | isIntegral(HttpConnection connection)
By default, we're integral, given we speak SSL. |
protected ServerSocket | newServerSocket(InetAddrPort p_address, int p_acceptQueueSize) |
void | setNeedClientAuth(boolean needClientAuth)
Set the value of the needClientAuth property
|
Parameters: p_address
Parameters: p_serverSocket
Returns:
Throws: IOException
Parameters: socket The Socket the request arrived on. This should be a javax.net.ssl.SSLSocket. request HttpRequest to be customised.
Parameters: p_address p_acceptQueueSize
Returns:
Throws: IOException
Parameters: needClientAuth true iff we require client certificate authentication.