HttpsConfigBuilder
instead@Deprecated public class SSLContextBuilder extends Object
Constructor and Description |
---|
SSLContextBuilder()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
SSLContext |
build()
Deprecated.
Pass this builder itself to the HttpsConfig rather than building an SSLContext
|
static SSLContext |
defaultSSLContext()
Deprecated.
|
protected void |
setKeystoreBytes(InputStream is,
boolean closeAfter)
Deprecated.
|
static SSLContextBuilder |
sslContext()
Deprecated.
|
static SSLContext |
unsignedLocalhostCert()
Deprecated.
Use
HttpsConfigBuilder.unsignedLocalhost() instead |
static SSLContextBuilder |
unsignedLocalhostCertBuilder()
Deprecated.
Use
HttpsConfigBuilder.unsignedLocalhost() instead |
SSLContextBuilder |
withCipherFilter(SSLCipherFilter cipherFilter)
Deprecated.
Sets a filter allowing you to specify which ciphers you would like to support.
|
SSLContextBuilder |
withDefaultAlias(String certAlias)
Deprecated.
|
SSLContextBuilder |
withKeyManagerFactory(KeyManagerFactory keyManagerFactory)
Deprecated.
Sets the key manager factory to use for SSL.
|
SSLContextBuilder |
withKeyPassword(char[] keyPassword)
Deprecated.
|
SSLContextBuilder |
withKeyPassword(String keyPassword)
Deprecated.
|
SSLContextBuilder |
withKeystore(File file)
Deprecated.
|
SSLContextBuilder |
withKeystore(InputStream keystoreStream)
Deprecated.
Loads a keystore from the given stream.
|
SSLContextBuilder |
withKeystoreFromClasspath(String classpath)
Deprecated.
Loads a keystore from the classpath
|
SSLContextBuilder |
withKeystorePassword(char[] keystorePassword)
Deprecated.
|
SSLContextBuilder |
withKeystorePassword(String keystorePassword)
Deprecated.
|
SSLContextBuilder |
withKeystoreType(String keystoreType)
Deprecated.
|
SSLContextBuilder |
withProtocols(String... protocols)
Deprecated.
Sets the SSL/TLS protocols to use, for example "SSLv3", "TLSv1", "TLSv1.1", "TLSv1.2", "TLSv1.3".
|
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)
protected void setKeystoreBytes(InputStream is, boolean closeAfter)
public SSLContextBuilder withKeystore(InputStream keystoreStream)
Does not close the keystore afterwards.
keystoreStream
- A stream to a keystorepublic SSLContextBuilder withKeystore(File file)
public SSLContextBuilder withKeystoreFromClasspath(String classpath)
classpath
- A path to load a keystore from, for example /mycert.p12
public SSLContextBuilder withKeyManagerFactory(KeyManagerFactory keyManagerFactory)
Note this is an alternative to setting a keystore directory.
keyManagerFactory
- The key manager factory to usepublic 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)
Note that if the current JDK does not support a requested protocol then it will be ignored. If no requested protocols are available, then an exception will be started when this is built.
protocols
- The protocols to use, or null to use the default.public SSLContextBuilder withDefaultAlias(String certAlias)
@Deprecated public SSLContext build()
@Deprecated public static SSLContextBuilder sslContext()
HttpsConfigBuilder.httpsConfig()
instead@Deprecated public static SSLContext defaultSSLContext()
@Deprecated public static SSLContext unsignedLocalhostCert()
HttpsConfigBuilder.unsignedLocalhost()
instead@Deprecated public static SSLContextBuilder unsignedLocalhostCertBuilder()
HttpsConfigBuilder.unsignedLocalhost()
insteadCopyright © 2017–2021. All rights reserved.