Class TlsConfig.Builder

  • Enclosing class:
    TlsConfig

    public static class TlsConfig.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • status

        public TlsConfig.Builder status​(TlsConfig.Status status)
        Status to represent whether the database connection is TLS enabled or not.
        Parameters:
        status - the value to set
        Returns:
        this builder
      • certificateStoreType

        public TlsConfig.Builder certificateStoreType​(TlsConfig.CertificateStoreType certificateStoreType)
        The format of the certificate store.
        Parameters:
        certificateStoreType - the value to set
        Returns:
        this builder
      • storePassword

        public TlsConfig.Builder storePassword​(String storePassword)
        The password to read the trust store and key store files, if they are password protected.
        Parameters:
        storePassword - the value to set
        Returns:
        this builder
      • trustStoreContent

        public TlsConfig.Builder trustStoreContent​(String trustStoreContent)
        Base64 encoded string of trust store file content.
        Parameters:
        trustStoreContent - the value to set
        Returns:
        this builder
      • keyStoreContent

        public TlsConfig.Builder keyStoreContent​(String keyStoreContent)
        Base64 encoded string of key store file content.
        Parameters:
        keyStoreContent - the value to set
        Returns:
        this builder