public class SslOptions
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SslOptions.Builder
Builder for
SslOptions. |
static interface |
SslOptions.Resource
Supplier for a
InputStream representing a resource. |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertFile(java.lang.String keyword,
java.io.File file)
Assert that
file exists. |
static SslOptions.Builder |
builder()
Returns a new
SslOptions.Builder to construct SslOptions. |
javax.net.ssl.SSLContext |
createSslContext()
A
SSLContext object that is configured with values from this SslOptions object. |
javax.net.ssl.SSLParameters |
getSslParameters()
createSslContext() must be called before this. |
SslVerifyMode |
getSslVerifyMode()
Configured ssl verify mode.
|
public static SslOptions.Builder builder()
SslOptions.Builder to construct SslOptions.SslOptions.Builder to construct SslOptions.public javax.net.ssl.SSLContext createSslContext()
throws java.io.IOException,
java.security.GeneralSecurityException
SSLContext object that is configured with values from this SslOptions object.SSLContextjava.io.IOException - thrown when loading the keystore or the truststore fails.java.security.GeneralSecurityException - thrown when loading the keystore or the truststore fails.public javax.net.ssl.SSLParameters getSslParameters()
createSslContext() must be called before this.SSLParameterspublic SslVerifyMode getSslVerifyMode()
SslVerifyModepublic static void assertFile(java.lang.String keyword,
java.io.File file)
file exists.keyword - file recognizerfile - java.lang.IllegalArgumentException - if the file doesn't existCopyright © 2025. All rights reserved.