|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.ssl.SSLEngineConfigurator
public class SSLEngineConfigurator
Utility class, which helps to configure SSLEngine.
| Field Summary | |
|---|---|
protected boolean |
clientMode
Client mode when handshaking. |
protected String[] |
enabledCipherSuites
The list of cipher suite |
protected String[] |
enabledProtocols
the list of protocols |
protected boolean |
needClientAuth
Require client Authentication. |
protected SSLContext |
sslContext
|
protected SSLContextConfigurator |
sslContextConfiguration
|
protected boolean |
wantClientAuth
True when requesting authentication. |
| Constructor Summary | |
|---|---|
protected |
SSLEngineConfigurator()
|
|
SSLEngineConfigurator(SSLContext sslContext)
Create SSL Engine configuration basing on passed SSLContext. |
|
SSLEngineConfigurator(SSLContext sslContext,
boolean clientMode,
boolean needClientAuth,
boolean wantClientAuth)
Create SSL Engine configuration basing on passed SSLContext,
using passed client mode, need/want client auth parameters. |
|
SSLEngineConfigurator(SSLContextConfigurator sslContextConfiguration)
Create SSL Engine configuration basing on passed SSLContextConfigurator. |
|
SSLEngineConfigurator(SSLContextConfigurator sslContextConfiguration,
boolean clientMode,
boolean needClientAuth,
boolean wantClientAuth)
Create SSL Engine configuration basing on passed SSLContextConfigurator. |
|
SSLEngineConfigurator(SSLEngineConfigurator pattern)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected volatile SSLContextConfigurator sslContextConfiguration
protected volatile SSLContext sslContext
protected String[] enabledCipherSuites
protected String[] enabledProtocols
protected boolean clientMode
protected boolean needClientAuth
protected boolean wantClientAuth
| Constructor Detail |
|---|
public SSLEngineConfigurator(SSLContext sslContext)
SSLContext.
sslContext - SSLContext.
public SSLEngineConfigurator(SSLContext sslContext,
boolean clientMode,
boolean needClientAuth,
boolean wantClientAuth)
SSLContext,
using passed client mode, need/want client auth parameters.
sslContext - SSLContext.clientMode - needClientAuth - wantClientAuth - public SSLEngineConfigurator(SSLContextConfigurator sslContextConfiguration)
SSLContextConfigurator.
This constructor makes possible to initialize SSLEngine and SSLContext in lazy
fashion on first createSSLEngine() call.
sslContextConfiguration - SSLContextConfigurator.
public SSLEngineConfigurator(SSLContextConfigurator sslContextConfiguration,
boolean clientMode,
boolean needClientAuth,
boolean wantClientAuth)
SSLContextConfigurator.
This constructor makes possible to initialize SSLEngine and SSLContext in lazy
fashion on first createSSLEngine() call.
sslContextConfiguration - SSLContextConfigurator.clientMode - needClientAuth - wantClientAuth - public SSLEngineConfigurator(SSLEngineConfigurator pattern)
protected SSLEngineConfigurator()
| Method Detail |
|---|
public SSLEngine createSSLEngine()
SSLEngine, basing on current settings.
SSLEngine.public SSLEngine configure(SSLEngine sslEngine)
SSLEngine, using current configurator settings
sslEngine - SSLEngine to configure.
SSLEngine.public boolean isClientMode()
SSLEngine be configured to work in client mode.
SSLEngine will be configured to work
in client mode, or false for server mode.public SSLEngineConfigurator setClientMode(boolean clientMode)
SSLEngine to be configured to work in client mode.
clientMode - true, if SSLEngine will be configured
to work in client mode, or false for server
mode.public boolean isNeedClientAuth()
public SSLEngineConfigurator setNeedClientAuth(boolean needClientAuth)
public boolean isWantClientAuth()
public SSLEngineConfigurator setWantClientAuth(boolean wantClientAuth)
public String[] getEnabledCipherSuites()
public SSLEngineConfigurator setEnabledCipherSuites(String[] enabledCipherSuites)
public String[] getEnabledProtocols()
public SSLEngineConfigurator setEnabledProtocols(String[] enabledProtocols)
public boolean isCipherConfigured()
public SSLEngineConfigurator setCipherConfigured(boolean isCipherConfigured)
public boolean isProtocolConfigured()
public SSLEngineConfigurator setProtocolConfigured(boolean isProtocolConfigured)
public SSLContext getSslContext()
public String toString()
toString in class Objectpublic SSLEngineConfigurator copy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||