-
-
Notifications
You must be signed in to change notification settings - Fork 645
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
920 additions
and
538 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -643,12 +643,23 @@ <h1 class="classTitle"> | |
<td class="nameDescription"> | ||
<div class="fixedFont"><b><a href="../symbols/X509.html#getExtSubjectAltName">getExtSubjectAltName</a></b>() | ||
</div> | ||
<div class="description">get subjectAltName value as array of string in the certificate | ||
<div class="description">(DEPRECATED) get subjectAltName value as array of string in the certificate | ||
This method will get subject alt name extension value | ||
as array of name.</div> | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<td class="attributes"> </td> | ||
<td class="nameDescription"> | ||
<div class="fixedFont"><b><a href="../symbols/X509.html#getExtSubjectAltName2">getExtSubjectAltName2</a></b>() | ||
</div> | ||
<div class="description">get subjectAltName value as array of string in the certificate | ||
This method will get subject alt name extension value | ||
as array of type and name.</div> | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<td class="attributes"> </td> | ||
<td class="nameDescription"> | ||
|
@@ -1559,7 +1570,7 @@ <h1 class="classTitle"> | |
|
||
</div> | ||
<div class="description"> | ||
get subjectAltName value as array of string in the certificate | ||
(DEPRECATED) get subjectAltName value as array of string in the certificate | ||
This method will get subject alt name extension value | ||
as array of name. | ||
If there is this in the certificate, it returns undefined; | ||
|
@@ -1574,12 +1585,19 @@ <h1 class="classTitle"> | |
|
||
<pre class="code">x = new X509(); | ||
x.readCertPEM(sCertPEM); // parseExt() will also be called internally. | ||
x.getExtSubjectAltName(hCert) → ["example.com", "example.org"]</pre> | ||
x.getExtSubjectAltName() → ["example.com", "example.org"]</pre> | ||
|
||
|
||
|
||
|
||
|
||
<dl class="detailList"> | ||
<dt class="heading">Deprecated:</dt> | ||
<dt> | ||
since jsrsasign 8.0.1 x509 1.1.17. Please move to <a href="../symbols/X509.html#getExtSubjectAltName2">X509#getExtSubjectAltName2</a> | ||
</dt> | ||
</dl> | ||
|
||
|
||
<dl class="detailList"> | ||
<dt class="heading">Since:</dt> | ||
|
@@ -1599,6 +1617,66 @@ <h1 class="classTitle"> | |
|
||
|
||
|
||
<hr /> | ||
|
||
<a name="getExtSubjectAltName2"> </a> | ||
<div class="fixedFont"> | ||
|
||
<span class="light">{Object}</span> | ||
<b>getExtSubjectAltName2</b>() | ||
|
||
</div> | ||
<div class="description"> | ||
get subjectAltName value as array of string in the certificate | ||
This method will get subject alt name extension value | ||
as array of type and name. | ||
If there is this in the certificate, it returns undefined; | ||
Type of GeneralName will be shown as following: | ||
<ul> | ||
<li>"MAIL" - [1]rfc822Name</li> | ||
<li>"DNS" - [2]dNSName</li> | ||
<li>"DN" - [4]directoryName</li> | ||
<li>"URI" - [6]uniformResourceIdentifier</li> | ||
<li>"IP" - [7]iPAddress</li> | ||
</ul> | ||
|
||
|
||
</div> | ||
|
||
|
||
|
||
<pre class="code">x = new X509(); | ||
x.readCertPEM(sCertPEM); // parseExt() will also be called internally. | ||
x.getExtSubjectAltName2() → | ||
[["DNS", "example.com"], | ||
["DNS", "example.org"], | ||
["MAIL", "[email protected]"], | ||
["IP", "192.168.1.1"], | ||
["DN", "/C=US/O=TEST1"]]</pre> | ||
|
||
|
||
|
||
|
||
|
||
|
||
<dl class="detailList"> | ||
<dt class="heading">Since:</dt> | ||
<dd>jsrsasign 8.0.1 x509 1.1.17</dd> | ||
</dl> | ||
</dl> | ||
|
||
|
||
|
||
<dl class="detailList"> | ||
<dt class="heading">Returns:</dt> | ||
|
||
<dd><span class="light fixedFont">{Object}</span> array of alt name array</dd> | ||
|
||
</dl> | ||
|
||
|
||
|
||
|
||
<hr /> | ||
|
||
<a name="getExtSubjectKeyIdentifier"> </a> | ||
|
Oops, something went wrong.