|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.commons.connection.tls.SSLExtendedOptions
public final class SSLExtendedOptions
Container for extended SSLContext/SSLEngine options. Used to carry options that can not be configured in SSLContext but will be required to configure SSLEngine.
Field Summary | |
---|---|
static java.lang.String |
CIPHER_LIST_SEPARATOR_CHAR
Separator char for cipher lists. |
static java.lang.String |
PROTOCOL_LIST_SEPARATOR_CHAR
|
Constructor Summary | |
---|---|
SSLExtendedOptions(boolean mutualTLS,
java.lang.String enabledCipherSuites)
Container for extended SSLContext/SSLEngine options. |
|
SSLExtendedOptions(boolean mutualTLS,
java.lang.String[] enabledCipherSuites)
Container for extended SSLContext/SSLEngine options. |
|
SSLExtendedOptions(boolean mutualTLS,
java.lang.String[] enabledCipherSuites,
java.lang.String[] enabledProtocols)
Container for extended SSLContext/SSLEngine options. |
|
SSLExtendedOptions(boolean mutualTLS,
java.lang.String enabledCipherSuites,
java.lang.String enabledProtocols)
Container for extended SSLContext/SSLEngine options. |
Method Summary | |
---|---|
java.lang.String[] |
getEnabledCipherSuites()
|
java.lang.String[] |
getEnabledProtocols()
|
boolean |
isMutualTLS()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CIPHER_LIST_SEPARATOR_CHAR
public static final java.lang.String PROTOCOL_LIST_SEPARATOR_CHAR
Constructor Detail |
---|
public SSLExtendedOptions(boolean mutualTLS, java.lang.String[] enabledCipherSuites, java.lang.String[] enabledProtocols)
mutualTLS
- Used only for server side, meaningless for client side.
True - SSLEngine will require client side to present certificates,
false - will not.enabledCipherSuites
- Array of cipher names. Will be used to calculate enabled cipher
suites as an intersection of sets:
(cipher suites supported by SSLEngine) x (enabledCipherSuites).enabledProtocols
- Array of protocols names. Will be used to calculate enabled protocols
as an intersection of sets:
(protocols supported by SSLEngine) x (enabledProtocols).
Example. { "SSLv3", "TLSv1", "TLSv1.1", "TLSv1.2" }public SSLExtendedOptions(boolean mutualTLS, java.lang.String[] enabledCipherSuites)
mutualTLS
- Used only for server side, meaningless for client side.
True - SSLEngine will require client side to present certificates,
false - will not.enabledCipherSuites
- Array of cipher names. Will be used to calculate enabled cipher
suites as an intersection of sets:
(cipher suites supported by SSLEngine) x (enabledCipherSuites).public SSLExtendedOptions(boolean mutualTLS, java.lang.String enabledCipherSuites, java.lang.String enabledProtocols)
mutualTLS
- Used only for server side, meaningless for client side. True - SSLEngine
will require client side to present certificates, false - will not.enabledCipherSuites
- List of cipher names separated by CIPHER_LIST_SEPARATOR_CHAR
(currently space character
is used). Will be used to calculate enabled cipher suites as an intersection
of sets: (cipher suites supported by SSLEngine) x (cipherSuites).enabledProtocols
- List of protocols names separated by PROTOCOL_LIST_SEPARATOR_CHAR
(currently
space character is used). Will be used to calculate enabled protocols
as an intersection of sets: (protocols supported by SSLEngine) x
(enabledProtocols).
Example. "SSLv3 TLSv1 TLSv1.1 TLSv1.2"public SSLExtendedOptions(boolean mutualTLS, java.lang.String enabledCipherSuites)
mutualTLS
- Used only for server side, meaningless for client side. True - SSLEngine
will require client side to present certificates, false - will not.enabledCipherSuites
- List of cipher names separated by CIPHER_LIST_SEPARATOR_CHAR (currently space character
is used). Will be used to calculate enabled cipher suites as an intersection
of sets: (cipher suites supported by SSLEngine) x (cipherSuites).Method Detail |
---|
public boolean isMutualTLS()
public java.lang.String[] getEnabledCipherSuites()
public java.lang.String[] getEnabledProtocols()
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |