Class SSLParams
java.lang.Object
org.glassfish.admin.mbeanserver.ssl.SSLParams
This class is a config holder for configuring SSL Sockets.
It comes with set of defaults as defined below
TrustAlgorithm = SunX509
keystore type = JKS
truststore type = JKS
protocol = TLS
ssl3 Enabled = true
tls Enabled= true
It also picks up the value of keystore, keystore password, truststore , trustore password from
system properties.
Usage : This class can be used in any enviroment , where one wants to pass
in SSL defaults programatically as well as use a default set of configuration
without setting in values explicitly.
- Author:
- prasads@dev.java.net
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDetermines if if the engine will request (want) or require (need) client authentication.Determines whether SSL3 client authentication is performed on every request, independent of ACL-based access control.String[]String[]type of the keystore fileA comma-separated list of the SSL2 ciphers used, with the prefix + to enable or - to disable, for example +rc4.Determines whether SSL2 is enabled.Determines whether SSL3 is enabled.A comma-separated list of the SSL3 ciphers used, with the prefix + to enable or - to disable, for example +SSL_RSA_WITH_RC4_128_MD5.Determines whether TLS is enabled.Determines whether TLS rollback is enabled.voidsetCertNickname(String certNickname) voidsetClientAuth(String clientAuth) voidsetClientAuthEnabled(String clientAuthEnabled) voidsetCrlFile(String crlFile) voidsetEnabledCiphers(String[] enabledCiphers) voidsetEnabledProtocols(String[] enabledProtocols) voidsetKeyAlgorithm(String algorithm) voidsetKeyStore(String location) voidsetKeyStorePassword(String password) voidsetKeyStoreType(String type) voidsetProtocol(String protocol) voidsetSsl2Ciphers(String ssl2Ciphers) voidsetSsl2Enabled(String ssl2Enabled) voidsetSsl3Enabled(String ssl3Enabled) voidsetSsl3TlsCiphers(String ssl3TlsCiphers) voidsetTls11Enabled(String tls11Enabled) voidsetTls12Enabled(String tls12Enabled) voidsetTls13Enabled(String tls13Enabled) voidsetTlsEnabled(String tlsEnabled) voidsetTlsRollbackEnabled(String tlsRollBackEnabled) voidsetTrustAlgorithm(String algorithm) voidsetTrustMaxCertLength(String maxLength)
-
Constructor Details
-
SSLParams
-
SSLParams
public SSLParams()
-
-
Method Details
-
getTrustStore
-
getTrustStorePassword
-
getTrustStoreType
-
getTrustAlgorithm
-
setTrustAlgorithm
-
getEnabledCiphers
-
setEnabledCiphers
-
getEnabledProtocols
-
setEnabledProtocols
-
getProtocol
-
setProtocol
-
setTrustMaxCertLength
-
getCertNickname
-
setCertNickname
-
getClientAuthEnabled
Determines whether SSL3 client authentication is performed on every request, independent of ACL-based access control. -
setClientAuthEnabled
-
getClientAuth
Determines if if the engine will request (want) or require (need) client authentication. Valid values: want, need, or left blank -
setClientAuth
-
getCrlFile
-
setCrlFile
-
getKeyAlgorithm
-
setKeyAlgorithm
-
getKeyStoreType
type of the keystore file -
setKeyStoreType
-
getKeyStorePassword
-
setKeyStorePassword
-
getKeyStore
-
setKeyStore
-
getSsl2Ciphers
A comma-separated list of the SSL2 ciphers used, with the prefix + to enable or - to disable, for example +rc4. Allowed values are rc4, rc4export, rc2, rc2export, idea, des, desede3. If no value is specified, all supported ciphers are assumed to be enabled. NOT Used in PE -
setSsl2Ciphers
-
getSsl2Enabled
Determines whether SSL2 is enabled. NOT Used in PE. SSL2 is not supported by either iiop or web-services. When this element is used as a child of the iiop-listener element then the only allowed value for this attribute is "false". -
setSsl2Enabled
-
getSsl3Enabled
Determines whether SSL3 is enabled. If both SSL2 and SSL3 are enabled for a virtual server, the server tries SSL3 encryption first. If that fails, the server tries SSL2 encryption. -
setSsl3Enabled
-
getSsl3TlsCiphers
A comma-separated list of the SSL3 ciphers used, with the prefix + to enable or - to disable, for example +SSL_RSA_WITH_RC4_128_MD5. Allowed SSL3/TLS values are those that are supported by the JVM for the given security provider and security service configuration. If no value is specified, all supported ciphers are assumed to be enabled. -
setSsl3TlsCiphers
-
getTlsEnabled
Determines whether TLS is enabled. -
getTls11Enabled
-
getTls12Enabled
-
getTls13Enabled
-
setTlsEnabled
-
setTls11Enabled
-
setTls12Enabled
-
setTls13Enabled
-
getTlsRollbackEnabled
Determines whether TLS rollback is enabled. TLS rollback should be enabled for Microsoft Internet Explorer 5.0 and 5.5. NOT Used in PE -
setTlsRollbackEnabled
-