Class TlsConfig

java.lang.Object
be.theking90000.mumble.controller.core.TlsConfig

public final class TlsConfig extends Object
Server-authenticated TLS configuration.

Client certificates and mutual TLS are not part of version 1 of the SDK.

  • Method Details

    • systemTrust

      public static TlsConfig systemTrust()
      Uses the default trust managers configured for the running JVM.
      Returns:
      a TLS configuration backed by JVM system trust
    • trustCertificate

      public static TlsConfig trustCertificate(Path certificate)
      Trusts servers using a PEM-encoded CA certificate file.
      Parameters:
      certificate - path to the PEM trust certificate
      Returns:
      a TLS configuration using that certificate
      Throws:
      NullPointerException - if certificate is null