Skip to content

Commit

Permalink
5.0.5 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kjur committed Nov 26, 2015
1 parent 92d8cb8 commit 30711ac
Show file tree
Hide file tree
Showing 19 changed files with 1,012 additions and 697 deletions.
13 changes: 12 additions & 1 deletion ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@

ChangeLog for jsrsasign

* Changes between 5.0.4 to next release
* Changes between 5.0.4 to 5.0.5
- node sample 'jwssign', 'jwtverify', 'asn1dump'
and 'pemtobin' added.
- base64x 1.1.5 to 1.1.6
- license URL small fix
- asn1 1.0.8 to 1.0.9
- DERGeneralizedTime withMillis fix
- DERGeneralizedTime and DERUTCTime refactoring
- jws 3.3.2 to 3.3.3
- JWS.parse method added
- IntDate.getZulu UTCTime(YY) support added
- jsrsasign-x.x.x-all-min.js move to lib directory from this version
- jsrsasign-{1.2,1.2.1,1.3,1.3.1,2.0.0}.tgz are removed
since they can get from github release/tags.

* Changes between 5.0.2 to 5.0.4 (2015-Nov-23)
- jwtverify, asn1dump and pemtobin sample Node script in
Expand Down
4 changes: 2 additions & 2 deletions api/files.html
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ <h2><a href="symbols/src/asn1-1.0.js.html">asn1-1.0.js</a></h2>


<dt class="heading">Version:</dt>
<dd>asn1 1.0.8 (2015-Sep-13)</dd>
<dd>asn1 1.0.9 (2015-Nov-26)</dd>



Expand Down Expand Up @@ -649,7 +649,7 @@ <h2><a href="symbols/src/jws-3.3.js.html">jws-3.3.js</a></h2>


<dt class="heading">Version:</dt>
<dd>3.3.2 (2015-Nov-11)</dd>
<dd>3.3.3 (2015-Nov-27)</dd>



Expand Down
9 changes: 8 additions & 1 deletion api/symbols/KJUR.jws.IntDate.html
Original file line number Diff line number Diff line change
Expand Up @@ -701,13 +701,20 @@ <h1 class="classTitle">
<div class="description">
get UNIX origin time from Zulu time representation string
This method provides UNIX origin time from Zulu time.
Following representations are supported:
<ul>
<li>YYYYMMDDHHmmSSZ - GeneralizedTime format</li>
<li>YYMMDDHHmmSSZ - UTCTime format. If YY is greater or equal to
50 then it represents 19YY otherwise 20YY.</li>
</ul>


</div>



<pre class="code">KJUR.jws.IntDate.getZulu("20151012125959Z") => 1478...</pre>
<pre class="code">KJUR.jws.IntDate.getZulu("20151012125959Z") => 1478...
KJUR.jws.IntDate.getZulu("151012125959Z") => 1478...</pre>



Expand Down
97 changes: 97 additions & 0 deletions api/symbols/KJUR.jws.JWS.html
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,16 @@ <h1 class="classTitle">
</td>
</tr>

<tr>
<td class="attributes">&lt;static&gt; &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">KJUR.jws.JWS.<b><a href="../symbols/KJUR.jws.JWS.html#.parse">parse</a></b>(sJWS)
</div>
<div class="description">parse header and payload of JWS signature<br/>
This method parses JWS signature string.</div>
</td>
</tr>

<tr>
<td class="attributes">&lt;static&gt; &nbsp;</td>
<td class="nameDescription">
Expand Down Expand Up @@ -1027,6 +1037,93 @@ <h4>Supported Algorithms</h4>



<hr />

<a name=".parse"> </a>
<div class="fixedFont">&lt;static&gt;

<span class="light">{Array}</span>
<span class="light">KJUR.jws.JWS.</span><b>parse</b>(sJWS)

</div>
<div class="description">
parse header and payload of JWS signature<br/>
This method parses JWS signature string.
Resulted associative array has following properties:
<ul>
<li>headerObj - JSON object of header</li>
<li>payloadObj - JSON object of payload if payload is JSON string otherwise undefined</li>
<li>headerPP - pretty printed JSON header by stringify</li>
<li>payloadPP - pretty printed JSON payload by stringify if payload is JSON otherwise Base64URL decoded raw string of payload</li>
<li>sigHex - hexadecimal string of signature</li>
</ul>


</div>



<pre class="code">KJUR.jws.JWS.parse(sJWS) ->
{
headerObj: {"alg": "RS256", "typ": "JWS"},
payloadObj: {"product": "orange", "quantity": 100},
headerPP:
'{
"alg": "RS256",
"typ": "JWS"
}',
payloadPP:
'{
"product": "orange",
"quantity": 100
}',
sigHex: "91f3cd..."
}</pre>




<dl class="detailList">
<dt class="heading">Parameters:</dt>

<dt>
<span class="light fixedFont">{String}</span> <b>sJWS</b>

</dt>
<dd>string of JWS signature to parse</dd>

</dl>



<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>jws 3.3.3</dd>
</dl>
</dl>


<dl class="detailList">
<dt class="heading">Throws:</dt>

<dt>
<b></b>
</dt>
<dd>if sJWS is malformed JWS signature</dd>

</dl>


<dl class="detailList">
<dt class="heading">Returns:</dt>

<dd><span class="light fixedFont">{Array}</span> associative array of parsed header and payload. See below.</dd>

</dl>




<hr />

<a name=".parseJWS"> </a>
Expand Down
Loading

0 comments on commit 30711ac

Please sign in to comment.