private static RedisSentinelConfiguration getSentinelConfig(final BaseRedisProperties redis) {
        LOGGER.debug("Setting Redis with Sentinel configuration on master [{}]", redis.getSentinel().getMaster());
        val sentinelConfig = new RedisSentinelConfiguration()
            .master(redis.getSentinel().getMaster());
        LOGGER.debug("Sentinel nodes configured are [{}]", redis.getSentinel().getNode());
        sentinelConfig.setSentinels(createRedisNodesForProperties(redis));
        sentinelConfig.setDatabase(redis.getDatabase());
        sentinelConfig.setUsername(redis.getUsername());
        if (StringUtils.hasText(redis.getPassword())) {
            sentinelConfig.setPassword(RedisPassword.of(redis.getPassword()));
        }
        if (StringUtils.hasText(redis.getSentinel().getPassword())) {
            sentinelConfig.setSentinelPassword(RedisPassword.of(redis.getSentinel().getPassword()));
        }
        return sentinelConfig;
    }
New client options.

@param redis         the redis
@param casSslContext the cas ssl context
@return the client options
@throws Exception the exception
support/cas-server-support-redis-core/src/main/java/org/apereo/cas/redis/core/RedisObjectFactory.java