Package com.dehnes.kotlinredis.core
Class RedisTls
-
- All Implemented Interfaces:
public final class RedisTlsEnables TLS for connections to Redis.
For a private CA, provide an SSLContext initialized with a matching TrustManager. For mutual TLS (client certificates), initialize the SSLContext with a KeyManager holding the client certificate.
-
-
Field Summary
Fields Modifier and Type Field Description private final SSLContextsslContextprivate final BooleanverifyHostname
-
Constructor Summary
Constructors Constructor Description RedisTls(SSLContext sslContext, Boolean verifyHostname)
-
Method Summary
Modifier and Type Method Description final SSLContextgetSslContext()final BooleangetVerifyHostname()-
-
Constructor Detail
-
RedisTls
RedisTls(SSLContext sslContext, Boolean verifyHostname)
- Parameters:
sslContext- the context used to create the TLS socketsverifyHostname- verify that the server certificate matches the host of the address connected to
-
-
Method Detail
-
getSslContext
final SSLContext getSslContext()
-
getVerifyHostname
final Boolean getVerifyHostname()
-
-
-
-