<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 13, 2014 at 1:45 PM, Bruno Oliveira <span dir="ltr">&lt;<a href="mailto:bruno@abstractj.org" target="_blank">bruno@abstractj.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">That would make sense into the Sender request, once we don&rsquo;t have ways to identify if the data was encrypted or not, something like &quot;--header &ldquo;protected: true&rdquo; (always optional). For example:<br>
</blockquote><div><br></div><div><br></div><div>hrm - not sure I like that &#39;protected&#39; header on the SEND</div><div>&nbsp;</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
<br>
curl -3 -u &quot;{PushApplicationID}:{MasterSecret}&quot;<br>
&nbsp; &nbsp;-v -H &quot;Accept: application/json&quot; -H &quot;Content-type: application/json&rdquo;<br>
&nbsp; &nbsp;--header &ldquo;protected: true&quot;<br>
&nbsp; &nbsp;-X POST<br>
<br>
&nbsp; &nbsp;-d &#39;{<br>
&nbsp; &nbsp; &nbsp; &quot;variants&quot; : [&quot;c3f0a94f-48de-4b77-a08e-68114460857e&quot;, &quot;444939cd-ae63-4ce1-96a4-de74b77e3737&quot; ....],<br>
&nbsp; &nbsp; &nbsp; &quot;categories&quot; : [&quot;someCategory&quot;],<br>
&nbsp; &nbsp; &nbsp; &quot;alias&quot; : [&quot;<a href="mailto:user@account.com">user@account.com</a>&quot;, &quot;<a href="mailto:jay@redhat.org">jay@redhat.org</a>&quot;, ....],<br>
&nbsp; &nbsp; &nbsp; &quot;deviceType&quot; : [&quot;iPad&quot;, &quot;AndroidTablet&quot;, &quot;web&quot;],<br>
<br>
&nbsp; &nbsp; &nbsp; &quot;message&quot;: {&quot;key&quot;:&quot;value&quot;, &quot;key2&quot;:&quot;other value&quot;, &quot;alert&quot;:&quot;HELLO!&quot;},<br>
&nbsp; &nbsp; &nbsp; &quot;simple-push&quot;: &quot;version=123&quot;<br>
&nbsp; &nbsp;}&#39;<br>
<br>
https://SERVER:PORT/CONTEXT/rest/sender<br>
<br>
Does it make sense to you? In the future with the key agreement, that might not be necessary.<br>
<br>
--<br>
abstractj<br>
<div class="im HOEnZb"><br>
On March 13, 2014 at 9:33:07 AM, Sebastien Blanc (<a href="mailto:scm.blanc@gmail.com">scm.blanc@gmail.com</a>) wrote:<br>
&gt; &gt; Shouldn&#39;t there be a flag in the request telling the cert and<br>
&gt; passphrase are encrypted or not ? Or maybe the server can detect<br>
&gt; by itself if it&#39;s encrypted or not .<br>
<br>
<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Matthias Wessendorf <br>
<br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div></div>