org.apache.activemq.transport.https
Class Krb5AndCertsSslSocketConnector

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.bio.SocketConnector
                  extended by org.eclipse.jetty.server.ssl.SslSocketConnector
                      extended by org.apache.activemq.transport.https.Krb5AndCertsSslSocketConnector
All Implemented Interfaces:
org.eclipse.jetty.server.Connector, org.eclipse.jetty.server.ssl.SslConnector, org.eclipse.jetty.util.component.LifeCycle

public class Krb5AndCertsSslSocketConnector
extends org.eclipse.jetty.server.ssl.SslSocketConnector

Extend Jetty's SslSocketConnector to optionally also provide Kerberos5ized SSL sockets. The only change in behavior from superclass is that we no longer honor requests to turn off NeedAuthentication when running with Kerberos support.


Nested Class Summary
static class Krb5AndCertsSslSocketConnector.MODE
           
 
Nested classes/interfaces inherited from class org.eclipse.jetty.server.ssl.SslSocketConnector
org.eclipse.jetty.server.ssl.SslSocketConnector.SslConnectorEndPoint
 
Nested classes/interfaces inherited from class org.eclipse.jetty.server.bio.SocketConnector
org.eclipse.jetty.server.bio.SocketConnector.ConnectorEndPoint
 
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
static java.util.List<java.lang.String> KRB5_CIPHER_SUITES
           
 
Fields inherited from class org.eclipse.jetty.server.bio.SocketConnector
_connections, _localPort, _serverSocket
 
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
Krb5AndCertsSslSocketConnector()
           
 
Method Summary
protected  javax.net.ssl.SSLServerSocketFactory createFactory()
           
 void customize(org.eclipse.jetty.io.EndPoint endpoint, org.eclipse.jetty.server.Request request)
           
protected  java.net.ServerSocket newServerSocket(java.lang.String host, int port, int backlog)
           
 void setMode(java.lang.String mode)
           
 
Methods inherited from class org.eclipse.jetty.server.ssl.SslSocketConnector
accept, configure, createSSLContext, getAlgorithm, getExcludeCipherSuites, getHandshakeTimeout, getIncludeCipherSuites, getKeyManagers, getKeystore, getKeyStore, getKeystoreType, getNeedClientAuth, getProtocol, getProvider, getSecureRandomAlgorithm, getSslContext, getSslKeyManagerFactoryAlgorithm, getSslTrustManagerFactoryAlgorithm, getTrustManagers, getTruststore, getTruststoreType, getWantClientAuth, isAllowRenegotiate, isConfidential, isIntegral, setAlgorithm, setAllowRenegotiate, setExcludeCipherSuites, setHandshakeTimeout, setIncludeCipherSuites, setKeyPassword, setKeystore, setKeystoreType, setNeedClientAuth, setPassword, setProtocol, setProvider, setSecureRandomAlgorithm, setSslContext, setSslKeyManagerFactoryAlgorithm, setSslTrustManagerFactoryAlgorithm, setTrustPassword, setTruststore, setTruststoreType, setWantClientAuth
 
Methods inherited from class org.eclipse.jetty.server.bio.SocketConnector
close, doStart, doStop, getConnection, getLocalPort, newConnection, open
 
Methods inherited from class org.eclipse.jetty.server.AbstractConnector
checkForwardedHeaders, connectionClosed, connectionOpened, connectionUpgraded, getAcceptorPriorityOffset, getAcceptors, getAcceptQueueSize, getConfidentialPort, getConfidentialScheme, getConnections, getConnectionsDurationMax, getConnectionsDurationMean, getConnectionsDurationStdDev, getConnectionsDurationTotal, getConnectionsOpen, getConnectionsOpenMax, getConnectionsRequestsMax, getConnectionsRequestsMean, getConnectionsRequestsStdDev, getForwardedForHeader, getForwardedHostHeader, getForwardedServerHeader, getHost, getHostHeader, getIntegralPort, getIntegralScheme, getLeftMostValue, getLowResourceMaxIdleTime, getLowResourcesMaxIdleTime, getMaxIdleTime, getName, getPort, getRequests, getResolveNames, getReuseAddress, getServer, getSoLingerTime, getStatsOn, getStatsOnMs, getThreadPool, isForwarded, isLowResources, isRequestHeader, isResponseHeader, join, newBuffer, newRequestBuffer, newRequestHeader, newResponseBuffer, newResponseHeader, persist, setAcceptorPriorityOffset, setAcceptors, setAcceptQueueSize, setConfidentialPort, setConfidentialScheme, setForwarded, setForwardedForHeader, setForwardedHostHeader, setForwardedServerHeader, setHost, setHostHeader, setIntegralPort, setIntegralScheme, setLowResourceMaxIdleTime, setLowResourcesMaxIdleTime, setMaxIdleTime, setName, setPort, setResolveNames, setReuseAddress, setServer, setSoLingerTime, setStatsOn, setThreadPool, statsReset, stopAccept, toString
 
Methods inherited from class org.eclipse.jetty.http.HttpBuffers
getHeaderBufferSize, getRequestBuffers, getRequestBufferSize, getRequestHeaderSize, getResponseBuffers, getResponseBufferSize, getResponseHeaderSize, setHeaderBufferSize, setRequestBufferSize, setRequestHeaderSize, setResponseBufferSize, setResponseHeaderSize
 
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, 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

KRB5_CIPHER_SUITES

public static final java.util.List<java.lang.String> KRB5_CIPHER_SUITES
Constructor Detail

Krb5AndCertsSslSocketConnector

public Krb5AndCertsSslSocketConnector()
Method Detail

setMode

public void setMode(java.lang.String mode)

createFactory

protected javax.net.ssl.SSLServerSocketFactory createFactory()
                                                      throws java.lang.Exception
Overrides:
createFactory in class org.eclipse.jetty.server.ssl.SslSocketConnector
Throws:
java.lang.Exception

newServerSocket

protected java.net.ServerSocket newServerSocket(java.lang.String host,
                                                int port,
                                                int backlog)
                                         throws java.io.IOException
Overrides:
newServerSocket in class org.eclipse.jetty.server.ssl.SslSocketConnector
Throws:
java.io.IOException

customize

public void customize(org.eclipse.jetty.io.EndPoint endpoint,
                      org.eclipse.jetty.server.Request request)
               throws java.io.IOException
Specified by:
customize in interface org.eclipse.jetty.server.Connector
Overrides:
customize in class org.eclipse.jetty.server.ssl.SslSocketConnector
Throws:
java.io.IOException


Copyright © 2005-2011 FuseSource, Corp.. All Rights Reserved.