org.glassfish.grizzly.ssl
Interface SSLHandshaker

All Known Implementing Classes:
BlockingSSLHandshaker

public interface SSLHandshaker

General interface for SSL handshaking logic. There could be blocking and non-blocking implementations.

Author:
Alexey Stashok

Method Summary
 Future<SSLEngine> handshake(SSLStreamReader reader, SSLStreamWriter writer, SSLEngineConfigurator configurator)
          Execute SSL handshake using given Connection's SSLStreamReader and SSLStreamWriter.
 

Method Detail

handshake

Future<SSLEngine> handshake(SSLStreamReader reader,
                            SSLStreamWriter writer,
                            SSLEngineConfigurator configurator)
                            throws IOException
Execute SSL handshake using given Connection's SSLStreamReader and SSLStreamWriter.

Parameters:
reader - SSLStreamReader
writer - SSLStreamWriter
configurator - SSLEngineConfigurator SSLEngine configuration
Returns:
Future to monitor handshake state.
Throws:
IOException
See Also:
BlockingSSLHandshaker, SSLStreamReader, SSLStreamWriter


Copyright © 2009 SUN Microsystems. All Rights Reserved.