org.mortbay.http
public class SslListener extends SocketListener
Version: $Id: SslListener.java,v 1.8 2006/11/22 20:21:30 gregwilkins Exp $
Field Summary | |
---|---|
static String | DEFAULT_KEYSTORE Default value for the keystore location path. |
static String | KEYPASSWORD_PROPERTY String name of key password property. |
static String | PASSWORD_PROPERTY String name of keystore password property. |
Constructor Summary | |
---|---|
SslListener()
Constructor. | |
SslListener(InetAddrPort p_address)
Constructor.
|
Method Summary | |
---|---|
protected Socket | accept(ServerSocket p_serverSocket) |
protected SSLServerSocketFactory | createFactory() |
protected void | customizeRequest(Socket socket, HttpRequest request)
Allow the Listener a chance to customise the request. before the server does its stuff. |
String | getAlgorithm() |
String[] | getCipherSuites() |
String | getKeystore() |
String | getKeystoreType() |
boolean | getNeedClientAuth() |
String | getProtocol() |
String | getProvider() |
boolean | getWantClientAuth() |
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 | setAlgorithm(String algorithm) |
void | setCipherSuites(String[] cipherSuites) |
void | setKeyPassword(String password) |
void | setKeystore(String keystore) |
void | setKeystoreType(String keystoreType) |
void | setNeedClientAuth(boolean needClientAuth)
Set the value of the needClientAuth property
|
void | setPassword(String password) |
void | setProtocol(String protocol) |
void | setProvider(String _provider) |
void | setWantClientAuth(boolean wantClientAuth)
Set the value of the needClientAuth property
|
Parameters: p_address
Parameters: p_serverSocket
Returns: @exception 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: @exception IOException
Parameters: needClientAuth true iff we require client certificate authentication.
Parameters: wantClientAuth true iff we would like client certificate authentication.