public class SSLParametersConfiguration extends ContextAwareBase
SSLEngine.| Modifier and Type | Field and Description |
|---|---|
private java.lang.String[] |
enabledCipherSuites |
private java.lang.String[] |
enabledProtocols |
private java.lang.String |
excludedCipherSuites |
private java.lang.String |
excludedProtocols |
private java.lang.String |
includedCipherSuites |
private java.lang.String |
includedProtocols |
private java.lang.Boolean |
needClientAuth |
private java.lang.Boolean |
wantClientAuth |
context| Constructor and Description |
|---|
SSLParametersConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(SSLConfigurable socket)
Configures SSL parameters on an
SSLConfigurable. |
private java.lang.String[] |
enabledCipherSuites(java.lang.String[] supportedCipherSuites,
java.lang.String[] defaultCipherSuites)
Gets the set of enabled cipher suites based on the configuration.
|
private java.lang.String[] |
enabledProtocols(java.lang.String[] supportedProtocols,
java.lang.String[] defaultProtocols)
Gets the set of enabled protocols based on the configuration.
|
java.lang.String |
getExcludedCipherSuites()
Gets the JSSE cipher suite names to exclude.
|
java.lang.String |
getExcludedProtocols()
Gets the JSSE secure transport protocols to exclude.
|
java.lang.String |
getIncludedCipherSuites()
Gets the JSSE cipher suite names to include.
|
java.lang.String |
getIncludedProtocols()
Gets the JSSE secure transport protocols to include.
|
private java.lang.String[] |
includedStrings(java.lang.String[] defaults,
java.lang.String included,
java.lang.String excluded)
Applies include and exclude patterns to an array of default string values
to produce an array of strings included by the patterns.
|
java.lang.Boolean |
isNeedClientAuth()
Gets a flag indicating whether client authentication is required.
|
java.lang.Boolean |
isWantClientAuth()
Gets a flag indicating whether client authentication is desired.
|
void |
setExcludedCipherSuites(java.lang.String cipherSuites)
Sets the JSSE cipher suite names to exclude.
|
void |
setExcludedProtocols(java.lang.String protocols)
Sets the JSSE secure transport protocols to exclude.
|
void |
setIncludedCipherSuites(java.lang.String cipherSuites)
Sets the JSSE cipher suite names to include.
|
void |
setIncludedProtocols(java.lang.String protocols)
Sets the JSSE secure transport protocols to include.
|
void |
setNeedClientAuth(java.lang.Boolean needClientAuth)
Sets a flag indicating whether client authentication is required.
|
void |
setWantClientAuth(java.lang.Boolean wantClientAuth)
Sets a flag indicating whether client authentication is desired.
|
private java.lang.String[] |
stringToArray(java.lang.String s)
Splits a string containing comma-separated values into an array.
|
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextprivate java.lang.String includedProtocols
private java.lang.String excludedProtocols
private java.lang.String includedCipherSuites
private java.lang.String excludedCipherSuites
private java.lang.Boolean needClientAuth
private java.lang.Boolean wantClientAuth
private java.lang.String[] enabledProtocols
private java.lang.String[] enabledCipherSuites
public void configure(SSLConfigurable socket)
SSLConfigurable.socket - the subject configurableprivate java.lang.String[] enabledProtocols(java.lang.String[] supportedProtocols,
java.lang.String[] defaultProtocols)
supportedProtocols - protocols supported by the SSL enginedefaultProtocols - default protocols enabled by the SSL engineprivate java.lang.String[] enabledCipherSuites(java.lang.String[] supportedCipherSuites,
java.lang.String[] defaultCipherSuites)
supportedCipherSuites - cipher suites supported by the SSL enginedefaultCipherSuites - default cipher suites enabled by the SSL engineprivate java.lang.String[] includedStrings(java.lang.String[] defaults,
java.lang.String included,
java.lang.String excluded)
defaults - default list of string valuesincluded - comma-separated patterns that identity values to includeexcluded - comma-separated patterns that identity string to excludedefaults
that match at least one pattern in included that are not
matched by any pattern in excludedprivate java.lang.String[] stringToArray(java.lang.String s)
s - the subject stringspublic java.lang.String getIncludedProtocols()
TLSv1)public void setIncludedProtocols(java.lang.String protocols)
protocols - a string containing comma-separated JSSE secure
transport protocol namesCryptography Architecture Standard Algorithm Name Documentationpublic java.lang.String getExcludedProtocols()
TLSv1)public void setExcludedProtocols(java.lang.String protocols)
protocols - a string containing comma-separated JSSE secure
transport protocol namesCryptography Architecture Standard Algorithm Name Documentationpublic java.lang.String getIncludedCipherSuites()
TLS_DHE_RSA_WITH_AES_256_CBC_SHA)public void setIncludedCipherSuites(java.lang.String cipherSuites)
cipherSuites - a string containing comma-separated JSSE cipher
suite namesCryptography Architecture Standard Algorithm Name Documentationpublic java.lang.String getExcludedCipherSuites()
TLS_DHE_RSA_WITH_AES_256_CBC_SHA)public void setExcludedCipherSuites(java.lang.String cipherSuites)
cipherSuites - a string containing comma-separated JSSE cipher
suite namesCryptography Architecture Standard Algorithm Name Documentationpublic java.lang.Boolean isNeedClientAuth()
public void setNeedClientAuth(java.lang.Boolean needClientAuth)
needClientAuth - the flag state to setpublic java.lang.Boolean isWantClientAuth()
public void setWantClientAuth(java.lang.Boolean wantClientAuth)
wantClientAuth - the flag state to set