Class TlsConfig
java.lang.Object
be.theking90000.mumble.controller.core.TlsConfig
Server-authenticated TLS configuration.
Client certificates and mutual TLS are not part of version 1 of the SDK.
-
Method Summary
Modifier and TypeMethodDescriptionstatic TlsConfigUses the default trust managers configured for the running JVM.static TlsConfigtrustCertificate(Path certificate) Trusts servers using a PEM-encoded CA certificate file.
-
Method Details
-
systemTrust
Uses the default trust managers configured for the running JVM.- Returns:
- a TLS configuration backed by JVM system trust
-
trustCertificate
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- ifcertificateisnull
-