public static byte[] concat(byte[]... bufs) {
        int len = 0;
        for (byte[] b : bufs) {
            len += b.length;
        }
        byte[] ret = new byte[len];
        int offset = 0;
        for (byte[] b : bufs) {
            System.arraycopy(b, 0, ret, offset, b.length);
            offset += b.length;
        }
        return ret;
    }
Returns a new byte array that is the concatenation of all input byte arrays in input order.

E.g. <code>concat("A", "BC", "DE", "F") => "ABCDEF"</code>
security-utils/src/main/java/com/yahoo/security/ArrayUtils.java