code: public static byte[] encodeURLWithoutPadding(byte[] src) {
          return src == null ? null : Base64.getUrlEncoder().withoutPadding().encode(src);
      }
docs: Encodes a byte array to base64 URL format.
  @param src the byte array to encode
  @return the base64 URL encoded bytes