org.mortbay.http
Class SunJsseListener

java.lang.Object
  extended by org.mortbay.util.ThreadPool
      extended by org.mortbay.util.ThreadedServer
          extended by org.mortbay.http.SocketListener
              extended by org.mortbay.http.JsseListener
                  extended by org.mortbay.http.SunJsseListener
All Implemented Interfaces:
java.io.Serializable, HttpListener, LifeCycle

Deprecated. Use org.mortbay.http.SslListener

public class SunJsseListener
extends JsseListener

SSL Socket Listener for Sun's JSSE. This specialization of JsseListener is an specific listener using the Sun reference implementation. This is heavily based on the work from Court Demas, which in turn is based on the work from Forge Research.

Version:
$Id: SunJsseListener.java,v 1.20 2005/08/13 00:01:24 gregwilkins Exp $
Author:
Greg Wilkins (gregw@mortbay.com), Court Demas (court@kiwiconsulting.com), Forge Research Pty Ltd ACN 003 491 576
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.mortbay.util.ThreadPool
ThreadPool.PoolThread
 
Field Summary
 
Fields inherited from class org.mortbay.http.JsseListener
DEFAULT_KEYSTORE, DEFAULT_KEYSTORE_PROVIDER_CLASS, DEFAULT_KEYSTORE_PROVIDER_NAME, DEFAULT_KEYSTORE_TYPE, KEYPASSWORD_PROPERTY, KEYSTORE_PROPERTY, KEYSTORE_PROVIDER_CLASS_PROPERTY, KEYSTORE_PROVIDER_NAME_PROPERTY, KEYSTORE_TYPE_PROPERTY, PASSWORD_PROPERTY
 
Fields inherited from class org.mortbay.util.ThreadPool
__DAEMON, __PRIORITY
 
Fields inherited from interface org.mortbay.http.HttpListener
ATTRIBUTE
 
Constructor Summary
SunJsseListener()
          Deprecated. Constructor.
SunJsseListener(InetAddrPort p_address)
          Deprecated. Constructor.
 
Method Summary
protected  javax.net.ssl.SSLServerSocketFactory createFactory()
          Deprecated.  
 java.lang.String getKeystore()
          Deprecated.  
 java.lang.String getKeystoreProviderClass()
          Deprecated.  
 java.lang.String getKeystoreProviderName()
          Deprecated.  
 java.lang.String getKeystoreType()
          Deprecated.  
 boolean getUseDefaultTrustStore()
          Deprecated. Gets the default trust store flag.
 void setKeyPassword(java.lang.String password)
          Deprecated.  
 void setKeystore(java.lang.String keystore)
          Deprecated.  
 void setKeystoreProviderClass(java.lang.String classname)
          Deprecated.  
 void setKeystoreProviderName(java.lang.String name)
          Deprecated.  
 void setKeystoreType(java.lang.String keystore_type)
          Deprecated.  
 void setPassword(java.lang.String password)
          Deprecated.  
 void setUseDefaultTrustStore(boolean flag)
          Deprecated. Set a flag to determine if the default truststore should be used to initialize the TrustManager.
 
Methods inherited from class org.mortbay.http.JsseListener
accept, customizeRequest, getNeedClientAuth, isConfidential, isIntegral, newServerSocket, setNeedClientAuth
 
Methods inherited from class org.mortbay.http.SocketListener
createConnection, customizeRequest, getBufferReserve, getBufferSize, getConfidentialPort, getConfidentialScheme, getDefaultScheme, getHttpHandler, getHttpServer, getIdentifyListener, getIntegralPort, getIntegralScheme, getLowResourcePersistTimeMs, getLowResources, handleConnection, isLowOnResources, isOutOfResources, persistConnection, setBufferReserve, setBufferSize, setConfidentialPort, setConfidentialScheme, setDefaultScheme, setHttpHandler, setHttpServer, setIdentifyListener, setIntegralPort, setIntegralScheme, setLowResourcePersistTimeMs, setLowResources, start, stop
 
Methods inherited from class org.mortbay.util.ThreadedServer
acceptSocket, acceptSocket, getAcceptorThreads, getAcceptQueueSize, getHost, getInetAddress, getInetAddrPort, getLingerTimeSecs, getMaxReadTimeMs, getPort, getServerSocket, getTcpNoDelay, handle, handleConnection, open, setAcceptorThreads, setAcceptQueueSize, setHost, setInetAddress, setInetAddrPort, setLingerTimeSecs, setMaxReadTimeMs, setPort, setTcpNoDelay, stopJob, toString
 
Methods inherited from class org.mortbay.util.ThreadPool
getIdleThreads, getMaxIdleTimeMs, getMaxThreads, getMinThreads, getName, getPoolName, getThreads, getThreadsPriority, isDaemon, isStarted, join, run, setDaemon, setMaxIdleTimeMs, setMaxStopTimeMs, setMaxThreads, setMinThreads, setName, setPoolName, setThreadsPriority, shrink
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mortbay.http.HttpListener
getHost, getPort, setHost, setPort
 
Methods inherited from interface org.mortbay.util.LifeCycle
isStarted
 

Constructor Detail

SunJsseListener

public SunJsseListener()
Deprecated. 
Constructor.


SunJsseListener

public SunJsseListener(InetAddrPort p_address)
Deprecated. 
Constructor.

Parameters:
p_address -
Method Detail

setKeystore

public void setKeystore(java.lang.String keystore)
Deprecated. 

getKeystore

public java.lang.String getKeystore()
Deprecated. 

setPassword

public void setPassword(java.lang.String password)
Deprecated. 

setKeyPassword

public void setKeyPassword(java.lang.String password)
Deprecated. 

setKeystoreType

public void setKeystoreType(java.lang.String keystore_type)
Deprecated. 

getKeystoreType

public java.lang.String getKeystoreType()
Deprecated. 

setKeystoreProviderName

public void setKeystoreProviderName(java.lang.String name)
Deprecated. 

getKeystoreProviderName

public java.lang.String getKeystoreProviderName()
Deprecated. 

getKeystoreProviderClass

public java.lang.String getKeystoreProviderClass()
Deprecated. 

setKeystoreProviderClass

public void setKeystoreProviderClass(java.lang.String classname)
Deprecated. 

getUseDefaultTrustStore

public boolean getUseDefaultTrustStore()
Deprecated. 
Gets the default trust store flag.

Returns:
true if the default truststore will be used to initialize the TrustManager, false otherwise.

setUseDefaultTrustStore

public void setUseDefaultTrustStore(boolean flag)
Deprecated. 
Set a flag to determine if the default truststore should be used to initialize the TrustManager. The default truststore will typically be the ${JAVA_HOME}/jre/lib/security/cacerts.

Parameters:
flag - if true, the default truststore will be used. If false, the configured keystore will be used as the truststore.

createFactory

protected javax.net.ssl.SSLServerSocketFactory createFactory()
                                                      throws java.lang.Exception
Deprecated. 
Specified by:
createFactory in class JsseListener
Throws:
java.lang.Exception


Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.