Class TrustManagerBuilder
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.tools.io.TrustManagerBuilder
-
public class TrustManagerBuilder extends java.lang.ObjectBuilder for a trust manager with custom certificates.
-
-
Constructor Summary
Constructors Constructor Description TrustManagerBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TrustManagerBuilderaddBuiltinCertificates()Add certificates from the default trust storeTrustManagerBuilderaddFromResourceDirectory(java.lang.String path)Add certificates from the specified resource directory, using {path}/bundled.txt and {path}/extended.txt as the list of JKS file names to laoad from that directory.javax.net.ssl.X509TrustManagerbuild()
-
-
-
Method Detail
-
addBuiltinCertificates
public TrustManagerBuilder addBuiltinCertificates() throws java.lang.Exception
Add certificates from the default trust store- Returns:
- this
- Throws:
java.lang.Exception- In case anything explodes.
-
addFromResourceDirectory
public TrustManagerBuilder addFromResourceDirectory(java.lang.String path) throws java.lang.Exception
Add certificates from the specified resource directory, using {path}/bundled.txt and {path}/extended.txt as the list of JKS file names to laoad from that directory.- Parameters:
path- Path to the resource directory.- Returns:
- this
- Throws:
java.lang.Exception- In case anything explodes.
-
build
public javax.net.ssl.X509TrustManager build() throws java.lang.Exception- Returns:
- A trust manager with the loaded certificates.
- Throws:
java.lang.Exception- In case anything explodes.
-
-