Class RedisTls

  • All Implemented Interfaces:

    
    public final class RedisTls
    
                        

    Enables 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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final SSLContext getSslContext()
      final Boolean getVerifyHostname()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RedisTls

        RedisTls(SSLContext sslContext, Boolean verifyHostname)
        Parameters:
        sslContext - the context used to create the TLS sockets
        verifyHostname - verify that the server certificate matches the host of the address connected to