Skip to content

Commit

Permalink
4.9.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kjur committed Oct 1, 2015
1 parent df2c878 commit 66c6b1c
Show file tree
Hide file tree
Showing 17 changed files with 2,964 additions and 2,040 deletions.
6 changes: 6 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@

ChangeLog for jsrsasign

* Changes between 4.9.0 to 4.9.1
- asn1x509 1.0.12 t 1.0.13
- setByObject method added to X500Name class
- {C: "US", O: "test"} representation now can be used
in newCertPEM method in X509Util class.

* Changes between 4.8.6 to 4.9.0
- certificate signing request(CSR/PKCS#10) generation support
asn1csr-1.0.js added
Expand Down
2 changes: 1 addition & 1 deletion api/files.html
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ <h2><a href="symbols/src/asn1x509-1.0.js.html">asn1x509-1.0.js</a></h2>


<dt class="heading">Version:</dt>
<dd>1.0.12 (2015-Jun-01)</dd>
<dd>1.0.13 (2015-Oct-01)</dd>



Expand Down
142 changes: 141 additions & 1 deletion api/symbols/KJUR.asn1.x509.X500Name.html
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,48 @@ <h1 class="classTitle">

<!-- ============================== methods summary ======================== -->



<table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class KJUR.asn1.x509.X500Name.">
<caption>Method Summary</caption>
<thead>
<tr>
<th scope="col">Method Attributes</th>
<th scope="col">Method Name and Description</th>
</tr>
</thead>
<tbody>

<tr>
<td class="attributes">&lt;static&gt; &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">KJUR.asn1.x509.X500Name.<b><a href="../symbols/KJUR.asn1.x509.X500Name.html#.setByObject">setByObject</a></b>(dnObj)
</div>
<div class="description">set DN by associative array
</div>
</td>
</tr>

<tr>
<td class="attributes">&lt;static&gt; &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">KJUR.asn1.x509.X500Name.<b><a href="../symbols/KJUR.asn1.x509.X500Name.html#.setByString">setByString</a></b>(dnStr)
</div>
<div class="description">set DN by string
</div>
</td>
</tr>

</tbody>
</table>



<dl class="inheritsList">

</dl>


<!-- ============================== events summary ======================== -->


Expand All @@ -494,7 +536,10 @@ <h1 class="classTitle">



<pre class="code"></pre>
<pre class="code">// 1. construct with string
o = new KJUR.asn1.x509.X500Name({str: "/C=US/O=aaa/OU=bbb/[email protected]"});
// 2. construct by object
o = new KJUR.asn1.x509.X500Name({C: "US", O: "aaa", CN: "http://example.com/"});</pre>



Expand Down Expand Up @@ -526,6 +571,101 @@ <h1 class="classTitle">

<!-- ============================== method details ========================= -->

<div class="sectionTitle">
Method Detail
</div>

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


<span class="light">KJUR.asn1.x509.X500Name.</span><b>setByObject</b>(dnObj)

</div>
<div class="description">
set DN by associative array



</div>



<pre class="code">name = new KJUR.asn1.x509.X500Name();
name.setByObject({C: "US", O: "aaa", CN="http://example.com/"1});</pre>




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

<dt>
<span class="light fixedFont">{Array}</span> <b>dnObj</b>

</dt>
<dd>associative array of DN (ex. {C: "US", O: "aaa"})</dd>

</dl>



<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>jsrsasign 4.9. asn1x509 1.0.13</dd>
</dl>
</dl>






<hr />

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


<span class="light">KJUR.asn1.x509.X500Name.</span><b>setByString</b>(dnStr)

</div>
<div class="description">
set DN by string



</div>



<pre class="code">name = new KJUR.asn1.x509.X500Name();
name.setByString("/C=US/O=aaa/OU=bbb/[email protected]");</pre>




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

<dt>
<span class="light fixedFont">{Array}</span> <b>dnStr</b>

</dt>
<dd>distinguished name by string (ex. /C=US/O=aaa)</dd>

</dl>












<!-- ============================== event details ========================= -->

Expand Down
12 changes: 12 additions & 0 deletions api/symbols/KJUR.asn1.x509.X509Util.html
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,18 @@ <h1 class="classTitle">
subject: {str: '/C=US/O=T1'},
sbjpubkey: pubKeyObj,
sighex: '0102030405..'}
);
// for the issuer and subject field, another
// representation is also available
var certPEM = KJUR.asn1.x509.X509Util.newCertPEM(
{ serial: {int: 1},
sigalg: {name: 'SHA1withRSA', paramempty: true},
issuer: {C: "US", O: "T1"},
notbefore: {'str': '130504235959Z'},
notafter: {'str': '140504235959Z'},
subject: {C: "US", O: "T1", CN: "http://example.com/"},
sbjpubkey: pubKeyObj,
sighex: '0102030405..'}
);</pre>


Expand Down
17 changes: 14 additions & 3 deletions api/symbols/KJUR.jws.IntDate.html
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,8 @@ <h1 class="classTitle">
<b><a href="../symbols/KJUR.jws.IntDate.html#constructor">KJUR.jws.IntDate</a></b>()
</div>
<div class="description">IntDate class for time representation for JSON Web Token(JWT)
Utility class for IntDate which is integer representation of UNIX origin timeused in JSON Web Token(JWT).</div>
Utility class for IntDate which is integer representation of UNIX origin time
used in JSON Web Token(JWT).</div>
</td>
</tr>
</tbody>
Expand Down Expand Up @@ -504,7 +505,8 @@ <h1 class="classTitle">

<div class="description">
IntDate class for time representation for JSON Web Token(JWT)
Utility class for IntDate which is integer representation of UNIX origin timeused in JSON Web Token(JWT).
Utility class for IntDate which is integer representation of UNIX origin time
used in JSON Web Token(JWT).

</div>

Expand Down Expand Up @@ -544,7 +546,16 @@ <h1 class="classTitle">

</div>
<div class="description">
This method will accept following representation of time.<ul><li>now - current time</li><li>now + 1hour - after 1 hour from now</li><li>now + 1day - after 1 day from now</li><li>now + 1month - after 30 days from now</li><li>now + 1year - after 365 days from now</li><li>YYYYmmDDHHMMSSZ - UTC time (ex. 20130828235959Z)</li><li>number - UNIX origin time (seconds from 1970-01-01 00:00:00) (ex. 1377714748)</li></ul>
This method will accept following representation of time.
<ul>
<li>now - current time</li>
<li>now + 1hour - after 1 hour from now</li>
<li>now + 1day - after 1 day from now</li>
<li>now + 1month - after 30 days from now</li>
<li>now + 1year - after 365 days from now</li>
<li>YYYYmmDDHHMMSSZ - UTC time (ex. 20130828235959Z)</li>
<li>number - UNIX origin time (seconds from 1970-01-01 00:00:00) (ex. 1377714748)</li>
</ul>


</div>
Expand Down
Loading

0 comments on commit 66c6b1c

Please sign in to comment.