public class SslSelectChannelConnector
extends org.mortbay.jetty.nio.SelectChannelConnector
org.mortbay.jetty.nio.SelectChannelConnector.ConnectorEndPoint, org.mortbay.jetty.nio.SelectChannelConnector.RetryContinuation
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
SslSelectChannelConnector() |
Modifier and Type | Method and Description |
---|---|
protected SSLContext |
createSSLContext() |
protected SSLEngine |
createSSLEngine() |
void |
customize(org.mortbay.io.EndPoint endpoint,
org.mortbay.jetty.Request request)
Allow the Listener a chance to customise the request.
|
protected void |
doStart() |
String |
getAlgorithm() |
org.mortbay.io.Buffer |
getBuffer(int size) |
String[] |
getCipherSuites()
Deprecated.
As of Java Servlet API 2.0, with no replacement.
|
String[] |
getExcludeCipherSuites() |
String |
getKeystore() |
String |
getKeystoreType() |
boolean |
getNeedClientAuth() |
String |
getProtocol() |
String |
getProvider() |
String |
getSecureRandomAlgorithm() |
String |
getSslKeyManagerFactoryAlgorithm() |
String |
getSslTrustManagerFactoryAlgorithm() |
String |
getTruststore() |
String |
getTruststoreType() |
boolean |
getWantClientAuth() |
boolean |
isAllowRenegotiate() |
boolean |
isConfidential(org.mortbay.jetty.Request request)
By default, we're confidential, given we speak SSL.
|
boolean |
isIntegral(org.mortbay.jetty.Request request)
By default, we're integral, given we speak SSL.
|
protected org.mortbay.io.Connection |
newConnection(SocketChannel channel,
org.mortbay.io.nio.SelectChannelEndPoint endpoint) |
protected org.mortbay.io.nio.SelectChannelEndPoint |
newEndPoint(SocketChannel channel,
org.mortbay.io.nio.SelectorManager.SelectSet selectSet,
SelectionKey key) |
void |
returnBuffer(org.mortbay.io.Buffer buffer) |
void |
setAlgorithm(String algorithm) |
void |
setAllowRenegotiate(boolean allowRenegotiate)
Set if SSL re-negotiation is allowed.
|
void |
setCipherSuites(String[] cipherSuites)
Deprecated.
As of Java Servlet API 2.0, with no replacement.
|
void |
setExcludeCipherSuites(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 |
setSecureRandomAlgorithm(String algorithm) |
void |
setSslKeyManagerFactoryAlgorithm(String algorithm) |
void |
setSslTrustManagerFactoryAlgorithm(String algorithm) |
void |
setTrustPassword(String password) |
void |
setTruststore(String truststore) |
void |
setTruststoreType(String truststoreType) |
void |
setWantClientAuth(boolean wantClientAuth) |
accept, close, doStop, getConnection, getDelaySelectKeyUpdate, getLocalPort, getLowResourcesConnections, getLowResourcesMaxIdleTime, newContinuation, open, persist, setDelaySelectKeyUpdate, setLowResourceMaxIdleTime, setLowResourcesConnections, setLowResourcesMaxIdleTime, setMaxIdleTime
getUseDirectBuffers, newBuffer, setUseDirectBuffers
checkForwardedHeaders, configure, connectionClosed, connectionOpened, getAcceptorPriorityOffset, getAcceptors, getAcceptQueueSize, getConfidentialPort, getConfidentialScheme, getConnections, getConnectionsDurationAve, getConnectionsDurationMax, getConnectionsDurationMin, getConnectionsDurationTotal, getConnectionsOpen, getConnectionsOpenMax, getConnectionsOpenMin, getConnectionsRequestsAve, getConnectionsRequestsMax, getConnectionsRequestsMin, getForwardedForHeader, getForwardedHostHeader, getForwardedServerHeader, getHost, getHostHeader, getIntegralPort, getIntegralScheme, getLeftMostValue, getLowResourceMaxIdleTime, getMaxIdleTime, getName, getPort, getRequests, getResolveNames, getReuseAddress, getServer, getSoLingerTime, getStatsOn, getStatsOnMs, getThreadPool, isForwarded, join, setAcceptorPriorityOffset, setAcceptors, setAcceptQueueSize, setConfidentialPort, setConfidentialScheme, setForwarded, setForwardedForHeader, setForwardedHostHeader, setForwardedServerHeader, setHost, setHostHeader, setIntegralPort, setIntegralScheme, setName, setPort, setResolveNames, setReuseAddress, setServer, setSoLingerTime, setStatsOn, setThreadPool, statsReset, stopAccept, toString
getHeaderBufferSize, getRequestBufferSize, getResponseBufferSize, setHeaderBufferSize, setRequestBufferSize, setResponseBufferSize
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final String DEFAULT_KEYSTORE
public static final String KEYPASSWORD_PROPERTY
public static final String PASSWORD_PROPERTY
public org.mortbay.io.Buffer getBuffer(int size)
getBuffer
in interface org.mortbay.io.Buffers
getBuffer
in class org.mortbay.jetty.AbstractBuffers
public void returnBuffer(org.mortbay.io.Buffer buffer)
returnBuffer
in interface org.mortbay.io.Buffers
returnBuffer
in class org.mortbay.jetty.AbstractBuffers
public void customize(org.mortbay.io.EndPoint endpoint, org.mortbay.jetty.Request request) throws IOException
customize
in interface org.mortbay.jetty.Connector
customize
in class org.mortbay.jetty.nio.SelectChannelConnector
endpoint
- The Socket the request arrived on. This should be a
SocketEndPoint
wrapping a SSLSocket
.request
- HttpRequest to be customised.IOException
public boolean isAllowRenegotiate()
public void setAllowRenegotiate(boolean allowRenegotiate)
allowRenegotiate
- true if re-negotiation is allowed (default false)public String[] getCipherSuites()
public String[] getExcludeCipherSuites()
public void setCipherSuites(String[] cipherSuites)
public void setExcludeCipherSuites(String[] cipherSuites)
public void setPassword(String password)
public void setTrustPassword(String password)
public void setKeyPassword(String password)
public String getAlgorithm()
public void setAlgorithm(String algorithm)
public String getProtocol()
public void setProtocol(String protocol)
public void setKeystore(String keystore)
public String getKeystore()
public String getKeystoreType()
public boolean getNeedClientAuth()
public boolean getWantClientAuth()
public void setNeedClientAuth(boolean needClientAuth)
needClientAuth
- true iff we require client certificate authentication.public void setWantClientAuth(boolean wantClientAuth)
public void setKeystoreType(String keystoreType)
public String getProvider()
public String getSecureRandomAlgorithm()
public String getSslKeyManagerFactoryAlgorithm()
public String getSslTrustManagerFactoryAlgorithm()
public String getTruststore()
public String getTruststoreType()
public void setProvider(String _provider)
public void setSecureRandomAlgorithm(String algorithm)
public void setSslKeyManagerFactoryAlgorithm(String algorithm)
public void setSslTrustManagerFactoryAlgorithm(String algorithm)
public void setTruststore(String truststore)
public void setTruststoreType(String truststoreType)
public boolean isConfidential(org.mortbay.jetty.Request request)
isConfidential
in interface org.mortbay.jetty.Connector
isConfidential
in class org.mortbay.jetty.AbstractConnector
public boolean isIntegral(org.mortbay.jetty.Request request)
isIntegral
in interface org.mortbay.jetty.Connector
isIntegral
in class org.mortbay.jetty.AbstractConnector
protected org.mortbay.io.nio.SelectChannelEndPoint newEndPoint(SocketChannel channel, org.mortbay.io.nio.SelectorManager.SelectSet selectSet, SelectionKey key) throws IOException
newEndPoint
in class org.mortbay.jetty.nio.SelectChannelConnector
IOException
protected org.mortbay.io.Connection newConnection(SocketChannel channel, org.mortbay.io.nio.SelectChannelEndPoint endpoint)
newConnection
in class org.mortbay.jetty.nio.SelectChannelConnector
protected SSLEngine createSSLEngine() throws IOException
IOException
protected void doStart() throws Exception
doStart
in class org.mortbay.jetty.nio.SelectChannelConnector
Exception
protected SSLContext createSSLContext() throws Exception
Exception
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.