Uses of Class
org.newsclub.net.unix.ssl.SSLContextBuilder
-
Uses of SSLContextBuilder in org.newsclub.net.unix.ssl
Modifier and TypeMethodDescriptionstatic SSLContextBuilder
SSLContextBuilder.forClient()
Creates anSSLContextBuilder
to be used in a client context.static SSLContextBuilder
SSLContextBuilder.forServer()
Creates anSSLContextBuilder
to be used in a server context.SSLContextBuilder.withDefaultSSLParameters
(Consumer<SSLParameters> consumer) Configures this builder to use the given consumer to configure the default SSL parameters.SSLContextBuilder.withDefaultSSLParameters
(Function<SSLParameters, SSLParameters> function) Configures this builder to use the given function to configure the default SSL parameters.SSLContextBuilder.withKeyManagers
(SSLFunction<KeyManagerFactory, KeyManager[]> s) Configures this builder to use the given supplier for {link KeyManager}[]
.SSLContextBuilder.withKeyStore
(File path, SSLSupplier<char[]> password) Configures this builder to use the given keystore, identified by path and password.SSLContextBuilder.withKeyStore
(URL url, SSLSupplier<char[]> password) Configures this builder to use the given keystore, identified by URL and password.SSLContextBuilder.withKeyStoreSupplier
(SSLSupplier<KeyStore> supplier) Configures this builder to use the given supplier to provideKeyStore
instances.SSLContextBuilder.withProtocol
(String p) Configures this builder to use the given protocol.SSLContextBuilder.withProvider
(String id) Configures this builder to use the given provider, identified by ID,null
being the default.SSLContextBuilder.withProvider
(Provider p) Configures this builder to use the given provider,null
being the default.SSLContextBuilder.withSecureRandom
(SecureRandom s) Configures this builder to use the given protocol.SSLContextBuilder.withSocketFactory
(SocketFactory sf) Configures this builder to use the givenSocketFactory
to create the underlying insecure sockets.SSLContextBuilder.withTrustManagers
(SSLFunction<TrustManagerFactory, TrustManager[]> s) Configures this builder to use the given supplier forTrustManager
[]
.SSLContextBuilder.withTrustStore
(File path, SSLSupplier<char[]> password) Configures this builder to use the given truststore, identified by path and password.SSLContextBuilder.withTrustStore
(URL url, SSLSupplier<char[]> password) Configures this builder to use the given truststore, identified by path and password.