net.officefloor.plugin.socket.server.ssl
Interface SslEngineConfigurator

All Known Implementing Classes:
MockHttpServer.TestSslEngineConfigurator, SslCommunicationProtocol

public interface SslEngineConfigurator

Optional interface to allow configuring the SSLEngine for use.

Author:
Daniel Sagenschneider

Method Summary
 void configureSslEngine(SSLEngine engine)
           Configures the SSLEngine.
 void init(SSLContext context)
          Invoked to have this SslEngineConfigurator initialise itself.
 

Method Detail

init

void init(SSLContext context)
          throws Exception
Invoked to have this SslEngineConfigurator initialise itself.

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

void configureSslEngine(SSLEngine engine)

Configures the SSLEngine.

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

Parameters:
engine - SSLEngine to configure.


Copyright © 2005-2011. All Rights Reserved.