|
||||||||||
| 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.
| Constructor Summary | |
|---|---|
SSLEngineConfigurator(SSLContext sslContext)
|
|
SSLEngineConfigurator(SSLContext sslContext,
boolean clientMode,
boolean needClientAuth,
boolean wantClientAuth)
|
|
| Method Summary | |
|---|---|
void |
configure(SSLEngine sslEngine)
Configure passed SSLEngine, using current configurator settings |
SSLEngine |
createSSLEngine()
Create and configure SSLEngine, basing on current settings. |
String[] |
getEnabledCipherSuites()
|
String[] |
getEnabledProtocols()
|
boolean |
isCipherConfigured()
|
boolean |
isClientMode()
Will SSLEngine be configured to work in client mode. |
boolean |
isNeedClientAuth()
|
boolean |
isProtocolConfigured()
|
boolean |
isWantClientAuth()
|
void |
setCipherConfigured(boolean isCipherConfigured)
|
void |
setClientMode(boolean clientMode)
Set SSLEngine to be configured to work in client mode. |
void |
setEnabledCipherSuites(String[] enabledCipherSuites)
|
void |
setEnabledProtocols(String[] enabledProtocols)
|
void |
setNeedClientAuth(boolean needClientAuth)
|
void |
setProtocolConfigured(boolean isProtocolConfigured)
|
void |
setWantClientAuth(boolean wantClientAuth)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SSLEngineConfigurator(SSLContext sslContext)
public SSLEngineConfigurator(SSLContext sslContext,
boolean clientMode,
boolean needClientAuth,
boolean wantClientAuth)
| Method Detail |
|---|
public SSLEngine createSSLEngine()
SSLEngine, basing on current settings.
SSLEngine.public void configure(SSLEngine sslEngine)
SSLEngine, using current configurator settings
sslEngine - SSLEngine to configure.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 void 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 void setNeedClientAuth(boolean needClientAuth)
public boolean isWantClientAuth()
public void setWantClientAuth(boolean wantClientAuth)
public String[] getEnabledCipherSuites()
public void setEnabledCipherSuites(String[] enabledCipherSuites)
public String[] getEnabledProtocols()
public void setEnabledProtocols(String[] enabledProtocols)
public boolean isCipherConfigured()
public void setCipherConfigured(boolean isCipherConfigured)
public boolean isProtocolConfigured()
public void setProtocolConfigured(boolean isProtocolConfigured)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||