fr.dyade.aaa.agent
Class HttpsNetwork
java.lang.Object
fr.dyade.aaa.agent.Network
fr.dyade.aaa.agent.StreamNetwork
fr.dyade.aaa.agent.HttpNetwork
fr.dyade.aaa.agent.HttpsNetwork
- All Implemented Interfaces:
- HttpNetworkMBean, MessageConsumer, NetworkMBean
public final class HttpsNetwork
- extends HttpNetwork
HttpNetwork is a specialization of HttpNetwork
for SSL.
Field Summary |
static java.lang.String |
KEYFILE
Name of property that allow to fix the keystore's pathname:
"HttpsNetwork.keyfile". |
static java.lang.String |
PASS
Name of property that allow to fix the keystore's password:
"HttpsNetwork.pass". |
(package private) javax.net.ssl.SSLServerSocketFactory |
serverSocketFactory
|
(package private) javax.net.ssl.SSLSocketFactory |
socketFactory
|
Fields inherited from class fr.dyade.aaa.agent.Network |
ALREADY_DELIVERED, averageLoadTask, bootTSFN, DELIVER, domain, idxLS, logmon, name, nbMessageIn, nbMessageOut, port, qout, servers, serversFN, sid, WDActivationPeriod, WDNbRetryLevel1, WDNbRetryLevel2, WDRetryPeriod1, WDRetryPeriod2, WDRetryPeriod3 |
Method Summary |
(package private) java.net.ServerSocket |
createServerSocket(int port)
This method creates and returns a SSL server socket which is bound to
the specified port. |
(package private) java.net.Socket |
createSocket(java.net.InetAddress addr,
int port)
This method creates and returns a SSL socket connected to a ServerSocket
at the specified network address and port. |
(package private) java.net.Socket |
createTunnelSocket(java.net.InetAddress host,
int port,
java.net.InetAddress proxy,
int proxyport)
This method creates a tunnelling socket if a proxy is used. |
private void |
doTunnelHandshake(java.net.Socket tunnel,
java.net.InetAddress host,
int port)
|
(package private) javax.net.ssl.SSLServerSocketFactory |
getServerSocketFactory()
|
(package private) javax.net.ssl.SSLSocketFactory |
getSocketFactory()
|
Methods inherited from class fr.dyade.aaa.agent.HttpNetwork |
getActivationPeriod, getNbDaemon, getProxyhost, getProxyport, getReply, getRequest, handle, init, isRunning, readLine, sendReply, sendRequest, setActivationPeriod, start, stop, toString, wakeup |
Methods inherited from class fr.dyade.aaa.agent.Network |
addServer, delete, deliver, delServer, getAverageLoad1, getAverageLoad15, getAverageLoad5, getBootTS, getDomainName, getName, getNbMessageReceived, getNbMessageSent, getNbWaitingMessages, getPort, getQueue, getStamp, getWDActivationPeriod, getWDNbRetryLevel1, getWDNbRetryLevel2, getWDRetryPeriod1, getWDRetryPeriod2, getWDRetryPeriod3, index, insert, post, resetServer, restore, save, setPort, setStamp, setWDActivationPeriod, setWDNbRetryLevel1, setWDNbRetryLevel2, setWDRetryPeriod1, setWDRetryPeriod2, setWDRetryPeriod3, testBootTS, validate |
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, getNbWaitingMessages, getWDActivationPeriod, getWDNbRetryLevel1, getWDNbRetryLevel2, getWDRetryPeriod1, getWDRetryPeriod2, getWDRetryPeriod3, setWDActivationPeriod, setWDNbRetryLevel1, setWDNbRetryLevel2, setWDRetryPeriod1, setWDRetryPeriod2, setWDRetryPeriod3 |
PASS
public static final java.lang.String PASS
- Name of property that allow to fix the keystore's password:
"HttpsNetwork.pass". By default the password is "changeit".
This property can be fixed either from
java
launching
command (-Dname=value), or by in a3servers.xml
configuration
file (property element).
- See Also:
- Constant Field Values
KEYFILE
public static final java.lang.String KEYFILE
- Name of property that allow to fix the keystore's pathname:
"HttpsNetwork.keyfile". By default the key file is ".keystore".
This property can be fixed either from
java
launching
command (-Dname=value), or by in a3servers.xml
configuration
file (property element).
- See Also:
- Constant Field Values
socketFactory
javax.net.ssl.SSLSocketFactory socketFactory
serverSocketFactory
javax.net.ssl.SSLServerSocketFactory serverSocketFactory
HttpsNetwork
public HttpsNetwork()
throws java.lang.Exception
- Throws:
java.lang.Exception
getSocketFactory
javax.net.ssl.SSLSocketFactory getSocketFactory()
throws java.io.IOException
- Throws:
java.io.IOException
getServerSocketFactory
javax.net.ssl.SSLServerSocketFactory getServerSocketFactory()
throws java.io.IOException
- Throws:
java.io.IOException
createServerSocket
java.net.ServerSocket createServerSocket(int port)
throws java.io.IOException
- This method creates and returns a SSL server socket which is bound to
the specified port.
- Overrides:
createServerSocket
in class StreamNetwork
- Parameters:
port
- the port to listen to.
- Returns:
- a SSL server socket bound to the specified port.
- Throws:
java.io.IOException
- for networking errors
createSocket
java.net.Socket createSocket(java.net.InetAddress addr,
int port)
throws java.io.IOException
- This method creates and returns a SSL socket connected to a ServerSocket
at the specified network address and port.
- Overrides:
createSocket
in class StreamNetwork
- Parameters:
addr
- the server address.port
- the server port.
- Returns:
- a socket connected to a ServerSocket at the specified
network address and port.
- Throws:
java.io.IOException
- if the connection can't be established
createTunnelSocket
java.net.Socket createTunnelSocket(java.net.InetAddress host,
int port,
java.net.InetAddress proxy,
int proxyport)
throws java.io.IOException
- This method creates a tunnelling socket if a proxy is used.
- Parameters:
host
- the server host.port
- the server port.proxy
- the proxy host.proxyport
- the proxy port.
- Returns:
- a socket connected to a ServerSocket at the specified
network address and port.
- Throws:
java.io.IOException
- if the connection can't be established
doTunnelHandshake
private void doTunnelHandshake(java.net.Socket tunnel,
java.net.InetAddress host,
int port)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2010 ScalAgent D.T.. All Rights Reserved.