org.norther.tammi.core.net
Class AbstractSecureSocketFactory

java.lang.Object
  extended by org.norther.tammi.core.base.Adaptee
      extended by org.norther.tammi.core.base.DefaultObjectFactory
          extended by org.norther.tammi.core.net.AbstractCommonFactory
              extended by org.norther.tammi.core.net.AbstractCommonSecureFactory
                  extended by org.norther.tammi.core.net.AbstractSecureSocketFactory
All Implemented Interfaces:
Serializable, EventListener, NotificationBroadcaster, NotificationEmitter, NotificationListener, Manageable, MBeanDelegate, ObjectFactory, CommonFactory, CommonSecureFactory
Direct Known Subclasses:
DefaultSecureServerSocketFactory, DefaultSecureSocketFactory

public abstract class AbstractSecureSocketFactory
extends AbstractCommonSecureFactory

An abstract implementation of network socket CommonSecureFactory.

Author:
Ilkka Priha
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.norther.tammi.core.net.AbstractCommonFactory
socketBacklog
 
Fields inherited from class org.norther.tammi.core.base.Adaptee
ADAPTEE_NOTIF_DESCRIPTION, ADAPTEE_NOTIFICATIONS
 
Fields inherited from interface org.norther.tammi.core.net.CommonSecureFactory
DEFAULT_SSL_PROTOCOL
 
Fields inherited from interface org.norther.tammi.core.base.MBeanDelegate
ARRAY_TYPE, OBJECT_TYPE, PRIMITIVE_TYPE, STRING_TYPE
 
Constructor Summary
protected AbstractSecureSocketFactory()
          Constructs an SSL base socket factory.
 
Method Summary
 String[] getEnabledCipherSuites(String alias)
          Gets the enabled cipher suites for the specified key store alias.
protected  ServerSocketFactory getServerSocketFactory(String alias, String pswd)
          Gets the implementation of the server socket factory.
protected  SocketFactory getSocketFactory(String alias, String pswd)
          Gets the implementation of the socket factory.
 String[] getSupportedCipherSuites(String alias)
          Gets the supported cipher suites for the specified key store alias.
 
Methods inherited from class org.norther.tammi.core.net.AbstractCommonSecureFactory
clearContextObjects, getDefaultAlias, getKeyManagerAlgorithm, getKeyManagerProvider, getKeyStoreLoaderName, getSecureSocketProtocol, getSecureSocketProvider, getSSLContext, getTrustManagerAlgorithm, getTrustManagerProvider, getTrustStoreLoaderName, handleNotification, isSecure, postmanaged, setDefaultAlias, setDefaultPassword, setKeyManagerAlgorithm, setKeyManagerProvider, setKeyStoreLoaderName, setSecureSocketProtocol, setSecureSocketProvider, setTrustManagerAlgorithm, setTrustManagerProvider, setTrustStoreLoaderName, unmanaged
 
Methods inherited from class org.norther.tammi.core.net.AbstractCommonFactory
createServerSocket, createSocket, getBacklog, getSoTimeout, isLoaderSupported, isReuseAddress, setBacklog, setReuseAddress, setSoTimeout
 
Methods inherited from class org.norther.tammi.core.base.DefaultObjectFactory
getInstance, getInstance, getInstance, getInstance
 
Methods inherited from class org.norther.tammi.core.base.Adaptee
addAdaptee, addNotificationListener, getAttributeSupport, getBroker, getCanonicalName, getDomain, getFactory, getLoader, getLog, getLog, getMBean, getMBeanServer, getNotificationInfo, getObjectName, getRegistrationTime, getSequenceNumber, hasListeners, isRegistered, premanaged, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification, sendNotification, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.norther.tammi.core.net.CommonFactory
getSoTimeout, isReuseAddress, setReuseAddress, setSoTimeout
 
Methods inherited from interface org.norther.tammi.core.base.ObjectFactory
getInstance, getInstance, getInstance, getInstance, isLoaderSupported
 

Constructor Detail

AbstractSecureSocketFactory

protected AbstractSecureSocketFactory()
Constructs an SSL base socket factory.

Method Detail

getEnabledCipherSuites

public String[] getEnabledCipherSuites(String alias)
Description copied from interface: CommonSecureFactory
Gets the enabled cipher suites for the specified key store alias.

Parameters:
alias - the alias.
Returns:
an array of cipher suite names.

getSupportedCipherSuites

public String[] getSupportedCipherSuites(String alias)
Description copied from interface: CommonSecureFactory
Gets the supported cipher suites for the specified key store alias.

Parameters:
alias - the alias.
Returns:
an array of cipher suite names.

getSocketFactory

protected SocketFactory getSocketFactory(String alias,
                                         String pswd)
                                  throws ConstructionException
Description copied from class: AbstractCommonFactory
Gets the implementation of the socket factory.

Specified by:
getSocketFactory in class AbstractCommonFactory
Parameters:
alias - an optional key alias.
pswd - an optional key password.
Returns:
the factory.
Throws:
ConstructionException - if a resource is not available.

getServerSocketFactory

protected ServerSocketFactory getServerSocketFactory(String alias,
                                                     String pswd)
                                              throws ConstructionException
Description copied from class: AbstractCommonFactory
Gets the implementation of the server socket factory.

Specified by:
getServerSocketFactory in class AbstractCommonFactory
Parameters:
alias - an optional key alias.
pswd - an optional key password.
Returns:
the factory.
Throws:
ConstructionException - if a resource is not available.


Copyright © 2004 The Norther Organization. All rights reserved.