|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mortbay.util.ThreadPool
org.mortbay.util.ThreadedServer
org.mortbay.http.SocketListener
org.mortbay.http.JsseListener
public abstract class JsseListener
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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.mortbay.util.ThreadPool |
---|
ThreadPool.PoolThread |
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_KEYSTORE
Deprecated. Default value for the keystore location path. |
static java.lang.String |
DEFAULT_KEYSTORE_PROVIDER_CLASS
Deprecated. Default value for keystore provider class. |
static java.lang.String |
DEFAULT_KEYSTORE_PROVIDER_NAME
Deprecated. Default value for keystore provider name. |
static java.lang.String |
DEFAULT_KEYSTORE_TYPE
Deprecated. Default keystore type |
static java.lang.String |
KEYPASSWORD_PROPERTY
Deprecated. String name of key password property. |
static java.lang.String |
KEYSTORE_PROPERTY
Deprecated. String name of keystore location path property. |
static java.lang.String |
KEYSTORE_PROVIDER_CLASS_PROPERTY
Deprecated. String name of keystore provider class property |
static java.lang.String |
KEYSTORE_PROVIDER_NAME_PROPERTY
Deprecated. String name of keystore provider name property |
static java.lang.String |
KEYSTORE_TYPE_PROPERTY
Deprecated. String name of keystore type property |
static java.lang.String |
PASSWORD_PROPERTY
Deprecated. String name of keystore password property. |
Fields inherited from class org.mortbay.util.ThreadPool |
---|
__DAEMON, __PRIORITY |
Fields inherited from interface org.mortbay.http.HttpListener |
---|
ATTRIBUTE |
Constructor Summary | |
---|---|
JsseListener()
Deprecated. Constructor. |
|
JsseListener(InetAddrPort p_address)
Deprecated. Constructor. |
Method Summary | |
---|---|
protected java.net.Socket |
accept(java.net.ServerSocket p_serverSocket)
Deprecated. |
protected abstract javax.net.ssl.SSLServerSocketFactory |
createFactory()
Deprecated. |
protected void |
customizeRequest(java.net.Socket socket,
HttpRequest request)
Deprecated. Allow the Listener a chance to customise the request. |
boolean |
getNeedClientAuth()
Deprecated. |
boolean |
isConfidential(HttpConnection connection)
Deprecated. By default, we're confidential, given we speak SSL. |
boolean |
isIntegral(HttpConnection connection)
Deprecated. By default, we're integral, given we speak SSL. |
protected java.net.ServerSocket |
newServerSocket(InetAddrPort p_address,
int p_acceptQueueSize)
Deprecated. New server socket. |
void |
setNeedClientAuth(boolean needClientAuth)
Deprecated. Set the value of the needClientAuth property |
Methods inherited from class org.mortbay.util.ThreadedServer |
---|
acceptSocket, acceptSocket, getAcceptorThreads, getAcceptQueueSize, getHost, getInetAddress, getInetAddrPort, getLingerTimeSecs, getMaxReadTimeMs, getPort, getServerSocket, getTcpNoDelay, handle, handleConnection, open, setAcceptorThreads, setAcceptQueueSize, setHost, setInetAddress, setInetAddrPort, setLingerTimeSecs, setMaxReadTimeMs, setPort, setTcpNoDelay, stopJob, toString |
Methods inherited from class org.mortbay.util.ThreadPool |
---|
getIdleThreads, getMaxIdleTimeMs, getMaxThreads, getMinThreads, getName, getPoolName, getThreads, getThreadsPriority, isDaemon, isStarted, join, run, setDaemon, setMaxIdleTimeMs, setMaxStopTimeMs, setMaxThreads, setMinThreads, setName, setPoolName, setThreadsPriority, shrink |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.mortbay.http.HttpListener |
---|
getHost, getPort, setHost, setPort |
Methods inherited from interface org.mortbay.util.LifeCycle |
---|
isStarted |
Field Detail |
---|
public static final java.lang.String KEYSTORE_PROPERTY
public static final java.lang.String KEYSTORE_TYPE_PROPERTY
public static final java.lang.String DEFAULT_KEYSTORE_TYPE
public static final java.lang.String KEYSTORE_PROVIDER_NAME_PROPERTY
public static final java.lang.String KEYSTORE_PROVIDER_CLASS_PROPERTY
public static final java.lang.String DEFAULT_KEYSTORE_PROVIDER_CLASS
public static final java.lang.String DEFAULT_KEYSTORE
public static final java.lang.String DEFAULT_KEYSTORE_PROVIDER_NAME
public static final java.lang.String PASSWORD_PROPERTY
public static final java.lang.String KEYPASSWORD_PROPERTY
Constructor Detail |
---|
public JsseListener()
public JsseListener(InetAddrPort p_address)
p_address
- Method Detail |
---|
public void setNeedClientAuth(boolean needClientAuth)
needClientAuth
- true iff we require client certificate authentication.public boolean getNeedClientAuth()
public boolean isIntegral(HttpConnection connection)
isIntegral
in interface HttpListener
isIntegral
in class SocketListener
connection
- The connection to test.
public boolean isConfidential(HttpConnection connection)
isConfidential
in interface HttpListener
isConfidential
in class SocketListener
connection
- The connection to test.
protected abstract javax.net.ssl.SSLServerSocketFactory createFactory() throws java.lang.Exception
java.lang.Exception
protected java.net.ServerSocket newServerSocket(InetAddrPort p_address, int p_acceptQueueSize) throws java.io.IOException
ThreadedServer
newServerSocket
in class ThreadedServer
p_address
- p_acceptQueueSize
-
java.io.IOException
protected java.net.Socket accept(java.net.ServerSocket p_serverSocket) throws java.io.IOException
p_serverSocket
-
java.io.IOException
protected void customizeRequest(java.net.Socket socket, HttpRequest request)
customizeRequest
in class SocketListener
socket
- The Socket the request arrived on. This should be a javax.net.ssl.SSLSocket.request
- HttpRequest to be customised.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |