| Modifier and Type | Field and Description |
|---|---|
| private ApplicationProtocolConfig | |
| private CipherSuiteFilter | |
| private Iterable | |
| private ClientAuth | |
| private static final Map. | |
| private boolean | |
| private final boolean | |
| private PrivateKey | |
| private X509Certificate[] | |
| private KeyManagerFactory | |
| private String | |
| private String | |
| private final Map | |
| private String[] | |
| private SslProvider | |
| private long | |
| private long | |
| private Provider | |
| private boolean | |
| private X509Certificate[] | |
| private TrustManagerFactory |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public SslContextBuilder | applicationProtocolConfig(ApplicationProtocolConfig apn)
Application protocol negotiation configuration. |
| public SslContext | |
| public SslContextBuilder | |
| public SslContextBuilder | ciphers(Iterable<String> ciphers, CipherSuiteFilter cipherFilter)
The cipher suites to enable, in the order of preference. |
| public SslContextBuilder | |
| public SslContextBuilder | |
| public static SslContextBuilder | |
| public static SslContextBuilder | forServer(File
an X.509 certificate chain file in PEM format keyCertChainFile, File a PKCS#8 private key file in PEM format keyFile)Creates a builder for new server-side |
| public static SslContextBuilder | forServer(InputStream
an input stream for an X.509 certificate chain in PEM format. The caller is
responsible for calling keyCertChainInputStream, InputStream InputStream#close() after build()
has been called.an input stream for a PKCS#8 private key in PEM format. The caller is
responsible for calling keyInputStream)InputStream#close() after build()
has been called.Creates a builder for new server-side |
| public static SslContextBuilder | forServer(PrivateKey
a PKCS#8 private key key, X509Certificate... the X.509 certificate chain keyCertChain)Creates a builder for new server-side |
| public static SslContextBuilder | forServer(PrivateKey
a PKCS#8 private key key, Iterable<? extends X509Certificate> the X.509 certificate chain keyCertChain)Creates a builder for new server-side |
| public static SslContextBuilder | forServer(File
an X.509 certificate chain file in PEM format keyCertChainFile, File a PKCS#8 private key file in PEM format keyFile, String the password of the keyPassword)keyFile, or null if it's not
password-protectedCreates a builder for new server-side |
| public static SslContextBuilder | forServer(InputStream
an input stream for an X.509 certificate chain in PEM format. The caller is
responsible for calling keyCertChainInputStream, InputStream InputStream#close() after build()
has been called.an input stream for a PKCS#8 private key in PEM format. The caller is
responsible for calling keyInputStream, String InputStream#close() after build()
has been called.the password of the keyPassword)keyFile, or null if it's not
password-protectedCreates a builder for new server-side |
| public static SslContextBuilder | forServer(PrivateKey
a PKCS#8 private key key, String the password of the keyPassword, X509Certificate... keyFile, or null if it's not
password-protectedthe X.509 certificate chain keyCertChain)Creates a builder for new server-side |
| public static SslContextBuilder | forServer(PrivateKey
a PKCS#8 private key key, String the password of the keyPassword, Iterable<? extends X509Certificate> keyFile, or null if it's not
password-protectedthe X.509 certificate chain keyCertChain)Creates a builder for new server-side |
| public static SslContextBuilder | forServer(KeyManagerFactory
non- keyManagerFactory)null factory for server's private keyCreates a builder for new server-side |
| public static SslContextBuilder | forServer(KeyManager
non- keyManager)null KeyManager for server's private keyCreates a builder for new server-side |
| public SslContextBuilder | keyManager(File
an X.509 certificate chain file in PEM format keyCertChainFile, File a PKCS#8 private key file in PEM format keyFile)Identifying certificate for this host. |
| public SslContextBuilder | keyManager(InputStream
an input stream for an X.509 certificate chain in PEM format. The caller is
responsible for calling keyCertChainInputStream, InputStream InputStream#close() after build()
has been called.an input stream for a PKCS#8 private key in PEM format. The caller is
responsible for calling keyInputStream)InputStream#close() after build()
has been called.Identifying certificate for this host. |
| public SslContextBuilder | keyManager(PrivateKey
a PKCS#8 private key key, X509Certificate... an X.509 certificate chain keyCertChain)Identifying certificate for this host. |
| public SslContextBuilder | keyManager(PrivateKey
a PKCS#8 private key key, Iterable<? extends X509Certificate> an X.509 certificate chain keyCertChain)Identifying certificate for this host. |
| public SslContextBuilder | keyManager(File
an X.509 certificate chain file in PEM format keyCertChainFile, File a PKCS#8 private key file in PEM format keyFile, String the password of the keyPassword)keyFile, or null if it's not
password-protectedIdentifying certificate for this host. |
| public SslContextBuilder | keyManager(InputStream
an input stream for an X.509 certificate chain in PEM format. The caller is
responsible for calling keyCertChainInputStream, InputStream InputStream#close() after build()
has been called.an input stream for a PKCS#8 private key in PEM format. The caller is
responsible for calling keyInputStream, String InputStream#close() after build()
has been called.the password of the keyPassword)keyInputStream, or null if it's not
password-protectedIdentifying certificate for this host. |
| public SslContextBuilder | keyManager(PrivateKey
a PKCS#8 private key file key, String the password of the keyPassword, X509Certificate... key, or null if it's not
password-protectedan X.509 certificate chain keyCertChain)Identifying certificate for this host. |
| public SslContextBuilder | keyManager(PrivateKey
a PKCS#8 private key file key, String the password of the keyPassword, Iterable<? extends X509Certificate> key, or null if it's not
password-protectedan X.509 certificate chain keyCertChain)Identifying certificate for this host. |
| public SslContextBuilder | |
| public SslContextBuilder | keyManager(KeyManager keyManager)
A single key manager managing the identity information of this host. |
| public SslContextBuilder | |
| public <T> SslContextBuilder | |
| public SslContextBuilder | |
| public SslContextBuilder | |
| public SslContextBuilder | sessionCacheSize(long sessionCacheSize)
Set the size of the cache used for storing SSL session objects. |
| public SslContextBuilder | |
| public SslContextBuilder | |
| public SslContextBuilder | |
| public SslContextBuilder | |
| private static <T> T[] | |
| public SslContextBuilder | trustManager(File trustCertCollectionFile)
Trusted certificates for verifying the remote endpoint's certificate. |
| public SslContextBuilder | trustManager(InputStream trustCertCollectionInputStream)
Trusted certificates for verifying the remote endpoint's certificate. |
| public SslContextBuilder | trustManager(X509Certificate... trustCertCollection)
Trusted certificates for verifying the remote endpoint's certificate, |
| public SslContextBuilder | trustManager(Iterable<? extends X509Certificate> trustCertCollection)
Trusted certificates for verifying the remote endpoint's certificate, |
| public SslContextBuilder | trustManager(TrustManagerFactory trustManagerFactory)
Trusted manager for verifying the remote endpoint's certificate. |
| public SslContextBuilder | trustManager(TrustManager trustManager)
A single trusted manager for verifying the remote endpoint's certificate. |
| apn | back to summary |
|---|---|
| private ApplicationProtocolConfig apn | |
| cipherFilter | back to summary |
|---|---|
| private CipherSuiteFilter cipherFilter | |
| ciphers | back to summary |
|---|---|
| private Iterable<String> ciphers | |
| clientAuth | back to summary |
|---|---|
| private ClientAuth clientAuth | |
| EMPTY_ENTRIES | back to summary |
|---|---|
private static final Map.
| |
| enableOcsp | back to summary |
|---|---|
| private boolean enableOcsp | |
| forServer | back to summary |
|---|---|
| private final boolean forServer | |
| key | back to summary |
|---|---|
| private PrivateKey key | |
| keyCertChain | back to summary |
|---|---|
| private X509Certificate[] keyCertChain | |
| keyManagerFactory | back to summary |
|---|---|
| private KeyManagerFactory keyManagerFactory | |
| keyPassword | back to summary |
|---|---|
| private String keyPassword | |
| keyStoreType | back to summary |
|---|---|
| private String keyStoreType | |
| options | back to summary |
|---|---|
| private final Map<SslContextOption<?>, Object> options | |
| protocols | back to summary |
|---|---|
| private String[] protocols | |
| provider | back to summary |
|---|---|
| private SslProvider provider | |
| sessionCacheSize | back to summary |
|---|---|
| private long sessionCacheSize | |
| sessionTimeout | back to summary |
|---|---|
| private long sessionTimeout | |
| sslContextProvider | back to summary |
|---|---|
| private Provider sslContextProvider | |
| startTls | back to summary |
|---|---|
| private boolean startTls | |
| trustCertCollection | back to summary |
|---|---|
| private X509Certificate[] trustCertCollection | |
| trustManagerFactory | back to summary |
|---|---|
| private TrustManagerFactory trustManagerFactory | |
| SslContextBuilder | back to summary |
|---|---|
| private SslContextBuilder(boolean forServer) | |
| applicationProtocolConfig | back to summary |
|---|---|
| public SslContextBuilder applicationProtocolConfig(ApplicationProtocolConfig apn) Application protocol negotiation configuration. | |
| build | back to summary |
|---|---|
| public SslContext build() throws SSLException Create new If | |
| ciphers | back to summary |
|---|---|
| public SslContextBuilder ciphers(Iterable<String> ciphers) The cipher suites to enable, in the order of preference. | |
| ciphers | back to summary |
|---|---|
| public SslContextBuilder ciphers(Iterable<String> ciphers, CipherSuiteFilter cipherFilter) The cipher suites to enable, in the order of preference. | |
| clientAuth | back to summary |
|---|---|
| public SslContextBuilder clientAuth(ClientAuth clientAuth) Sets the client authentication mode. | |
| enableOcsp | back to summary |
|---|---|
| public SslContextBuilder enableOcsp(boolean enableOcsp) Enables OCSP stapling. Please note that not all
| |
| forClient | back to summary |
|---|---|
| public static SslContextBuilder forClient() Creates a builder for new client-side | |
| forServer | back to summary |
|---|---|
| public static SslContextBuilder forServer(File keyCertChainFile, File keyFile) Creates a builder for new server-side
| |
| forServer | back to summary |
|---|---|
| public static SslContextBuilder forServer(InputStream keyCertChainInputStream, InputStream keyInputStream) Creates a builder for new server-side
| |
| forServer | back to summary |
|---|---|
| public static SslContextBuilder forServer(PrivateKey key, X509Certificate... keyCertChain) Creates a builder for new server-side
| |
| forServer | back to summary |
|---|---|
| public static SslContextBuilder forServer(PrivateKey key, Iterable<? extends X509Certificate> keyCertChain) Creates a builder for new server-side
| |
| forServer | back to summary |
|---|---|
| public static SslContextBuilder forServer(File keyCertChainFile, File keyFile, String keyPassword) Creates a builder for new server-side
| |
| forServer | back to summary |
|---|---|
| public static SslContextBuilder forServer(InputStream keyCertChainInputStream, InputStream keyInputStream, String keyPassword) Creates a builder for new server-side
| |
| forServer | back to summary |
|---|---|
| public static SslContextBuilder forServer(PrivateKey key, String keyPassword, X509Certificate... keyCertChain) Creates a builder for new server-side
| |
| forServer | back to summary |
|---|---|
| public static SslContextBuilder forServer(PrivateKey key, String keyPassword, Iterable<? extends X509Certificate> keyCertChain) Creates a builder for new server-side
| |
| forServer | back to summary |
|---|---|
| public static SslContextBuilder forServer(KeyManagerFactory keyManagerFactory) Creates a builder for new server-side
| |
| forServer | back to summary |
|---|---|
| public static SslContextBuilder forServer(KeyManager keyManager) Creates a builder for new server-side
| |
| keyManager | back to summary |
|---|---|
| public SslContextBuilder keyManager(File keyCertChainFile, File keyFile) Identifying certificate for this host. | |
| keyManager | back to summary |
|---|---|
| public SslContextBuilder keyManager(InputStream keyCertChainInputStream, InputStream keyInputStream) Identifying certificate for this host.
| |
| keyManager | back to summary |
|---|---|
| public SslContextBuilder keyManager(PrivateKey key, X509Certificate... keyCertChain) Identifying certificate for this host.
| |
| keyManager | back to summary |
|---|---|
| public SslContextBuilder keyManager(PrivateKey key, Iterable<? extends X509Certificate> keyCertChain) Identifying certificate for this host.
| |
| keyManager | back to summary |
|---|---|
| public SslContextBuilder keyManager(File keyCertChainFile, File keyFile, String keyPassword) Identifying certificate for this host. | |
| keyManager | back to summary |
|---|---|
| public SslContextBuilder keyManager(InputStream keyCertChainInputStream, InputStream keyInputStream, String keyPassword) Identifying certificate for this host.
| |
| keyManager | back to summary |
|---|---|
| public SslContextBuilder keyManager(PrivateKey key, String keyPassword, X509Certificate... keyCertChain) Identifying certificate for this host.
| |
| keyManager | back to summary |
|---|---|
| public SslContextBuilder keyManager(PrivateKey key, String keyPassword, Iterable<? extends X509Certificate> keyCertChain) Identifying certificate for this host.
| |
| keyManager | back to summary |
|---|---|
| public SslContextBuilder keyManager(KeyManagerFactory keyManagerFactory) Identifying manager for this host. | |
| keyManager | back to summary |
|---|---|
| public SslContextBuilder keyManager(KeyManager keyManager) A single key manager managing the identity information of this host.
This is helpful when custom implementation of | |
| keyStoreType | back to summary |
|---|---|
| public SslContextBuilder keyStoreType(String keyStoreType) Sets the | |
| option | back to summary |
|---|---|
| public <T> SslContextBuilder option(SslContextOption<T> option, T value) Configure a | |
| protocols | back to summary |
|---|---|
| public SslContextBuilder protocols(String... protocols) The TLS protocol versions to enable.
| |
| protocols | back to summary |
|---|---|
| public SslContextBuilder protocols(Iterable<String> protocols) The TLS protocol versions to enable.
| |
| sessionCacheSize | back to summary |
|---|---|
| public SslContextBuilder sessionCacheSize(long sessionCacheSize) Set the size of the cache used for storing SSL session objects. | |
| sessionTimeout | back to summary |
|---|---|
| public SslContextBuilder sessionTimeout(long sessionTimeout) Set the timeout for the cached SSL session objects, in seconds. | |
| sslContextProvider | back to summary |
|---|---|
| public SslContextBuilder sslContextProvider(Provider sslContextProvider) The SSLContext | |
| sslProvider | back to summary |
|---|---|
| public SslContextBuilder sslProvider(SslProvider provider) The | |
| startTls | back to summary |
|---|---|
| public SslContextBuilder startTls(boolean startTls)
| |
| toArray | back to summary |
|---|---|
| private static <T> T[] toArray(Iterable<? extends T> iterable, T[] prototype) | |
| trustManager | back to summary |
|---|---|
| public SslContextBuilder trustManager(File trustCertCollectionFile) Trusted certificates for verifying the remote endpoint's certificate. The file should
contain an X.509 certificate collection in PEM format. | |
| trustManager | back to summary |
|---|---|
| public SslContextBuilder trustManager(InputStream trustCertCollectionInputStream) Trusted certificates for verifying the remote endpoint's certificate. The input stream should
contain an X.509 certificate collection in PEM format. | |
| trustManager | back to summary |
|---|---|
| public SslContextBuilder trustManager(X509Certificate... trustCertCollection) Trusted certificates for verifying the remote endpoint's certificate, | |
| trustManager | back to summary |
|---|---|
| public SslContextBuilder trustManager(Iterable<? extends X509Certificate> trustCertCollection) Trusted certificates for verifying the remote endpoint's certificate, | |
| trustManager | back to summary |
|---|---|
| public SslContextBuilder trustManager(TrustManagerFactory trustManagerFactory) Trusted manager for verifying the remote endpoint's certificate. | |
| trustManager | back to summary |
|---|---|
| public SslContextBuilder trustManager(TrustManager trustManager) A single trusted manager for verifying the remote endpoint's certificate.
This is helpful when custom implementation of | |