net.officefloor.plugin.socket.server.http.server
Class MockHttpServer.TestSslEngineConfigurator

java.lang.Object
  extended by net.officefloor.plugin.socket.server.http.server.MockHttpServer.TestSslEngineConfigurator
All Implemented Interfaces:
SslEngineConfigurator
Enclosing class:
MockHttpServer

public static class MockHttpServer.TestSslEngineConfigurator
extends Object
implements SslEngineConfigurator

SslEngineConfigurator to setup MockHttpServer to work with TestProtocolSocketFactory.


Constructor Summary
MockHttpServer.TestSslEngineConfigurator()
           
 
Method Summary
 void configureSslEngine(SSLEngine engine)
           Configures the SSLEngine.
 void init(SSLContext context)
          Invoked to have this SslEngineConfigurator initialise itself.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockHttpServer.TestSslEngineConfigurator

public MockHttpServer.TestSslEngineConfigurator()
Method Detail

init

public void init(SSLContext context)
          throws Exception
Description copied from interface: SslEngineConfigurator
Invoked to have this SslEngineConfigurator initialise itself.

Specified by:
init in interface SslEngineConfigurator
Parameters:
context - SSLContext that will be used to create the SSLEngine instances.
Throws:
Exception - If fails to initialise (possibly because a protocol or cipher is not supported).

configureSslEngine

public void configureSslEngine(SSLEngine engine)
Description copied from interface: SslEngineConfigurator

Configures the SSLEngine.

It is anticipated that only a single instance will be create and therefore this method will be thread safe.

Specified by:
configureSslEngine in interface SslEngineConfigurator
Parameters:
engine - SSLEngine to configure.


Copyright © 2005-2011. All Rights Reserved.