cgl.narada.transport.ssl
Class SSLLinkFactory

java.lang.Object
  extended by cgl.narada.transport.sslHttpBase.LinkFactoryImpl
      extended by cgl.narada.transport.ssl.SSLLinkFactory
All Implemented Interfaces:
LinkFactory, TransportDataListener

public class SSLLinkFactory
extends LinkFactoryImpl

SSL Link factory that wraps WinINET SSL and also JSSE SSL. If the library is run on windows, it will automatically choose by default to use the WinINET SSL library for better proxy penetration. Otherwise, it will use JSSE SSL. You can also set it to none secure mode in which it will just fake SSL.

Version:
1.0

Field Summary
static String CHANNEL_TYPE
           
 
Fields inherited from class cgl.narada.transport.sslHttpBase.LinkFactoryImpl
m_factory, m_key2transport, m_linkManager, m_statusInterval, m_transport2key, m_transportAcceptor, m_transportHandler
 
Constructor Summary
SSLLinkFactory()
          -------------------------------------------------------------------
 
Method Summary
 boolean canManageLinkMigrationOfType(String linkType)
          ------------------------------------------------------------------- Currently only can migrate link type of SSL.
 String getManagedLinksType()
          -------------------------------------------------------------------
 void manageLinkMigration(Link link)
          ------------------------------------------------------------------- Migrate a link of "ssl" type to this factory.
 void setLinkFactoryProperties(Properties factoryProperties)
          ------------------------------------------------------------------- Set the factory creation parameters.
 
Methods inherited from class cgl.narada.transport.sslHttpBase.LinkFactoryImpl
createLink, dataReceived, dispose, getLinkManager, getLinks, handlePerfMessage, loadLinkFactoryServices, setLinkStatusInterval, setTransportHandler, transportClosed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHANNEL_TYPE

public static final String CHANNEL_TYPE
See Also:
Constant Field Values
Constructor Detail

SSLLinkFactory

public SSLLinkFactory()
-------------------------------------------------------------------

Method Detail

setLinkFactoryProperties

public void setLinkFactoryProperties(Properties factoryProperties)
------------------------------------------------------------------- Set the factory creation parameters.

Specified by:
setLinkFactoryProperties in interface LinkFactory
Overrides:
setLinkFactoryProperties in class LinkFactoryImpl
Parameters:
factoryProperties - A list of possible properties are:
These properties are only useful for JSSE implementation.

  • truststore - Location of the trusted authorities database
  • keystore - Location of the public/private key database
  • truststorePassword - Password to the truststore
  • keystorePassword - Password to the keystore
  • username - The username for proxy authetication
  • password - The password for proxy authentication
  • domain - NT domain or workgroup for NTLM authentication
  • host - local host name for NTLM authentication
  • https.proxyHost - The location of the HTTPS proxy. Will try to auto detect from System properties if this does not exist.
  • https.proxyPort - The location of the HTTPS proxy port. Will try to auto detec from System properties if this does not exist.
  • secure - true | false. If false, will not do any real SSL.
  • listenerport - The port to listen for incoming connections.

getManagedLinksType

public String getManagedLinksType()
-------------------------------------------------------------------


canManageLinkMigrationOfType

public boolean canManageLinkMigrationOfType(String linkType)
------------------------------------------------------------------- Currently only can migrate link type of SSL.


manageLinkMigration

public void manageLinkMigration(Link link)
                         throws TransportException
------------------------------------------------------------------- Migrate a link of "ssl" type to this factory.

Parameters:
link - Must be of LinkImpl type.
Throws:
TransportException


For comments and suggestions please send e-mail to The NaradaBrokering Project