@Override
        public boolean equals(Object o) {
            if (this == o) {
                return true;
            }
            if (o == null || getClass() != o.getClass()) {
                return false;
            }
            UsernameAndPassword that = (UsernameAndPassword) o;
            return Objects.equals(username, that.username) && Arrays
                .equals(password, that.password);
        }
Username and password container, can be used with try-with-resources to overwrite in-memory password,
as per best practices. But, most places just use a plain string, so it's probably not going to make
much of a difference!
common/es/src/main/java/io/apiman/common/es/util/ApimanEsClientOptionsParser.java