|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openqa.jetty.util.ThreadPool org.openqa.jetty.util.ThreadedServer org.openqa.jetty.http.SocketListener org.openqa.jetty.http.SslListener
public class SslListener
JSSE Socket 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.openqa.jetty.util.ThreadPool |
---|
ThreadPool.PoolThread |
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_KEYSTORE
Default value for the keystore location path. |
static java.lang.String |
KEYPASSWORD_PROPERTY
String name of key password property. |
static java.lang.String |
PASSWORD_PROPERTY
String name of keystore password property. |
Fields inherited from class org.openqa.jetty.util.ThreadPool |
---|
__DAEMON, __PRIORITY |
Fields inherited from interface org.openqa.jetty.http.HttpListener |
---|
ATTRIBUTE |
Constructor Summary | |
---|---|
SslListener()
Constructor. |
|
SslListener(InetAddrPort p_address)
Constructor. |
Method Summary | |
---|---|
protected java.net.Socket |
accept(java.net.ServerSocket p_serverSocket)
|
protected javax.net.ssl.SSLServerSocketFactory |
createFactory()
|
protected void |
customizeRequest(java.net.Socket socket,
HttpRequest request)
Allow the Listener a chance to customise the request. before the server does its stuff. |
java.lang.String |
getAlgorithm()
|
java.lang.String[] |
getCipherSuites()
|
java.lang.String |
getKeystore()
|
java.lang.String |
getKeystoreType()
|
boolean |
getNeedClientAuth()
|
java.lang.String |
getProtocol()
|
java.lang.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 java.net.ServerSocket |
newServerSocket(InetAddrPort p_address,
int p_acceptQueueSize)
New server socket. |
void |
setAlgorithm(java.lang.String algorithm)
|
void |
setCipherSuites(java.lang.String[] cipherSuites)
|
void |
setKeyPassword(java.lang.String password)
|
void |
setKeystore(java.lang.String keystore)
|
void |
setKeystoreType(java.lang.String keystoreType)
|
void |
setNeedClientAuth(boolean needClientAuth)
Set the value of the needClientAuth property |
void |
setPassword(java.lang.String password)
|
void |
setProtocol(java.lang.String protocol)
|
void |
setProvider(java.lang.String _provider)
|
void |
setWantClientAuth(boolean wantClientAuth)
Set the value of the needClientAuth property |
Methods inherited from class org.openqa.jetty.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.openqa.jetty.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.openqa.jetty.http.HttpListener |
---|
getHost, getPort, setHost, setPort |
Methods inherited from interface org.openqa.jetty.util.LifeCycle |
---|
isStarted |
Field Detail |
---|
public static final java.lang.String DEFAULT_KEYSTORE
public static final java.lang.String PASSWORD_PROPERTY
public static final java.lang.String KEYPASSWORD_PROPERTY
Constructor Detail |
---|
public SslListener()
public SslListener(InetAddrPort p_address)
p_address
- Method Detail |
---|
public java.lang.String[] getCipherSuites()
public void setCipherSuites(java.lang.String[] cipherSuites)
public void setPassword(java.lang.String password)
public void setKeyPassword(java.lang.String password)
public java.lang.String getAlgorithm()
public void setAlgorithm(java.lang.String algorithm)
public java.lang.String getProtocol()
public void setProtocol(java.lang.String protocol)
public void setKeystore(java.lang.String keystore)
public java.lang.String getKeystore()
public java.lang.String getKeystoreType()
public void setKeystoreType(java.lang.String keystoreType)
public void setNeedClientAuth(boolean needClientAuth)
needClientAuth
- true iff we require client certificate authentication.public boolean getNeedClientAuth()
public void setWantClientAuth(boolean wantClientAuth)
wantClientAuth
- true iff we would like client certificate authentication.public boolean getWantClientAuth()
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 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.public java.lang.String getProvider()
public void setProvider(java.lang.String _provider)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |