public class SslSocketConnector extends SocketConnector implements SslConnector
| Modifier and Type | Class and Description |
|---|---|
class |
SslSocketConnector.SslConnectorEndPoint |
SocketConnector.ConnectorEndPointAbstractLifeCycle.AbstractLifeCycleListenerLifeCycle.Listener_connections, _localPort, _serverSocket_buffers, _lowResourceMaxIdleTime, _maxIdleTime, _soLingerTime_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPINGDEFAULT_KEYSTORE, DEFAULT_KEYSTORE_ALGORITHM, DEFAULT_TRUSTSTORE_ALGORITHM, KEYPASSWORD_PROPERTY, PASSWORD_PROPERTY| Constructor and Description |
|---|
SslSocketConnector()
Constructor.
|
SslSocketConnector(SslContextFactory sslContextFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(int acceptorID) |
protected void |
configure(Socket socket) |
void |
customize(EndPoint endpoint,
Request request)
Allow the Listener a chance to customise the request.
|
protected void |
doStart() |
protected void |
doStop() |
String |
getAlgorithm()
Deprecated.
|
String[] |
getExcludeCipherSuites()
Deprecated.
|
int |
getHandshakeTimeout() |
String[] |
getIncludeCipherSuites()
Deprecated.
|
String |
getKeystore()
Deprecated.
|
String |
getKeystoreType()
Deprecated.
|
boolean |
getNeedClientAuth()
Deprecated.
|
String |
getProtocol()
Deprecated.
|
String |
getProvider()
Deprecated.
|
String |
getSecureRandomAlgorithm()
Deprecated.
|
SSLContext |
getSslContext()
Deprecated.
|
SslContextFactory |
getSslContextFactory() |
String |
getSslKeyManagerFactoryAlgorithm()
Deprecated.
|
String |
getSslTrustManagerFactoryAlgorithm()
Deprecated.
|
String |
getTruststore()
Deprecated.
|
String |
getTruststoreType()
Deprecated.
|
boolean |
getWantClientAuth()
Deprecated.
|
boolean |
isAllowRenegotiate() |
boolean |
isConfidential(Request request)
By default, we're confidential, given we speak SSL.
|
boolean |
isIntegral(Request request)
By default, we're integral, given we speak SSL.
|
protected ServerSocket |
newServerSocket(String host,
int port,
int backlog) |
void |
open()
Opens the connector
|
void |
setAlgorithm(String algorithm)
Deprecated.
|
void |
setAllowRenegotiate(boolean allowRenegotiate)
Set if SSL re-negotiation is allowed.
|
void |
setExcludeCipherSuites(String[] cipherSuites)
Deprecated.
|
void |
setHandshakeTimeout(int msec)
Set the time in milliseconds for so_timeout during ssl handshaking
|
void |
setIncludeCipherSuites(String[] cipherSuites)
Deprecated.
|
void |
setKeyPassword(String password)
Deprecated.
|
void |
setKeystore(String keystore)
Deprecated.
|
void |
setKeystoreType(String keystoreType)
Deprecated.
|
void |
setNeedClientAuth(boolean needClientAuth)
Deprecated.
|
void |
setPassword(String password)
Deprecated.
|
void |
setProtocol(String protocol)
Deprecated.
|
void |
setProvider(String provider)
Deprecated.
|
void |
setSecureRandomAlgorithm(String algorithm)
Deprecated.
|
void |
setSslContext(SSLContext sslContext)
Deprecated.
|
void |
setSslKeyManagerFactoryAlgorithm(String algorithm)
Deprecated.
|
void |
setSslTrustManagerFactoryAlgorithm(String algorithm)
Deprecated.
|
void |
setTrustPassword(String password)
Deprecated.
|
void |
setTruststore(String truststore)
Deprecated.
|
void |
setTruststoreType(String truststoreType)
Deprecated.
|
void |
setWantClientAuth(boolean wantClientAuth)
Deprecated.
|
close, dump, getConnection, getLocalPort, newConnectioncheckForwardedHeaders, connectionClosed, connectionOpened, connectionUpgraded, getAcceptorPriorityOffset, getAcceptors, getAcceptQueueSize, getConfidentialPort, getConfidentialScheme, getConnections, getConnectionsDurationMax, getConnectionsDurationMean, getConnectionsDurationStdDev, getConnectionsDurationTotal, getConnectionsOpen, getConnectionsOpenMax, getConnectionsRequestsMax, getConnectionsRequestsMean, getConnectionsRequestsStdDev, getForwardedCipherSuiteHeader, getForwardedForHeader, getForwardedHostHeader, getForwardedProtoHeader, getForwardedServerHeader, getForwardedSslSessionIdHeader, getHost, getHostHeader, getIntegralPort, getIntegralScheme, getLeftMostFieldValue, getLowResourceMaxIdleTime, getLowResourcesMaxIdleTime, getMaxBuffers, getMaxIdleTime, getName, getPort, getRequestBuffers, getRequestBufferSize, getRequestBufferType, getRequestHeaderSize, getRequestHeaderType, getRequests, getResolveNames, getResponseBuffers, getResponseBufferSize, getResponseBufferType, getResponseHeaderSize, getResponseHeaderType, getReuseAddress, getServer, getSoLingerTime, getStatsOn, getStatsOnMs, getThreadPool, isForwarded, isLowResources, join, persist, setAcceptorPriorityOffset, setAcceptors, setAcceptQueueSize, setConfidentialPort, setConfidentialScheme, setForwarded, setForwardedCipherSuiteHeader, setForwardedForHeader, setForwardedHostHeader, setForwardedProtoHeader, setForwardedServerHeader, setForwardedSslSessionIdHeader, setHost, setHostHeader, setIntegralPort, setIntegralScheme, setLowResourceMaxIdleTime, setLowResourcesMaxIdleTime, setMaxBuffers, setMaxIdleTime, setName, setPort, setRequestBuffers, setRequestBufferSize, setRequestHeaderSize, setResolveNames, setResponseBuffers, setResponseBufferSize, setResponseHeaderSize, setReuseAddress, setServer, setSoLingerTime, setStatsOn, setThreadPool, statsReset, stopAccept, toStringaddBean, addBean, contains, destroy, dump, dump, dump, dump, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, unmanageaddLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclose, getConfidentialPort, getConfidentialScheme, getConnection, getConnections, getConnectionsDurationMax, getConnectionsDurationMean, getConnectionsDurationStdDev, getConnectionsDurationTotal, getConnectionsOpen, getConnectionsOpenMax, getConnectionsRequestsMax, getConnectionsRequestsMean, getConnectionsRequestsStdDev, getHost, getIntegralPort, getIntegralScheme, getLocalPort, getLowResourceMaxIdleTime, getMaxIdleTime, getName, getPort, getRequestBuffers, getRequestBufferSize, getRequestHeaderSize, getRequests, getResolveNames, getResponseBuffers, getResponseBufferSize, getResponseHeaderSize, getServer, getStatsOn, getStatsOnMs, isLowResources, persist, setHost, setLowResourceMaxIdleTime, setMaxIdleTime, setPort, setRequestBufferSize, setRequestHeaderSize, setResponseBufferSize, setResponseHeaderSize, setServer, setStatsOn, statsResetaddLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stoppublic SslSocketConnector()
public SslSocketConnector(SslContextFactory sslContextFactory)
public boolean isAllowRenegotiate()
isAllowRenegotiate in interface SslConnectorpublic void setAllowRenegotiate(boolean allowRenegotiate)
setAllowRenegotiate in interface SslConnectorallowRenegotiate - true if re-negotiation is allowed (default false)public void accept(int acceptorID)
throws IOException,
InterruptedException
accept in class SocketConnectorIOExceptionInterruptedExceptionprotected void configure(Socket socket) throws IOException
configure in class AbstractConnectorIOExceptionpublic void customize(EndPoint endpoint, Request request) throws IOException
customize in interface Connectorcustomize in class SocketConnectorendpoint - The Socket the request arrived on.
This should be a SocketEndPoint wrapping a SSLSocket.request - HttpRequest to be customised.IOException@Deprecated public String[] getExcludeCipherSuites()
getExcludeCipherSuites in interface SslConnectorSSLEngine.setEnabledCipherSuites(String[])SslConnector.getExcludeCipherSuites()@Deprecated public String[] getIncludeCipherSuites()
getIncludeCipherSuites in interface SslConnectorSSLEngine.setEnabledCipherSuites(String[])SslConnector.getIncludeCipherSuites()@Deprecated public String getKeystore()
getKeystore in interface SslConnectorSslConnector.getKeystore()@Deprecated public String getKeystoreType()
getKeystoreType in interface SslConnectorSslConnector.getKeystoreType()@Deprecated public boolean getNeedClientAuth()
getNeedClientAuth in interface SslConnectorSslConnector.getNeedClientAuth()@Deprecated public String getProtocol()
getProtocol in interface SslConnectorSSLContext.getInstance(String, String)SslConnector.getProtocol()@Deprecated public String getProvider()
getProvider in interface SslConnectorSSLContext.getInstance(String, String)SslConnector.getProvider()@Deprecated public String getSecureRandomAlgorithm()
getSecureRandomAlgorithm in interface SslConnectorSecureRandom.getInstance(String) to obtain the SecureRandom
instance passed to SSLContext.init(javax.net.ssl.KeyManager[], javax.net.ssl.TrustManager[], SecureRandom)SslConnector.getSecureRandomAlgorithm()@Deprecated public String getSslKeyManagerFactoryAlgorithm()
getSslKeyManagerFactoryAlgorithm in interface SslConnectorKeyManagerFactorySslConnector.getSslKeyManagerFactoryAlgorithm()@Deprecated public String getSslTrustManagerFactoryAlgorithm()
getSslTrustManagerFactoryAlgorithm in interface SslConnectorTrustManagerFactorySslConnector.getSslTrustManagerFactoryAlgorithm()@Deprecated public String getTruststore()
getTruststore in interface SslConnectorSslConnector.getTruststore()public SslContextFactory getSslContextFactory()
getSslContextFactory in interface SslConnectorSslConnector.getSslContextFactory()@Deprecated public String getTruststoreType()
getTruststoreType in interface SslConnectorSslConnector.getTruststoreType()@Deprecated public boolean getWantClientAuth()
getWantClientAuth in interface SslConnectorSslConnector.getWantClientAuth()public boolean isConfidential(Request request)
isConfidential in interface ConnectorisConfidential in class AbstractConnectorrequest - A requestpublic boolean isIntegral(Request request)
isIntegral in interface ConnectorisIntegral in class AbstractConnectorrequest - A requestpublic void open()
throws IOException
Connectoropen in interface Connectoropen in class SocketConnectorIOExceptionprotected void doStart()
throws Exception
doStart in class SocketConnectorExceptionprotected void doStop()
throws Exception
doStop in class SocketConnectorExceptionSocketConnector.doStop()protected ServerSocket newServerSocket(String host, int port, int backlog) throws IOException
newServerSocket in class SocketConnectorhost - The host name that this server should listen onport - the port that this server should listen onbacklog - See ServerSocket.bind(java.net.SocketAddress, int)socket object bound to the supplied address with all other
settings as per the current configuration of this connector.IOExceptionsetWantClientAuth(boolean),
setNeedClientAuth(boolean)@Deprecated public void setExcludeCipherSuites(String[] cipherSuites)
setExcludeCipherSuites in interface SslConnectorcipherSuites - The array of Ciphersuite names to exclude from
SSLEngine.setEnabledCipherSuites(String[])SslConnector.setExcludeCipherSuites(java.lang.String[])@Deprecated public void setIncludeCipherSuites(String[] cipherSuites)
setIncludeCipherSuites in interface SslConnectorcipherSuites - The array of Ciphersuite names to include in
SSLEngine.setEnabledCipherSuites(String[])SslConnector.setIncludeCipherSuites(java.lang.String[])@Deprecated public void setKeyPassword(String password)
setKeyPassword in interface SslConnectorpassword - The password (if any) for the specific key within
the key storeSslConnector.setKeyPassword(java.lang.String)@Deprecated public void setKeystore(String keystore)
setKeystore in interface SslConnectorkeystore - The resource path to the keystore, or null for built in keystores.@Deprecated public void setKeystoreType(String keystoreType)
setKeystoreType in interface SslConnectorkeystoreType - The type of the key store (default "JKS")SslConnector.setKeystoreType(java.lang.String)@Deprecated public void setNeedClientAuth(boolean needClientAuth)
setNeedClientAuth in interface SslConnectorneedClientAuth - true iff we require client certificate authentication.SSLEngine.getNeedClientAuth()@Deprecated public void setPassword(String password)
setPassword in interface SslConnectorpassword - The password for the key storeSslConnector.setPassword(java.lang.String)@Deprecated public void setTrustPassword(String password)
setTrustPassword in interface SslConnectorpassword - The password for the trust storeSslConnector.setTrustPassword(java.lang.String)@Deprecated public void setProtocol(String protocol)
setProtocol in interface SslConnectorprotocol - The SSL protocol (default "TLS") passed to SSLContext.getInstance(String, String)SslConnector.setProtocol(java.lang.String)@Deprecated public void setProvider(String provider)
setProvider in interface SslConnectorprovider - The SSL provider name, which if set is passed to
SSLContext.getInstance(String, String)SslConnector.setProvider(java.lang.String)@Deprecated public void setSecureRandomAlgorithm(String algorithm)
setSecureRandomAlgorithm in interface SslConnectoralgorithm - The algorithm name, which if set is passed to
SecureRandom.getInstance(String) to obtain the SecureRandom
instance passed to SSLContext.init(javax.net.ssl.KeyManager[], javax.net.ssl.TrustManager[], SecureRandom)SslConnector.setSecureRandomAlgorithm(java.lang.String)@Deprecated public void setSslKeyManagerFactoryAlgorithm(String algorithm)
setSslKeyManagerFactoryAlgorithm in interface SslConnectoralgorithm - The algorithm name (default "SunX509") used by
the KeyManagerFactorySslConnector.setSslKeyManagerFactoryAlgorithm(java.lang.String)@Deprecated public void setSslTrustManagerFactoryAlgorithm(String algorithm)
setSslTrustManagerFactoryAlgorithm in interface SslConnectoralgorithm - The algorithm name (default "SunX509") used by the TrustManagerFactorySslConnector.setSslTrustManagerFactoryAlgorithm(java.lang.String)@Deprecated public void setTruststore(String truststore)
setTruststore in interface SslConnectortruststore - The file name or URL of the trust store locationSslConnector.setTruststore(java.lang.String)@Deprecated public void setTruststoreType(String truststoreType)
setTruststoreType in interface SslConnectortruststoreType - The type of the trust store (default "JKS")SslConnector.setTruststoreType(java.lang.String)@Deprecated public void setSslContext(SSLContext sslContext)
setSslContext in interface SslConnectorsslContext - Set a preconfigured SSLContextSslConnector.setSslContext(javax.net.ssl.SSLContext)@Deprecated public SSLContext getSslContext()
getSslContext in interface SslConnectorSslConnector.setSslContext(javax.net.ssl.SSLContext)@Deprecated public void setWantClientAuth(boolean wantClientAuth)
setWantClientAuth in interface SslConnectorwantClientAuth - true if we want client certificate authentication.SSLServerSocket.setWantClientAuth(boolean)public void setHandshakeTimeout(int msec)
msec - a non-zero value will be used to set so_timeout during
ssl handshakes. A zero value means the maxIdleTime is used instead.public int getHandshakeTimeout()
@Deprecated public String getAlgorithm()
@Deprecated public void setAlgorithm(String algorithm)
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.