public class Ssl
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Ssl.ClientAuth
Client authentication types.
|
Constructor and Description |
---|
Ssl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCertificate()
Return the location of the certificate in PEM format.
|
java.lang.String |
getCertificatePrivateKey()
Return the location of the private key for the certificate in PEM format.
|
java.lang.String[] |
getCiphers()
Return the supported SSL ciphers.
|
Ssl.ClientAuth |
getClientAuth()
Return Whether client authentication is not wanted ("none"), wanted ("want") or
needed ("need").
|
java.lang.String[] |
getEnabledProtocols()
Return the enabled SSL protocols.
|
java.lang.String |
getKeyAlias()
Return the alias that identifies the key in the key store.
|
java.lang.String |
getKeyPassword()
Return the password used to access the key in the key store.
|
java.lang.String |
getKeyStore()
Return the path to the key store that holds the SSL certificate (typically a jks
file).
|
java.lang.String |
getKeyStorePassword()
Return the password used to access the key store.
|
java.lang.String |
getKeyStoreProvider()
Return the provider for the key store.
|
java.lang.String |
getKeyStoreType()
Return the type of the key store.
|
java.lang.String |
getProtocol()
Return the SSL protocol to use.
|
java.lang.String |
getTrustCertificate()
Return the location of the trust certificate authority chain in PEM format.
|
java.lang.String |
getTrustCertificatePrivateKey()
Return the location of the private key for the trust certificate in PEM format.
|
java.lang.String |
getTrustStore()
Return the trust store that holds SSL certificates.
|
java.lang.String |
getTrustStorePassword()
Return the password used to access the trust store.
|
java.lang.String |
getTrustStoreProvider()
Return the provider for the trust store.
|
java.lang.String |
getTrustStoreType()
Return the type of the trust store.
|
boolean |
isEnabled()
Return whether to enable SSL support.
|
void |
setCertificate(java.lang.String certificate) |
void |
setCertificatePrivateKey(java.lang.String certificatePrivateKey) |
void |
setCiphers(java.lang.String[] ciphers) |
void |
setClientAuth(Ssl.ClientAuth clientAuth) |
void |
setEnabled(boolean enabled) |
void |
setEnabledProtocols(java.lang.String[] enabledProtocols) |
void |
setKeyAlias(java.lang.String keyAlias) |
void |
setKeyPassword(java.lang.String keyPassword) |
void |
setKeyStore(java.lang.String keyStore) |
void |
setKeyStorePassword(java.lang.String keyStorePassword) |
void |
setKeyStoreProvider(java.lang.String keyStoreProvider) |
void |
setKeyStoreType(java.lang.String keyStoreType) |
void |
setProtocol(java.lang.String protocol) |
void |
setTrustCertificate(java.lang.String trustCertificate) |
void |
setTrustCertificatePrivateKey(java.lang.String trustCertificatePrivateKey) |
void |
setTrustStore(java.lang.String trustStore) |
void |
setTrustStorePassword(java.lang.String trustStorePassword) |
void |
setTrustStoreProvider(java.lang.String trustStoreProvider) |
void |
setTrustStoreType(java.lang.String trustStoreType) |
public boolean isEnabled()
public void setEnabled(boolean enabled)
public Ssl.ClientAuth getClientAuth()
Ssl.ClientAuth
to usepublic void setClientAuth(Ssl.ClientAuth clientAuth)
public java.lang.String[] getCiphers()
public void setCiphers(java.lang.String[] ciphers)
public java.lang.String[] getEnabledProtocols()
public void setEnabledProtocols(java.lang.String[] enabledProtocols)
public java.lang.String getKeyAlias()
public void setKeyAlias(java.lang.String keyAlias)
public java.lang.String getKeyPassword()
public void setKeyPassword(java.lang.String keyPassword)
public java.lang.String getKeyStore()
public void setKeyStore(java.lang.String keyStore)
public java.lang.String getKeyStorePassword()
public void setKeyStorePassword(java.lang.String keyStorePassword)
public java.lang.String getKeyStoreType()
public void setKeyStoreType(java.lang.String keyStoreType)
public java.lang.String getKeyStoreProvider()
public void setKeyStoreProvider(java.lang.String keyStoreProvider)
public java.lang.String getTrustStore()
public void setTrustStore(java.lang.String trustStore)
public java.lang.String getTrustStorePassword()
public void setTrustStorePassword(java.lang.String trustStorePassword)
public java.lang.String getTrustStoreType()
public void setTrustStoreType(java.lang.String trustStoreType)
public java.lang.String getTrustStoreProvider()
public void setTrustStoreProvider(java.lang.String trustStoreProvider)
public java.lang.String getCertificate()
public void setCertificate(java.lang.String certificate)
public java.lang.String getCertificatePrivateKey()
public void setCertificatePrivateKey(java.lang.String certificatePrivateKey)
public java.lang.String getTrustCertificate()
public void setTrustCertificate(java.lang.String trustCertificate)
public java.lang.String getTrustCertificatePrivateKey()
public void setTrustCertificatePrivateKey(java.lang.String trustCertificatePrivateKey)
public java.lang.String getProtocol()
public void setProtocol(java.lang.String protocol)