|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.officefloor.plugin.socket.server.ssl.protocol.SslCommunicationProtocol<CH>
public class SslCommunicationProtocol<CH extends ConnectionHandler>
SSL CommunicationProtocol that wraps another
CommunicationProtocol.
| Field Summary | |
|---|---|
static String |
PROPERTY_SSL_ENGINE_CONFIGURATOR
Property to obtain the optional SslEngineConfigurator to
configure the SSLEngine instances for use. |
static String |
PROPERTY_SSL_PROTOCOL
Property to specify the SSL protocol to use. |
static String |
PROPERTY_SSL_PROVIDER
Property to specify the SSL provider to use. |
| Constructor Summary | |
|---|---|
SslCommunicationProtocol(CommunicationProtocol<CH> wrappedCommunicationProtocol)
Initiate. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTY_SSL_PROTOCOL
public static final String PROPERTY_SSL_PROVIDER
public static final String PROPERTY_SSL_ENGINE_CONFIGURATOR
SslEngineConfigurator to
configure the SSLEngine instances for use.
| Constructor Detail |
|---|
public SslCommunicationProtocol(CommunicationProtocol<CH> wrappedCommunicationProtocol)
wrappedCommunicationProtocol - CommunicationProtocol to be wrapped with this SSL
CommunicationProtocol.| Method Detail |
|---|
public void loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
CommunicationProtocol
loadSpecification in interface CommunicationProtocol<SslConnectionHandler<CH extends ConnectionHandler>>context - AbstractAsyncManagedObjectSource.SpecificationContext.
public ServerSocketHandler<SslConnectionHandler<CH>> createServerSocketHandler(AbstractAsyncManagedObjectSource.MetaDataContext<None,Indexed> context,
BufferSquirtFactory bufferSquirtFactory)
throws Exception
CommunicationProtocolServerSocketHandler.
createServerSocketHandler in interface CommunicationProtocol<SslConnectionHandler<CH extends ConnectionHandler>>context - AbstractAsyncManagedObjectSource.MetaDataContext.bufferSquirtFactory - BufferSquirtFactory.
Exception - If fails to create the ServerSocketHandler.public Server<SslConnectionHandler<CH>> createServer()
ServerSocketHandlerServer to handle requests.
createServer in interface ServerSocketHandler<SslConnectionHandler<CH extends ConnectionHandler>>Server to handle requests.public SslConnectionHandler<CH> createConnectionHandler(Connection connection)
ServerSocketHandlerConnectionHandler for a new Connection.
createConnectionHandler in interface ServerSocketHandler<SslConnectionHandler<CH extends ConnectionHandler>>connection - A new Connection requiring handling.
ConnectionHandler to handle the new Connection.public void setManagedObjectExecuteContext(ManagedObjectExecuteContext<Indexed> executeContext)
ServerServer the ManagedObjectExecuteContext to
enable it to invoke ProcessState instances to process input.
setManagedObjectExecuteContext in interface Server<SslConnectionHandler<CH extends ConnectionHandler>>executeContext - ManagedObjectExecuteContext.
public void processRequest(SslConnectionHandler<CH> connectionHandler,
Object attachment)
throws IOException
Server
Starts the processing the request identified by the
ConnectionHandler with the Server.
To process a stream of input have the ConnectionHandler complete
the Request with zero size and use the Connection passed
to the ConnectionHandler.
processRequest in interface Server<SslConnectionHandler<CH extends ConnectionHandler>>connectionHandler - ConnectionHandler for the Connection.attachment - Optional attachment provided by the ConnectionHandler
specific to this request. May be null.
IOException - If fails to start processing the request.public void beginTask(Runnable task)
SslTaskExecutorBegins executing the SSL task.
As this method likely passes the Runnable to another
Thread this method will generally return before the
Runnable is complete.
beginTask in interface SslTaskExecutortask - Runnable SSL task to complete.
public void init(SSLContext context)
throws Exception
SslEngineConfiguratorSslEngineConfigurator initialise itself.
init in interface SslEngineConfiguratorcontext - SSLContext that will be used to create the
SSLEngine instances.
Exception - If fails to initialise (possibly because a protocol or cipher
is not supported).public void configureSslEngine(SSLEngine engine)
SslEngineConfigurator
Configures the SSLEngine.
It is anticipated that only a single instance will be create and therefore this method will be thread safe.
configureSslEngine in interface SslEngineConfiguratorengine - SSLEngine to configure.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||