|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.admin.mbeanserver.ssl.SSLParams
public class 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.
| Constructor Summary | |
|---|---|
SSLParams()
|
|
SSLParams(File truststore,
String trustStorePwd,
String trustStoreType)
|
|
| Method Summary | |
|---|---|
String |
getCertNickname()
|
String |
getClientAuth()
Determines if if the engine will request (want) or require (need) client authentication. |
String |
getClientAuthEnabled()
Determines whether SSL3 client authentication is performed on every request, independent of ACL-based access control. |
String |
getCrlFile()
|
String[] |
getEnabledCiphers()
|
String[] |
getEnabledProtocols()
|
String |
getKeyAlgorithm()
|
File |
getKeyStore()
|
String |
getKeyStorePassword()
|
String |
getKeyStoreType()
type of the keystore file |
String |
getProtocol()
|
String |
getSsl2Ciphers()
A comma-separated list of the SSL2 ciphers used, with the prefix + to enable or - to disable, for example +rc4. |
Boolean |
getSsl2Enabled()
Determines whether SSL2 is enabled. |
Boolean |
getSsl3Enabled()
Determines whether SSL3 is enabled. |
String |
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. |
Boolean |
getTlsEnabled()
Determines whether TLS is enabled. |
Boolean |
getTlsRollbackEnabled()
Determines whether TLS rollback is enabled. |
String |
getTrustAlgorithm()
|
File |
getTrustStore()
|
String |
getTrustStorePassword()
|
String |
getTrustStoreType()
|
void |
setCertNickname(String certNickname)
|
void |
setClientAuth(String clientAuth)
|
void |
setClientAuthEnabled(String clientAuthEnabled)
|
void |
setCrlFile(String crlFile)
|
void |
setEnabledCiphers(String[] enabledCiphers)
|
void |
setEnabledProtocols(String[] enabledProtocols)
|
void |
setKeyAlgorithm(String algorithm)
|
void |
setKeyStore(String location)
|
void |
setKeyStorePassword(String password)
|
void |
setKeyStoreType(String type)
|
void |
setProtocol(String protocol)
|
void |
setSsl2Ciphers(String ssl2Ciphers)
|
void |
setSsl2Enabled(String ssl2Enabled)
|
void |
setSsl3Enabled(String ssl3Enabled)
|
void |
setSsl3TlsCiphers(String ssl3TlsCiphers)
|
void |
setTlsEnabled(String tlsEnabled)
|
void |
setTlsRollbackEnabled(String tlsRollBackEnabled)
|
void |
setTrustAlgorithm(String algorithm)
|
void |
setTrustMaxCertLength(String maxLength)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SSLParams(File truststore,
String trustStorePwd,
String trustStoreType)
public SSLParams()
| Method Detail |
|---|
public File getTrustStore()
public String getTrustStorePassword()
public String getTrustStoreType()
public String getTrustAlgorithm()
public void setTrustAlgorithm(String algorithm)
public String[] getEnabledCiphers()
public void setEnabledCiphers(String[] enabledCiphers)
public String[] getEnabledProtocols()
public void setEnabledProtocols(String[] enabledProtocols)
public String getProtocol()
public void setProtocol(String protocol)
public void setTrustMaxCertLength(String maxLength)
public String getCertNickname()
public void setCertNickname(String certNickname)
public String getClientAuthEnabled()
public void setClientAuthEnabled(String clientAuthEnabled)
public String getClientAuth()
public void setClientAuth(String clientAuth)
public String getCrlFile()
public void setCrlFile(String crlFile)
public String getKeyAlgorithm()
public void setKeyAlgorithm(String algorithm)
public String getKeyStoreType()
public void setKeyStoreType(String type)
public String getKeyStorePassword()
public void setKeyStorePassword(String password)
public File getKeyStore()
public void setKeyStore(String location)
public String getSsl2Ciphers()
public void setSsl2Ciphers(String ssl2Ciphers)
public Boolean getSsl2Enabled()
public void setSsl2Enabled(String ssl2Enabled)
public Boolean getSsl3Enabled()
public void setSsl3Enabled(String ssl3Enabled)
public String getSsl3TlsCiphers()
public void setSsl3TlsCiphers(String ssl3TlsCiphers)
public Boolean getTlsEnabled()
public void setTlsEnabled(String tlsEnabled)
public Boolean getTlsRollbackEnabled()
public void setTlsRollbackEnabled(String tlsRollBackEnabled)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||