Apache CXF API

org.apache.cxf.transport.https_jetty
Class CXFJettySslSocketConnector

java.lang.Object
  extended by org.eclipse.jetty.util.component.AbstractLifeCycle
      extended by org.eclipse.jetty.http.HttpBuffers
          extended by org.eclipse.jetty.server.AbstractConnector
              extended by org.eclipse.jetty.server.nio.AbstractNIOConnector
                  extended by org.eclipse.jetty.server.nio.SelectChannelConnector
                      extended by org.eclipse.jetty.server.ssl.SslSelectChannelConnector
                          extended by org.apache.cxf.transport.https_jetty.CXFJettySslSocketConnector
All Implemented Interfaces:
org.eclipse.jetty.server.Connector, org.eclipse.jetty.server.nio.NIOConnector, org.eclipse.jetty.server.ssl.SslConnector, org.eclipse.jetty.util.component.Dumpable, org.eclipse.jetty.util.component.LifeCycle

public class CXFJettySslSocketConnector
extends org.eclipse.jetty.server.ssl.SslSelectChannelConnector

This class extends the Jetty SslSelectChannelConnector, which allows us to configure it more in tune with the JSSE, using KeyManagers and TrustManagers.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
 
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
org.eclipse.jetty.util.component.LifeCycle.Listener
 
Field Summary
protected  List<String> cipherSuites
           
protected  FiltersType cipherSuitesFilter
           
protected  KeyManager[] keyManagers
           
protected  SecureRandom secureRandom
           
protected  TrustManager[] trustManagers
           
 
Fields inherited from class org.eclipse.jetty.server.nio.SelectChannelConnector
_acceptChannel
 
Fields inherited from class org.eclipse.jetty.server.AbstractConnector
_lowResourceMaxIdleTime, _maxIdleTime, _soLingerTime
 
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
 
Fields inherited from interface org.eclipse.jetty.server.ssl.SslConnector
DEFAULT_KEYSTORE, DEFAULT_KEYSTORE_ALGORITHM, DEFAULT_TRUSTSTORE_ALGORITHM, KEYPASSWORD_PROPERTY, PASSWORD_PROPERTY
 
Constructor Summary
CXFJettySslSocketConnector()
           
 
Method Summary
protected  SSLContext createSSLContext()
           
protected  void doStart()
           
protected  void setCipherSuites(List<String> cs)
          Set the cipherSuites
protected  void setCipherSuitesFilter(FiltersType filter)
          Set the CipherSuites Filter
protected  void setClientAuthentication(ClientAuthentication clientAuth)
          Set the ClientAuthentication (from the JAXB type) that configures an HTTP Destination.
protected  void setKeyManagers(KeyManager[] kmgrs)
          Set the KeyManagers.
protected  void setSecureRandom(SecureRandom random)
          Set the SecureRandom Parameters
protected  void setTrustManagers(TrustManager[] tmgrs)
          Set the TrustManagers.
 
Methods inherited from class org.eclipse.jetty.server.ssl.SslSelectChannelConnector
createSSLEngine, customize, doStop, getAlgorithm, getExcludeCipherSuites, getIncludeCipherSuites, getKeystore, getKeystoreType, getNeedClientAuth, getProtocol, getProvider, getSecureRandomAlgorithm, getSslBuffers, getSslContext, getSslContextFactory, getSslKeyManagerFactoryAlgorithm, getSslTrustManagerFactoryAlgorithm, getTruststore, getTruststoreType, getWantClientAuth, isAllowRenegotiate, isConfidential, isIntegral, newConnection, newEndPoint, setAlgorithm, setAllowRenegotiate, setExcludeCipherSuites, setIncludeCipherSuites, setKeyPassword, setKeystore, setKeystoreType, setNeedClientAuth, setPassword, setProtocol, setProvider, setSecureRandomAlgorithm, setSslContext, setSslKeyManagerFactoryAlgorithm, setSslTrustManagerFactoryAlgorithm, setTrustPassword, setTruststore, setTruststoreType, setWantClientAuth
 
