docs: public static String encodeBasicAuth(final String username, final String password) {
          requireNonNull(username, "username");
          requireNonNull(password, "password");
          final String auth = username + ':' + password;
          byte[] encoded;
          try {
              encoded = Base64.getEncoder().encode(auth.getBytes(UTF_8));
          } catch (final IllegalArgumentException e) {
              throw new IllegalArgumentException("Failed to encode basic authentication token", e);
          }
          return BASIC_AUTH_PREFIX + new String(encoded, UTF_8);
      }