public class SSLContextBuilder extends Object
Constructor and Description |
---|
SSLContextBuilder() |
public SSLContextBuilder withKeystoreType(String keystoreType)
public SSLContextBuilder withKeyPassword(String keyPassword)
public SSLContextBuilder withKeystorePassword(String keystorePassword)
public SSLContextBuilder withKeyPassword(char[] keyPassword)
public SSLContextBuilder withKeystorePassword(char[] keystorePassword)
public SSLContextBuilder withKeystore(InputStream keystoreStream)
public SSLContextBuilder withKeystore(File file)
public SSLContextBuilder withKeystoreFromClasspath(String classpath)
public SSLContextBuilder withKeyManagerFactory(KeyManagerFactory keyManagerFactory)
public SSLContextBuilder withCipherFilter(SSLCipherFilter cipherFilter)
cipherFilter
- A Filter that takes all the supported ciphers, and all the default ciphers
(normally the default will exclude insecure ciphers that technically could
be supported) and returns a list of ciphers you want to use in your preferred
order.public SSLContextBuilder withProtocols(String... protocols)
protocols
- The protocols to use, or null to use the default@Deprecated public SSLContext build()
public static SSLContextBuilder sslContext()
public static SSLContext defaultSSLContext()
public static SSLContext unsignedLocalhostCert()
public static SSLContextBuilder unsignedLocalhostCertBuilder()
Copyright © 2017–2019. All rights reserved.