|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
com.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.
The SSLPipeline is the default and must not be replace unless all its
attribute properly implemented.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
Thread.State, Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
protected SSLContext |
sslContext
The SSLContext associated with the SSL implementation
we are running on. |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
SSLSelectorThread()
|
Method Summary | |
---|---|
protected void |
configureFilters(ProtocolChain protocolChain)
Adds and configures ProtocolChain 's filters |
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.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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)
setSSLImplementation
in interface SecureSelector<SSLImplementation>
public SSLImplementation getSSLImplementation()
SSLImplementation
this Thread
public String[] getEnabledCipherSuites()
SSLEngine
is initialized.
getEnabledCipherSuites
in interface SecureSelector<SSLImplementation>
SSLEngine
's default.'public void setEnabledCipherSuites(String[] enabledCipherSuites)
SSLEngine
is initialized.
setEnabledCipherSuites
in interface SecureSelector<SSLImplementation>
cipherSuites
- null means 'use SSLEngine
's default.'public String[] getEnabledProtocols()
SSLEngine
is initialized.
getEnabledProtocols
in interface SecureSelector<SSLImplementation>
SSLEngine
's default.'public void setEnabledProtocols(String[] enabledProtocols)
SSLEngine
is initialized.
setEnabledProtocols
in interface SecureSelector<SSLImplementation>
enabledProtocols
- null means 'use SSLEngine
's default.'public boolean isClientMode()
isClientMode
in interface SecureSelector<SSLImplementation>
public void setClientMode(boolean clientMode)
setClientMode
in interface SecureSelector<SSLImplementation>
public boolean isNeedClientAuth()
isNeedClientAuth
in interface SecureSelector<SSLImplementation>
public void setNeedClientAuth(boolean needClientAuth)
setNeedClientAuth
in interface SecureSelector<SSLImplementation>
public boolean isWantClientAuth()
isWantClientAuth
in interface SecureSelector<SSLImplementation>
public void setWantClientAuth(boolean wantClientAuth)
setWantClientAuth
in interface SecureSelector<SSLImplementation>
protected void initFileCacheFactory()
initFileCacheFactory
in class SelectorThread
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |