SslConfig

class SslConfig

Data class to hold the configuration for the plugin.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
Link copied to clipboard

Internal data class to hold the identity configuration. DO NOT USE DIRECTLY.

Properties

Link copied to clipboard
var configConnectors: Consumer<ServerConnector>?
Link copied to clipboard

Host to bind to.

Link copied to clipboard

Toggle HTTP/2 Support

Link copied to clipboard

Toggle the default http (insecure) connector.

Link copied to clipboard

Port to use on the http (insecure) connector.

Link copied to clipboard

Internal configuration holder for the identity. DO NOT USE DIRECTLY.

Link copied to clipboard

Enable http to https redirection.

Link copied to clipboard

Toggle the default https (secure) connector.

Link copied to clipboard

Port to use on the SSL (secure) connector.

Link copied to clipboard

Security provider to use for the SSLContext.

Link copied to clipboard

Disable SNI checks.

Link copied to clipboard

TLS Security configuration

Link copied to clipboard

Trust store configuration for the server, if not set, every client will be accepted.

Functions

Link copied to clipboard
fun configConnectors(configConnectors: Consumer<ServerConnector>?)

Consumer to configure the different ServerConnector that will be created. This consumer will be called as the last config step for each connector, allowing to override any previous configuration.

Link copied to clipboard
fun keystoreFromClasspath(keyStoreFile: String, keyStorePassword: String, identityPassword: String? = null)

Load a key store from the classpath.

Link copied to clipboard
fun keystoreFromInputStream(keyStoreInputStream: InputStream, keyStorePassword: String, identityPassword: String? = null)

Load a key store from a given input stream.

Link copied to clipboard
fun keystoreFromPath(keyStorePath: String, keyStorePassword: String, identityPassword: String? = null)

Load a key store from a given path in the system.

Link copied to clipboard
fun pemFromClasspath(certificateFile: String, privateKeyFile: String, password: String? = null)

Load pem formatted identity data from the classpath.

Link copied to clipboard
fun pemFromInputStream(certificateInputStream: InputStream, privateKeyInputStream: InputStream, password: String? = null)

Load pem formatted identity data from a given input stream.

Link copied to clipboard
fun pemFromPath(certificatePath: String, privateKeyPath: String, password: String? = null)

Load pem formatted identity data from a given path in the system.

Link copied to clipboard
fun pemFromString(certificateString: String, privateKeyString: String, password: String? = null)

Load pem formatted identity data from a given string.

Link copied to clipboard
fun withTrustConfig(trustConfigConsumer: Consumer<TrustConfig>)

Configure the trust configuration for the server.