Class RestConfig.Ssl

java.lang.Object
com.hazelcast.config.rest.RestConfig.Ssl
Enclosing class:
RestConfig

public static class RestConfig.Ssl extends Object
  • Constructor Details

    • Ssl

      public Ssl()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Return whether to enable SSL support.
      Returns:
      whether to enable SSL support
    • setEnabled

      public RestConfig.Ssl setEnabled(boolean enabled)
      Set whether to enable SSL support.
      Parameters:
      enabled - whether to enable SSL support
      Returns:
      the RestConfig.Ssl to use
    • getClientAuth

      public RestConfig.Ssl.ClientAuth 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

      public RestConfig.Ssl setClientAuth(RestConfig.Ssl.ClientAuth clientAuth)
      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

      public String[] getCiphers()
      Return the supported SSL ciphers.
      Returns:
      the supported SSL ciphers
    • setCiphers

      public RestConfig.Ssl setCiphers(String[] ciphers)
      Set the supported SSL ciphers.
      Parameters:
      ciphers - the supported SSL ciphers
      Returns:
      the RestConfig.Ssl to use
    • getEnabledProtocols

      public String[] getEnabledProtocols()
      Return the enabled SSL protocols.
      Returns:
      the enabled SSL protocols.
    • setEnabledProtocols

      public RestConfig.Ssl setEnabledProtocols(String[] enabledProtocols)
      Set the enabled SSL protocols.
      Parameters:
      enabledProtocols - the enabled SSL protocols
      Returns:
      the RestConfig.Ssl to use
    • getKeyAlias

      public String getKeyAlias()
      Return the alias that identifies the key in the key store.
      Returns:
      the key alias
    • setKeyAlias

      public RestConfig.Ssl setKeyAlias(String keyAlias)
      Set the alias that identifies the key in the key store.
      Parameters:
      keyAlias - the key alias
      Returns:
      the RestConfig.Ssl to use
    • getKeyPassword

      public String getKeyPassword()
      Return the password used to access the key in the key store.
      Returns:
      the key password
    • setKeyPassword

      public RestConfig.Ssl setKeyPassword(String keyPassword)
      Set the password used to access the key in the key store.
      Parameters:
      keyPassword - the key password
      Returns:
      the RestConfig.Ssl to use
    • getKeyStore

      public String 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

      public RestConfig.Ssl setKeyStore(String keyStore)
      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

      public String getKeyStorePassword()
      Return the password used to access the key store.
      Returns:
      the key store password
    • setKeyStorePassword

      public RestConfig.Ssl setKeyStorePassword(String keyStorePassword)
      Set the password used to access the key store.
      Parameters:
      keyStorePassword - the key store password
      Returns:
      the RestConfig.Ssl to use
    • getKeyStoreType

      public String getKeyStoreType()
      Return the type of the key store.
      Returns:
      the key store type
    • setKeyStoreType

      public RestConfig.Ssl setKeyStoreType(String keyStoreType)
      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

      public String getKeyStoreProvider()
      Return the provider for the key store.
      Returns:
      the key store provider
    • setKeyStoreProvider

      public RestConfig.Ssl setKeyStoreProvider(String keyStoreProvider)
    • getTrustStore

      public String getTrustStore()
      Return the trust store that holds SSL certificates.
      Returns:
      the trust store
    • setTrustStore

      public RestConfig.Ssl setTrustStore(String trustStore)
      Set the trust store that holds SSL certificates.
      Parameters:
      trustStore - the trust store
      Returns:
      the RestConfig.Ssl to use
    • getTrustStorePassword

      public String getTrustStorePassword()
      Return the password used to access the trust store.
      Returns:
      the trust store password
    • setTrustStorePassword

      public RestConfig.Ssl setTrustStorePassword(String trustStorePassword)
      Set the password used to access the trust store.
      Parameters:
      trustStorePassword - the trust store password
      Returns:
      the RestConfig.Ssl to use
    • getTrustStoreType

      public String getTrustStoreType()
      Return the type of the trust store.
      Returns:
      the trust store type
    • setTrustStoreType

      public RestConfig.Ssl setTrustStoreType(String trustStoreType)
      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

      public String getTrustStoreProvider()
      Return the provider for the trust store.
      Returns:
      the trust store provider
    • setTrustStoreProvider

      public RestConfig.Ssl setTrustStoreProvider(String trustStoreProvider)
      Set the provider for the trust store.
      Parameters:
      trustStoreProvider - the trust store provider
      Returns:
      the RestConfig.Ssl to use
    • getCertificate

      public String getCertificate()
      Return the location of the certificate in PEM format.
      Returns:
      the certificate location
    • setCertificate

      public RestConfig.Ssl setCertificate(String certificate)
      Set the location of the certificate in PEM format.
      Parameters:
      certificate - the certificate location
      Returns:
      the RestConfig.Ssl to use
    • getCertificatePrivateKey

      public String getCertificatePrivateKey()
      Return the location of the private key for the certificate in PEM format.
      Returns:
      the location of the certificate private key
    • setCertificatePrivateKey

      public RestConfig.Ssl setCertificatePrivateKey(String certificatePrivateKey)
      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

      public String getTrustCertificate()
      Return the location of the trust certificate authority chain in PEM format.
      Returns:
      the location of the trust certificate
    • setTrustCertificate

      public RestConfig.Ssl setTrustCertificate(String trustCertificate)
      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

      public String 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

      public RestConfig.Ssl setTrustCertificatePrivateKey(String trustCertificatePrivateKey)
      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

      public String getProtocol()
      Return the SSL protocol to use.
      Returns:
      the SSL protocol
    • setProtocol

      public RestConfig.Ssl setProtocol(String protocol)
      Set the SSL protocol to use.
      Parameters:
      protocol - the SSL protocol
      Returns:
      the RestConfig.Ssl to use
    • toString

      public String toString()
      Overrides:
      toString in class Object