|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.grizzly.http.SelectorThread
com.sun.grizzly.ssl.SSLSelectorThread
public class SSLSelectorThread
SSL over NIO Selector
implementation. Mainly, this class
replace the clear text implementation by defining the SSL tasks counterpart:
SSLReadTask, SSLProcessorTask and SSLByteBufferInputStream.
Field Summary | |
---|---|
protected SSLContext |
sslContext
The SSLContext associated with the SSL implementation
we are running on. |
Constructor Summary | |
---|---|
SSLSelectorThread()
|
Method Summary | |
---|---|
protected void |
configureFilters(ProtocolChain protocolChain)
Adds and configures ProtocolChain 's filters |
protected FileCacheFactory |
createFileCacheFactory()
Create SSL aware FileCacheFactory |
protected ProtocolFilter |
createHttpParserFilter()
Create HTTP parser ProtocolFilter |
protected TCPSelectorHandler |
createSelectorHandler()
Create TCPSelectorHandler |
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. |
SSLContext |
getSSLContext()
Return the SSLContext required to support SSL over NIO. |
SSLImplementation |
getSSLImplementation()
Return the current SSLImplementation this Thread |
protected void |
initFileCacheFactory()
Initialize the fileCacheFactory associated with this instance |
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. |
protected ProcessorTask |
newProcessorTask(boolean initialize)
Create SSLProcessorTask objects and configure it to be ready
to proceed request. |
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 |
setSSLConfig(SSLConfig sslConfig)
Set the SSLContext required to support SSL over NIO. |
void |
setSSLContext(SSLContext sslContext)
Set the SSLContext required to support SSL over NIO. |
void |
setSSLImplementation(SSLImplementation sslImplementation)
Set the Coyote SSLImplementation. |
void |
setWantClientAuth(boolean wantClientAuth)
Configures the engine to request client authentication. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SSLContext sslContext
SSLContext
associated with the SSL implementation
we are running on.
Constructor Detail |
---|
public SSLSelectorThread()
Method Detail |
---|
protected TCPSelectorHandler createSelectorHandler()
TCPSelectorHandler
createSelectorHandler
in class SelectorThread
protected ProtocolFilter createHttpParserFilter()
ProtocolFilter
createHttpParserFilter
in class SelectorThread
ProtocolFilter
protected void configureFilters(ProtocolChain protocolChain)
ProtocolChain
's filters
configureFilters
in class SelectorThread
protected ProcessorTask newProcessorTask(boolean initialize)
SSLProcessorTask
objects and configure it to be ready
to proceed request.
newProcessorTask
in class SelectorThread
public void setSSLConfig(SSLConfig sslConfig)
public void setSSLContext(SSLContext sslContext)
public SSLContext getSSLContext()
public void setSSLImplementation(SSLImplementation sslImplementation)
public SSLImplementation getSSLImplementation()
SSLImplementation
this Thread
public String[] getEnabledCipherSuites()
SSLEngine
is initialized.
SSLEngine
's default.'public void setEnabledCipherSuites(String[] enabledCipherSuites)
SSLEngine
is initialized.
enabledCipherSuites
- null means 'use
SSLEngine
's default.'public String[] getEnabledProtocols()
SSLEngine
is initialized.
SSLEngine
's default.'public void setEnabledProtocols(String[] enabledProtocols)
SSLEngine
is initialized.
enabledProtocols
- null means 'use SSLEngine
's default.'public boolean isClientMode()
public void setClientMode(boolean clientMode)
public boolean isNeedClientAuth()
public void setNeedClientAuth(boolean needClientAuth)
public boolean isWantClientAuth()
public void setWantClientAuth(boolean wantClientAuth)
protected void initFileCacheFactory()
initFileCacheFactory
in class SelectorThread
protected FileCacheFactory createFileCacheFactory()
FileCacheFactory
createFileCacheFactory
in class SelectorThread
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |