|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.jboss.remoting.samples.config.factories.FactoryConfigSSLSample
public class FactoryConfigSSLSample
These methods illustrate configuring socket factories and server socket factories on the server side and on the client side. The numbered options mentioned refer to the lists of configuration options discussed in the Remoting documentation in the subsections "Server side configuration" and "Client side configuration" of the section called "Socket factories and server socket factories".
The configuration options illustrated in this class are specific to SSL
sockets and server sockets. The methods
getDefaultServerSocketFactory()
,
getDefaultSocketFactory()
,
getDefaultCallbackServerSocketFactory()
and
getDefaultCallbackSocketFactory()
illustrate the use of the class SSLSocketBuilder
to
create custom SSL socket factories and SSL server socket factories.
Copyright (c) Jul 20, 2006
Constructor Summary | |
---|---|
FactoryConfigSSLSample()
|
Method Summary | |
---|---|
protected javax.net.ServerSocketFactory |
getDefaultCallbackServerSocketFactory()
|
protected javax.net.SocketFactory |
getDefaultCallbackSocketFactory()
|
protected javax.net.ServerSocketFactory |
getDefaultServerSocketFactory()
|
protected javax.net.SocketFactory |
getDefaultSocketFactory()
|
protected java.lang.String |
getHostName()
|
protected java.lang.String |
getKeystoreFilePath()
|
protected java.lang.String |
getTransport()
|
protected static java.lang.String |
getTruststoreFilePath()
|
void |
testFactoriesByPassingMBeanInConfig()
This test illustrates the following set of configuration options: |
void |
testFactoriesByPassingMBeanInXml()
This test illustrates the following set of configuration options: |
void |
testFactoriesFromSSLParameters()
This test illustrates the following set of configuration options: |
void |
testFactoriesFromSystemSSLParameters()
This test illustrates the following set of configuration options: |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FactoryConfigSSLSample()
Method Detail |
---|
public void testFactoriesByPassingMBeanInXml()
side | factory | option |
server side | server socket | 4 |
server side | socket | 4 |
client side | server socket | 1 |
client side | socket | 1 |
public void testFactoriesByPassingMBeanInConfig()
side | factory | option |
server side | server socket | 6 |
server side | socket | 5 |
client side | server socket | 1 |
client side | socket | 1 |
Note. There is no provision for using an MBeanServer
on
the client side.
public void testFactoriesFromSSLParameters()
side | factory | option |
server side | server socket | 8 |
server side | socket | 8 |
client side | server socket | 6 |
client side | socket | 5 |
public void testFactoriesFromSystemSSLParameters()
side | factory | option |
server side | server socket | 9 |
server side | socket | 9 |
client side | server socket | 7 |
client side | socket | 6 |
protected java.lang.String getHostName()
protected java.lang.String getTransport()
protected java.lang.String getKeystoreFilePath()
protected static java.lang.String getTruststoreFilePath()
protected javax.net.ServerSocketFactory getDefaultServerSocketFactory() throws java.lang.Exception
java.lang.Exception
protected javax.net.SocketFactory getDefaultSocketFactory() throws java.lang.Exception
java.lang.Exception
protected javax.net.ServerSocketFactory getDefaultCallbackServerSocketFactory() throws java.lang.Exception
java.lang.Exception
protected javax.net.SocketFactory getDefaultCallbackSocketFactory() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |