TrustConfig

Configuration for the trust store, used to verify the identity of the clients. Using this configuration, the server will only accept connections from clients that are trusted. If no trust store is configured, the server will accept any client.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

List of certificates to be trusted, can be loaded using the helper methods or directly. This list is complementary to the keys

Link copied to clipboard

List of KeyStores to be trusted, can be loaded using the helper methods or directly.

Functions

Link copied to clipboard
fun certificateFromClasspath(certificateFile: String)

Load certificate data from the classpath. The certificate can be in PEM, P7B/PKCS#7 or DER format.

Link copied to clipboard
fun certificateFromInputStream(certificateInputStream: InputStream)

Load certificate data from a given input stream. The certificate can be in PEM, P7B/PKCS#7 or DER format.

Link copied to clipboard
fun certificateFromPath(certificatePath: String)

Load certificate data from a given path in the system. The certificate can be in PEM, P7B/PKCS#7 or DER format.

Link copied to clipboard
fun p7bCertificateFromString(certificateString: String)

Load P7B certificate data from a given string. The certificate must be in P7B/PKCS#7 format.

Link copied to clipboard
fun pemFromString(certificateString: String)

Load pem formatted identity data from a given string. The certificate must be in PEM format.

Link copied to clipboard
fun trustStoreFromClasspath(trustStoreFile: String, trustStorePassword: String)

Load a trust store from the classpath.

Link copied to clipboard
fun trustStoreFromInputStream(trustStoreInputStream: InputStream, trustStorePassword: String)

Load a trust store from a given input stream. The trust store can be in JKS or PKCS12 format.

Link copied to clipboard
fun trustStoreFromPath(trustStorePath: String, trustStorePassword: String)

Load a trust store from a given path in the system. The trust store can be in JKS or PKCS12 format.