com.sun.grizzly.http
Interface SecureSelector<E>

All Known Implementing Classes:
SSLSelectorThread

public interface SecureSelector<E>

Non blocking SSL interface secure instance of SelectorThread must implement.

Author:
Jeanfrancois Arcand

Method Summary
 String[] getEnabledCipherSuites()
          Returns the list of cipher suites to be enabled when SSLEngine is initialized.
 String[] getEnabledProtocols()
          Returns the list of protocols to be enabled when SSLEngine is initialized.
 boolean isClientMode()
          Returns true if the SSlEngine is set to use client mode when handshaking.
 boolean isNeedClientAuth()
          Returns true if the SSLEngine will require client authentication.
 boolean isWantClientAuth()
          Returns true if the engine will request client authentication.
 void setClientMode(boolean clientMode)
          Configures the engine to use client (or server) mode when handshaking.
 void setEnabledCipherSuites(String[] enabledCipherSuites)
          Sets the list of cipher suites to be enabled when SSLEngine is initialized.
 void setEnabledProtocols(String[] enabledProtocols)
          Sets the list of protocols to be enabled when SSLEngine is initialized.
 void setNeedClientAuth(boolean needClientAuth)
          Configures the engine to require client authentication.
 void setSSLImplementation(E sslImplementation)
           
 void setWantClientAuth(boolean wantClientAuth)
          Configures the engine to request client authentication.
 

Method Detail

setSSLImplementation

void setSSLImplementation(E sslImplementation)

getEnabledCipherSuites

String[] getEnabledCipherSuites()
Returns the list of cipher suites to be enabled when SSLEngine is initialized.

Returns:
null means 'use SSLEngine's default.'

setEnabledCipherSuites

void setEnabledCipherSuites(String[] enabledCipherSuites)
Sets the list of cipher suites to be enabled when SSLEngine is initialized.

Parameters:
cipherSuites - null means 'use SSLEngine's default.'

getEnabledProtocols

String[] getEnabledProtocols()
Returns the list of protocols to be enabled when SSLEngine is initialized.

Returns:
null means 'use SSLEngine's default.'

setEnabledProtocols

void setEnabledProtocols(String[] enabledProtocols)
Sets the list of protocols to be enabled when SSLEngine is initialized.

Parameters:
protocols - null means 'use SSLEngine's default.'

isClientMode

boolean isClientMode()
Returns true if the SSlEngine is set to use client mode when handshaking.


setClientMode

void setClientMode(boolean clientMode)
Configures the engine to use client (or server) mode when handshaking.


isNeedClientAuth

boolean isNeedClientAuth()
Returns true if the SSLEngine will require client authentication.


setNeedClientAuth

void setNeedClientAuth(boolean needClientAuth)
Configures the engine to require client authentication.


isWantClientAuth

boolean isWantClientAuth()
Returns true if the engine will request client authentication.


setWantClientAuth

void setWantClientAuth(boolean wantClientAuth)
Configures the engine to request client authentication.



Copyright © 2010 SUN Microsystems. All Rights Reserved.