|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.grizzly.portunif.TLSPUPreProcessor
public class TLSPUPreProcessor
PUPreProcessor that will first try to execute an handshake.
If the handshake is succesfull - it means data is encoded
| Field Summary | |
|---|---|
static String |
ID
|
| Constructor Summary | |
|---|---|
TLSPUPreProcessor()
|
|
TLSPUPreProcessor(SSLConfig sslConfig)
|
|
TLSPUPreProcessor(SSLContext sslContext)
|
|
| Method Summary | |
|---|---|
void |
configure(SSLConfig sslConfig)
Configures SSL settings. |
String |
getId()
Returns PUPreProcessor id |
SSLContext |
getSSLContext()
Return the SSLContext required to support SSL over NIO. |
boolean |
isNeedClientAuth()
|
boolean |
isWantClientAuth()
|
void |
postProcess(Context context,
PUProtocolRequest protocolRequest)
Method is called if no ProtocolFinder was found. |
boolean |
process(Context context,
PUProtocolRequest protocolRequest)
Try to initialize an SSL|TLS handshake to determine if secured connection is used |
void |
setNeedClientAuth(boolean needClientAuth)
|
void |
setSSLContext(SSLContext sslContext)
Set the SSLContext required to support SSL over NIO. |
void |
setWantClientAuth(boolean wantClientAuth)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ID
| Constructor Detail |
|---|
public TLSPUPreProcessor()
public TLSPUPreProcessor(SSLConfig sslConfig)
public TLSPUPreProcessor(SSLContext sslContext)
| Method Detail |
|---|
public String getId()
PUPreProcessorPUPreProcessor id
getId in interface PUPreProcessorPUPreProcessor id
public boolean process(Context context,
PUProtocolRequest protocolRequest)
throws IOException
process in interface PUPreProcessorIOException
public void postProcess(Context context,
PUProtocolRequest protocolRequest)
PUPreProcessorProtocolFinder was found.
PUPreProcessor should restore PUProtocolRequest
and make it ready for the next data read operation.
postProcess in interface PUPreProcessorpublic void setSSLContext(SSLContext sslContext)
sslContext - SSLContextpublic void configure(SSLConfig sslConfig)
SSLConfig contains all the parameters
required to build SSLEngine. There will be no need to call
three methods: setSSLContext, setWantClientAuth,
setNeedClientAuth.
sslConfig - SSLConfig configurationpublic SSLContext getSSLContext()
SSLContextpublic boolean isNeedClientAuth()
public void setNeedClientAuth(boolean needClientAuth)
public boolean isWantClientAuth()
public void setWantClientAuth(boolean wantClientAuth)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||