code: public static Base64Url encode(byte[] bytes) {
          if (bytes == null) {
              return new Base64Url((String) null);
          } else {
              return new Base64Url(Base64Util.encodeURLWithoutPadding(bytes));
          }
      }
docs: Encode a byte array into Base64Url encoded bytes.
  
  @param bytes The byte array to encode.
  @return a Base64Url instance