public class SslConfig extends Object
| Constructor and Description |
|---|
SslConfig() |
| Modifier and Type | Method and Description |
|---|---|
@Nullable String[] |
getCiphers()
Gets the supported SSL ciphers.
|
@Nullable String[] |
getEnabledProtocols()
Gets the enabled SSL protocols.
|
@Nullable String |
getKeyAlias()
Gets the alias that identifies the key in the key store.
|
@Nullable String |
getKeyPassword()
Gets the password used to access the key in the key store.
|
@Nullable String |
getKeyStore()
Gets the path to the key store that holds the SSL certificate (typically a jks file).
|
@Nullable String |
getKeyStorePassword()
Gets the password used to load the key store.
|
@Nullable String |
getKeyStoreProvider()
Gets the provider for the key store.
|
@Nullable String |
getKeyStoreType()
Gets the type of the key store.
|
@Nullable String |
getProtocol()
Gets the SSL protocol to use.
|
@Nullable String |
getTrustStore()
Gets the trust store that holds SSL certificates.
|
@Nullable String |
getTrustStorePassword()
Gets the password used to load the trust store.
|
@Nullable String |
getTrustStoreProvider()
Gets the provider for the trust store.
|
@Nullable String |
getTrustStoreType()
Gets the type of the trust store.
|
boolean |
isEnabled()
Gets whether SSL support is enabled.
|
boolean |
isTrustAll()
Gets whether all certificates are trusted (certificate validation becomes disabled).
|
boolean |
isVerifyHostname()
Gets whether hostname should be verify during SSL handshake.
|
void |
setCiphers(@Nullable String[] ciphers)
Sets the supported SSL ciphers.
|
void |
setEnabled(boolean enabled)
Sets whether SSL support is enabled.
|
void |
setEnabledProtocols(@Nullable String[] enabledProtocols)
Sets the enabled SSL protocols.
|
void |
setKeyAlias(@Nullable String keyAlias)
Sets the alias that identifies the key in the key store.
|
void |
setKeyPassword(@Nullable String keyPassword)
Sets the password used to access the key in the key store.
|
void |
setKeyStore(@Nullable String keyStore)
Sets the path to the key store that holds the SSL certificate (typically a jks file).
|
void |
setKeyStorePassword(@Nullable String keyStorePassword)
Sets the password used to load the key store.
|
void |
setKeyStoreProvider(@Nullable String keyStoreProvider)
Sets the provider for the key store.
|
void |
setKeyStoreType(@Nullable String keyStoreType)
Sets the type of the key store.
|
void |
setProtocol(@Nullable String protocol)
Sets the SSL protocol to use.
|
void |
setTrustAll(boolean trustAll)
Sets whether all certificates are trusted (certificate validation becomes disabled).
|
void |
setTrustStore(@Nullable String trustStore)
Sets the trust store that holds SSL certificates.
|
void |
setTrustStorePassword(@Nullable String trustStorePassword)
Sets the password used to load the trust store.
|
void |
setTrustStoreProvider(@Nullable String trustStoreProvider)
Sets the provider for the trust store.
|
void |
setTrustStoreType(@Nullable String trustStoreType)
Sets the type of the trust store.
|
void |
setVerifyHostname(boolean verifyHostname)
Sets whether hostname should be verify during SSL handshake.
|
public boolean isEnabled()
true if SSL is enabled; false otherwise.public void setEnabled(boolean enabled)
enabled - true if SSL is enabled; false otherwise.public @Nullable String[] getCiphers()
public void setCiphers(@Nullable String[] ciphers)
ciphers - The supported SSL ciphers.public @Nullable String getKeyAlias()
public void setKeyAlias(@Nullable String keyAlias)
keyAlias - The alias that identifies the key in the key store.public @Nullable String getKeyPassword()
public void setKeyPassword(@Nullable String keyPassword)
keyPassword - The key password.public @Nullable String getKeyStore()
public void setKeyStore(@Nullable String keyStore)
keyStore - The path to the key store.public @Nullable String getKeyStorePassword()
public void setKeyStorePassword(@Nullable String keyStorePassword)
keyStorePassword - The key store password.public @Nullable String getKeyStoreType()
public void setKeyStoreType(@Nullable String keyStoreType)
keyStoreType - The key store type.public @Nullable String getKeyStoreProvider()
public void setKeyStoreProvider(@Nullable String keyStoreProvider)
keyStoreProvider - The key store provider.public @Nullable String[] getEnabledProtocols()
public void setEnabledProtocols(@Nullable String[] enabledProtocols)
enabledProtocols - The enabled SSL protocols to set.public @Nullable String getTrustStore()
public void setTrustStore(@Nullable String trustStore)
trustStore - The path to the trust store.public @Nullable String getTrustStorePassword()
public void setTrustStorePassword(@Nullable String trustStorePassword)
trustStorePassword - The trust store password.public @Nullable String getTrustStoreType()
public void setTrustStoreType(@Nullable String trustStoreType)
trustStoreType - The trust store type.public @Nullable String getTrustStoreProvider()
public void setTrustStoreProvider(@Nullable String trustStoreProvider)
trustStoreProvider - The trust store provider.public @Nullable String getProtocol()
public void setProtocol(@Nullable String protocol)
protocol - The SSL protocol to use.public boolean isTrustAll()
true if all certificates are trusted, false otherwise.public void setTrustAll(boolean trustAll)
trustAll - true to trust all certificates, false otherwise.public boolean isVerifyHostname()
true if the hostname should be verify, false otherwise.public void setVerifyHostname(boolean verifyHostname)
verifyHostname - true if the hostname should be verify, false otherwise.Copyright © 2016 - present; JODConverter.org. All rights reserved.