fr.dyade.aaa.agent.SSLNetwork Class Reference

Inherits fr.dyade.aaa.agent.PoolNetwork.

Inheritance diagram for fr.dyade.aaa.agent.SSLNetwork:

Inheritance graph
[legend]
Collaboration diagram for fr.dyade.aaa.agent.SSLNetwork:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SSLNetwork () throws Exception

Static Public Attributes

static final String SSLCONTEXT = "fr.dyade.aaa.agent.SSLNetwork.SSLContext"
static final String KTYPE = "fr.dyade.aaa.agent.SSLNetwork.KeyStoreType"
static final String PASS = "SSLNetwork.pass"
static final String KEYFILE = "SSLNetwork.keyfile"

Package Functions

ServerSocket createServerSocket (int port) throws IOException
Socket createSocket (InetAddress addr, int port) throws IOException

Package Attributes

SSLSocketFactory socketFactory = null
SSLServerSocketFactory serverSocketFactory = null

Detailed Description

A network component using SSL Sockets.

Definition at line 42 of file SSLNetwork.java.


Member Function Documentation

ServerSocket fr.dyade.aaa.agent.SSLNetwork.createServerSocket ( int  port  )  throws IOException [package]

This method creates and returns a SSL server socket which is bound to the specified port.

Parameters:
port the port to listen to.
Returns:
a server socket bound to the specified port.
Exceptions:
IOException for networking errors

Reimplemented from fr.dyade.aaa.agent.StreamNetwork.

Definition at line 104 of file SSLNetwork.java.

References fr.dyade.aaa.agent.StreamNetwork.backlog, fr.dyade.aaa.agent.StreamNetwork.inLocalAddr, fr.dyade.aaa.agent.Network.port, and fr.dyade.aaa.agent.SSLNetwork.serverSocketFactory.

Socket fr.dyade.aaa.agent.SSLNetwork.createSocket ( InetAddress  addr,
int  port 
) throws IOException [package]

This method creates and returns a SSL socket connected to a ServerSocket at the specified network address and port.

Parameters:
addr the server address.
port the server port.
Returns:
a socket connected to a ServerSocket at the specified network address and port.
Exceptions:
IOException if the connection can't be established

Reimplemented from fr.dyade.aaa.agent.StreamNetwork.

Definition at line 122 of file SSLNetwork.java.

References fr.dyade.aaa.agent.StreamNetwork.outLocalAddr, fr.dyade.aaa.agent.StreamNetwork.outLocalPort, fr.dyade.aaa.agent.Network.port, and fr.dyade.aaa.agent.SSLNetwork.socketFactory.


Member Data Documentation

final String fr.dyade.aaa.agent.SSLNetwork.PASS = "SSLNetwork.pass" [static]

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 from java launching command (-Dname=value), or by in a3servers.xml configuration file (property element).

Definition at line 53 of file SSLNetwork.java.

Referenced by fr.dyade.aaa.agent.SSLNetwork.SSLNetwork().

final String fr.dyade.aaa.agent.SSLNetwork.KEYFILE = "SSLNetwork.keyfile" [static]

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 from java launching command (-Dname=value), or by in a3servers.xml configuration file (property element).

Definition at line 61 of file SSLNetwork.java.

Referenced by fr.dyade.aaa.agent.SSLNetwork.SSLNetwork().

SSLSocketFactory fr.dyade.aaa.agent.SSLNetwork.socketFactory = null [package]

Allows to define a specific factory for socket in order to by-pass compatibility problem between JDK version. Currently there is two factories, The default factory one for JDK since 1.4, and "fr.dyade.aaa.util.SocketFactory13" for JDK prior to 1.4. This value can be adjusted for all network components by setting SocketFactory global property or for a particular network by setting <DomainName>.SocketFactory specific property.

Theses properties can be fixed either from java launching command, or in a3servers.xml configuration file.

Reimplemented from fr.dyade.aaa.agent.StreamNetwork.

Definition at line 66 of file SSLNetwork.java.

Referenced by fr.dyade.aaa.agent.SSLNetwork.createSocket(), and fr.dyade.aaa.agent.SSLNetwork.SSLNetwork().


The documentation for this class was generated from the following file:
Generated on Tue Sep 16 16:16:51 2008 for joram by  doxygen 1.5.0