|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.core.base.Adaptee
org.norther.tammi.core.base.DefaultObjectFactory
org.norther.tammi.core.net.AbstractCommonFactory
org.norther.tammi.core.net.AbstractCommonSecureFactory
public abstract class AbstractCommonSecureFactory
An abstract implementation of network resource CommonSecureFactory.
| 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 |
AbstractCommonSecureFactory()
Constructs an SSL base socket factory. |
| Method Summary | |
|---|---|
protected void |
clearContextObjects()
Clears context dependent objects after modified configuration. |
String |
getDefaultAlias()
Gets the default key store alias. |
String |
getKeyManagerAlgorithm()
Gets the key manager algorithm. |
String |
getKeyManagerProvider()
Gets the key manager provider. |
ObjectName |
getKeyStoreLoaderName()
Gets the key store loader. |
String |
getSecureSocketProtocol()
Gets the protocol. |
String |
getSecureSocketProvider()
Gets the socket provider. |
protected SSLContext |
getSSLContext(String alias,
String pswd,
boolean create)
Gets the SSL context. |
String |
getTrustManagerAlgorithm()
Gets the trust manager algorithm. |
String |
getTrustManagerProvider()
Gets the trust manager provider. |
ObjectName |
getTrustStoreLoaderName()
Gets the trust store loader. |
void |
handleNotification(Notification notif,
Object handback)
Handles notifications from the loader. |
boolean |
isSecure()
Checks whether sockets produced are secure. |
void |
postmanaged()
This method is called when the implementing adaptee has been managed either during post-registration of the corresponding adapter MBean or just after it is explicitly added to the adapter MBean during run-time. |
void |
setDefaultAlias(String alias)
Sets the default key store alias. |
void |
setDefaultPassword(String pswd)
Sets the password of the default key store alias. |
void |
setKeyManagerAlgorithm(String algorithm)
Sets the key manager algorithm. |
void |
setKeyManagerProvider(String provider)
Sets the key manager provider. |
void |
setKeyStoreLoaderName(ObjectName name)
Sets the key store loader. |
void |
setSecureSocketProtocol(String protocol)
Sets the protocol. |
void |
setSecureSocketProvider(String provider)
Sets the socket provider. |
void |
setTrustManagerAlgorithm(String algorithm)
Sets the trust manager algorithm. |
void |
setTrustManagerProvider(String provider)
Sets the trust manager provider. |
void |
setTrustStoreLoaderName(ObjectName name)
Sets the trust store loader. |
void |
unmanaged()
This method is called when the implementing adaptee is unmanaged either during pre-deregistration of the corresponding adapter MBean or just before it is explicitly removed from the adapter MBean during run-time. |
| Methods inherited from class org.norther.tammi.core.net.AbstractCommonFactory |
|---|
createServerSocket, createSocket, getBacklog, getServerSocketFactory, getSocketFactory, 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.CommonSecureFactory |
|---|
getEnabledCipherSuites, getSupportedCipherSuites |
| 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 |
|---|
protected AbstractCommonSecureFactory()
| Method Detail |
|---|
public void postmanaged()
Manageable
postmanaged in interface Manageablepostmanaged in class Adaptee
public void unmanaged()
throws Exception
Manageable
unmanaged in interface Manageableunmanaged in class AdapteeException - if the adaptee refused to be unmanaged.public boolean isSecure()
CommonFactory
isSecure in interface CommonFactoryisSecure in class AbstractCommonFactorypublic String getDefaultAlias()
CommonSecureFactory
getDefaultAlias in interface CommonSecureFactorypublic void setDefaultAlias(String alias)
CommonSecureFactory
setDefaultAlias in interface CommonSecureFactoryalias - the alias.public void setDefaultPassword(String pswd)
CommonSecureFactory
setDefaultPassword in interface CommonSecureFactorypswd - the password.public ObjectName getKeyStoreLoaderName()
CommonSecureFactory
getKeyStoreLoaderName in interface CommonSecureFactorypublic void setKeyStoreLoaderName(ObjectName name)
CommonSecureFactory
setKeyStoreLoaderName in interface CommonSecureFactoryname - the name of the loader or a query.public String getKeyManagerAlgorithm()
CommonSecureFactory
getKeyManagerAlgorithm in interface CommonSecureFactorypublic void setKeyManagerAlgorithm(String algorithm)
CommonSecureFactory
setKeyManagerAlgorithm in interface CommonSecureFactoryalgorithm - the algorithm.public String getKeyManagerProvider()
CommonSecureFactory
getKeyManagerProvider in interface CommonSecureFactorypublic void setKeyManagerProvider(String provider)
CommonSecureFactory
setKeyManagerProvider in interface CommonSecureFactoryprovider - the provider.public ObjectName getTrustStoreLoaderName()
CommonSecureFactory
getTrustStoreLoaderName in interface CommonSecureFactorypublic void setTrustStoreLoaderName(ObjectName name)
CommonSecureFactory
setTrustStoreLoaderName in interface CommonSecureFactoryname - the name of the loader or a query.public String getTrustManagerAlgorithm()
CommonSecureFactory
getTrustManagerAlgorithm in interface CommonSecureFactorypublic void setTrustManagerAlgorithm(String algorithm)
CommonSecureFactory
setTrustManagerAlgorithm in interface CommonSecureFactoryalgorithm - the algorithm.public String getTrustManagerProvider()
CommonSecureFactory
getTrustManagerProvider in interface CommonSecureFactorypublic void setTrustManagerProvider(String provider)
CommonSecureFactory
setTrustManagerProvider in interface CommonSecureFactoryprovider - the provider.public String getSecureSocketProtocol()
CommonSecureFactory
getSecureSocketProtocol in interface CommonSecureFactorypublic void setSecureSocketProtocol(String protocol)
CommonSecureFactory
setSecureSocketProtocol in interface CommonSecureFactoryprotocol - the protocol.public String getSecureSocketProvider()
CommonSecureFactory
getSecureSocketProvider in interface CommonSecureFactorypublic void setSecureSocketProvider(String provider)
CommonSecureFactory
setSecureSocketProvider in interface CommonSecureFactoryprovider - the socket provider.
public void handleNotification(Notification notif,
Object handback)
handleNotification in interface NotificationListenernotif - the notification.handback - not used.
protected SSLContext getSSLContext(String alias,
String pswd,
boolean create)
throws ConstructionException
alias - the alias.pswd - the password.create - true to create a missing context.
ConstructionException - on erros.protected void clearContextObjects()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||