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