Package fr.dyade.aaa.agent
Class SSLNetwork
- java.lang.Object
-
- fr.dyade.aaa.agent.Network
-
- fr.dyade.aaa.agent.StreamNetwork
-
- fr.dyade.aaa.agent.PoolNetwork
-
- fr.dyade.aaa.agent.SSLNetwork
-
- All Implemented Interfaces:
MessageComparator,MessageConsumer,NetworkMBean,PoolNetworkMBean
public final class SSLNetwork extends PoolNetwork
A network component using SSL Sockets.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class fr.dyade.aaa.agent.PoolNetwork
PoolNetwork.Boot, PoolNetwork.Dispatcher, PoolNetwork.NetSession, PoolNetwork.Sender, PoolNetwork.WakeOnConnection, PoolNetwork.WatchDog
-
Nested classes/interfaces inherited from class fr.dyade.aaa.agent.Network
Network.NetworkAverageLoadTask
-
-
Field Summary
Fields Modifier and Type Field Description static StringKEYFILEName of property that allow to fix the keystore's pathname: "SSLNetwork.keyfile".static StringKTYPEstatic StringPASSName of property that allow to fix the keystore's password: "SSLNetwork.pass".static StringSSLCONTEXTprivate SSLServerSocketFactorysslServerSocketFactoryHttpsNetwork needs specific use of SSLServerSocketFactory.private SSLSocketFactorysslSocketFactoryHttpsNetwork needs specific use of SSLSocketFactory.-
Fields inherited from class fr.dyade.aaa.agent.PoolNetwork
activeSessions, compressedFlows, defaultMaxMessageInFlow, dispatcher, IdleTimeout, minIdleTimeout, nbMaxCnx, sessions, wakeOnConnection, watchDog
-
Fields inherited from class fr.dyade.aaa.agent.StreamNetwork
backlog, CnxRetry, ConnectTimeout, inLocalAddr, outLocalAddr, outLocalPort, serverSocketFactory, socketFactory, SoLinger, SoTimeout, TcpNoDelay
-
Fields inherited from class fr.dyade.aaa.agent.Network
ALREADY_DELIVERED, averageLoadTask, bootTSFN, DEBUG, DELIVER, domain, idxLS, logger, name, nbMessageIn, nbMessageOut, port, qout, servers, serversFN, sid, WDActivationPeriod, WDNbRetryLevel1, WDNbRetryLevel2, WDRetryPeriod1, WDRetryPeriod2, WDRetryPeriod3
-
-
Constructor Summary
Constructors Constructor Description SSLNetwork()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) ServerSocketcreateServerSocket(int port)This method creates and returns a SSL server socket which is bound to the specified port.(package private) SocketcreateSocket(InetAddress addr, int port)This method creates and returns a SSL socket connected to a ServerSocket at the specified network address and port.-
Methods inherited from class fr.dyade.aaa.agent.PoolNetwork
addServer, delServer, getCompressedFlows, getIdleTimeout, getLastReceived, getMaxMessageInFlow, getNbAckSent, getNbActiveSession, getNbBufferingMessageToSent, getNbMaxActiveSession, getNbMessageReceived, getNbMessageSent, getNbWaitingMessages, getSession, getSessionNbWaitingMessages, init, isRunning, isSessionRunning, readAck, readBoot, readFully, setIdleTimeout, setMaxMessageInFlow, setProperties, start, stop, toString, wakeup, writeAck, writeBoot
-
Methods inherited from class fr.dyade.aaa.agent.StreamNetwork
createServerSocket, createSocket, createSocket, setSocketOption
-
Methods inherited from class fr.dyade.aaa.agent.Network
channelPostAndValidate, checkActive, delete, deleteMessage, deliver, getAverageLoad1, getAverageLoad15, getAverageLoad5, getBootTS, getDomainName, getMessageDest, getMessageSource, getName, getNbMessageReceived, getNbMessageSent, getPort, getQueue, getStamp, getWDActivationPeriod, getWDNbRetryLevel1, getWDNbRetryLevel2, getWDRetryPeriod1, getWDRetryPeriod2, getWDRetryPeriod3, index, insert, isPrior, post, postAndValidate, postMessage, prepareMessage, prepareMessageWithoutStamp, resetServer, restore, save, saveChannel, setMessageSource, setPort, setStamp, setWDActivationPeriod, setWDNbRetryLevel1, setWDNbRetryLevel2, setWDRetryPeriod1, setWDRetryPeriod2, setWDRetryPeriod3, testBootTS, testRecvUpdate, validate, validateChannel
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface fr.dyade.aaa.agent.NetworkMBean
getAverageLoad1, getAverageLoad15, getAverageLoad5, getName, getNbMessageReceived, getNbMessageSent, getWDActivationPeriod, getWDNbRetryLevel1, getWDNbRetryLevel2, getWDRetryPeriod1, getWDRetryPeriod2, getWDRetryPeriod3, setWDActivationPeriod, setWDNbRetryLevel1, setWDNbRetryLevel2, setWDRetryPeriod1, setWDRetryPeriod2, setWDRetryPeriod3
-
-
-
-
Field Detail
-
SSLCONTEXT
public static final String SSLCONTEXT
- See Also:
- Constant Field Values
-
KTYPE
public static final String KTYPE
- See Also:
- Constant Field Values
-
PASS
public static final String PASS
Name of property that allow to fix the keystore's password: "SSLNetwork.pass". By default the password is "changeit". This property can be fixed either fromjavalaunching command (-Dname=value), or by ina3servers.xmlconfiguration file (property element).- See Also:
- Constant Field Values
-
KEYFILE
public static final String KEYFILE
Name of property that allow to fix the keystore's pathname: "SSLNetwork.keyfile". By default the key file is ".keystore". This property can be fixed either fromjavalaunching command (-Dname=value), or by ina3servers.xmlconfiguration file (property element).- See Also:
- Constant Field Values
-
sslSocketFactory
private SSLSocketFactory sslSocketFactory
HttpsNetwork needs specific use of SSLSocketFactory.
-
sslServerSocketFactory
private SSLServerSocketFactory sslServerSocketFactory
HttpsNetwork needs specific use of SSLServerSocketFactory.
-
-
Method Detail
-
createServerSocket
ServerSocket createServerSocket(int port) throws IOException
This method creates and returns a SSL server socket which is bound to the specified port.- Overrides:
createServerSocketin classStreamNetwork- Parameters:
port- the port to listen to.- Returns:
- a server socket bound to the specified port.
- Throws:
IOException- for networking errors
-
createSocket
Socket createSocket(InetAddress addr, int port) throws IOException
This method creates and returns a SSL socket connected to a ServerSocket at the specified network address and port.- Overrides:
createSocketin classStreamNetwork- Parameters:
addr- the server address.port- the server port.- Returns:
- a socket connected to a ServerSocket at the specified network address and port.
- Throws:
IOException- if the connection can't be established
-
-