Methods inherited from class org.eclipse.jetty.server.nio.SelectChannelConnector
accept, close, dump, endPointClosed, getConnection, getLocalPort, getLowResourcesConnections, getLowResourcesMaxIdleTime, open, persist, setLowResourcesConnections, setLowResourcesMaxIdleTime, setMaxIdleTime
 
Methods inherited from class org.eclipse.jetty.server.nio.AbstractNIOConnector
getUseDirectBuffers, setUseDirectBuffers
 
Methods inherited from class org.eclipse.jetty.server.AbstractConnector
checkForwardedHeaders, configure, connectionClosed, connectionOpened, connectionUpgraded, dump, 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, getMaxIdleTime, getName, getPort, getRequests, getResolveNames, getReuseAddress, getServer, getSoLingerTime, getStatsOn, getStatsOnMs, getThreadPool, isForwarded, isLowResources, join, setAcceptorPriorityOffset, setAcceptors, setAcceptQueueSize, setConfidentialPort, setConfidentialScheme, setForwarded, setForwardedCipherSuiteHeader, setForwardedForHeader, setForwardedHostHeader, setForwardedProtoHeader, setForwardedServerHeader, setForwardedSslSessionIdHeader, setHost, setHostHeader, setIntegralPort, setIntegralScheme, setLowResourceMaxIdleTime, setName, setPort, setResolveNames, setReuseAddress, setServer, setSoLingerTime, setStatsOn, setThreadPool, statsReset, stopAccept, toString
 
Methods inherited from class org.eclipse.jetty.http.HttpBuffers
getMaxBuffers, getRequestBuffers, getRequestBufferSize, getRequestBufferType, getRequestHeaderSize, getRequestHeaderType, getResponseBuffers, getResponseBufferSize, getResponseBufferType, getResponseHeaderSize, getResponseHeaderType, setMaxBuffers, setRequestBuffers, setRequestBufferSize, setRequestBufferType, setRequestHeaderSize, setRequestHeaderType, setResponseBuffers, setResponseBufferSize, setResponseBufferType, setResponseHeaderSize, setResponseHeaderType
 
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jetty.server.Connector
close, 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, open, persist, setHost, setLowResourceMaxIdleTime, setMaxIdleTime, setPort, setRequestBufferSize, setRequestHeaderSize, setResponseBufferSize, setResponseHeaderSize, setServer, setStatsOn, statsReset
 
Methods inherited from interface org.eclipse.jetty.util.component.LifeCycle
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 

Field Detail

keyManagers

protected KeyManager[] keyManagers

trustManagers

protected TrustManager[] trustManagers

secureRandom

protected SecureRandom secureRandom

cipherSuites

protected List<String> cipherSuites

cipherSuitesFilter

protected FiltersType cipherSuitesFilter
Constructor Detail

CXFJettySslSocketConnector

public CXFJettySslSocketConnector()
Method Detail

setCipherSuites

protected void setCipherSuites(List<String> cs)
Set the cipherSuites


setCipherSuitesFilter

protected void setCipherSuitesFilter(FiltersType filter)
Set the CipherSuites Filter


setKeyManagers

protected void setKeyManagers(KeyManager[] kmgrs)
Set the KeyManagers.


setTrustManagers

protected void setTrustManagers(TrustManager[] tmgrs)
Set the TrustManagers.


setSecureRandom

protected void setSecureRandom(SecureRandom random)
Set the SecureRandom Parameters


setClientAuthentication

protected void setClientAuthentication(ClientAuthentication clientAuth)
Set the ClientAuthentication (from the JAXB type) that configures an HTTP Destination.


doStart

protected void doStart()
                throws Exception
Overrides:
doStart in class org.eclipse.jetty.server.ssl.SslSelectChannelConnector
Throws:
Exception

createSSLContext

protected SSLContext createSSLContext()
                               throws Exception
Throws:
Exception

Apache CXF API

Apache CXF