org.apache.activemq.transport.https
Class Krb5AndCertsSslSocketConnector

java.lang.Object
  extended by org.eclipse.jetty.util.component.AbstractLifeCycle
      extended by org.eclipse.jetty.util.component.AggregateLifeCycle
          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.http.HttpBuffers, org.eclipse.jetty.server.Connector, org.eclipse.jetty.server.ssl.SslConnector, org.eclipse.jetty.util.component.Destroyable, org.eclipse.jetty.util.component.Dumpable, 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 List<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
_buffers, _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
 void customize(org.eclipse.jetty.io.EndPoint endpoint, org.eclipse.jetty.server.Request request)
           
 org.eclipse.jetty.util.ssl.SslContextFactory getSslContextFactory()
           
static boolean isKrb(String mode)
           
protected  ServerSocket newServerSocket(String host, int port, int backlog)
           
 void setMode(String mode)
           
 
Methods inherited from class org.eclipse.jetty.server.ssl.SslSocketConnector
accept, configure, doStart, doStop, getAlgorithm, getExcludeCipherSuites, getHandshakeTimeout, getIncludeCipherSuites, getKeystore, getKeystoreType, getNeedClientAuth, getProtocol, getProvider, getSecureRandomAlgorithm, getSslContext, getSslKeyManagerFactoryAlgorithm, getSslTrustManagerFactoryAlgorithm, getTruststore, getTruststoreType, getWantClientAuth, isAllowRenegotiate, isConfidential, isIntegral, open, 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, dump, getConnection, getLocalPort, newConnection
 
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, 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, toString
 
Methods inherited from class org.eclipse.jetty.util.component.AggregateLifeCycle
addBean, addBean, contains, destroy, dump, dump, dump, dump, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, unmanage
 
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, 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
 
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable
dump
 

Field Detail

KRB5_CIPHER_SUITES

public static final List<String> KRB5_CIPHER_SUITES
Constructor Detail

Krb5AndCertsSslSocketConnector

public Krb5AndCertsSslSocketConnector()
Method Detail

isKrb

public static boolean isKrb(String mode)

setMode

public void setMode(String mode)

getSslContextFactory

public org.eclipse.jetty.util.ssl.SslContextFactory getSslContextFactory()
Specified by:
getSslContextFactory in interface org.eclipse.jetty.server.ssl.SslConnector
Overrides:
getSslContextFactory in class org.eclipse.jetty.server.ssl.SslSocketConnector

newServerSocket

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

customize

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


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.