Skip to content

Commit 669cb6f

Browse files
authored
PKCS#11 docs (#261)
1 parent 03eb38e commit 669cb6f

15 files changed

+992
-947
lines changed

awsiot/mqtt_connection_builder.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -265,30 +265,30 @@ def mtls_with_pkcs11(*,
265265
This function takes all :mod:`common arguments<awsiot.mqtt_connection_builder>`
266266
described at the top of this doc, as well as...
267267
268-
Keyword Args:
269-
pkcs11_lib (awscrt.io.Pkcs11Lib): Use this PKCS#11 library
268+
Args:
269+
pkcs11_lib: Use this PKCS#11 library
270270
271-
user_pin (Optional[str]): User PIN, for logging into the PKCS#11 token.
271+
user_pin: User PIN, for logging into the PKCS#11 token.
272272
Pass `None` to log into a token with a "protected authentication path".
273273
274-
slot_id (Optional[int]): ID of slot containing PKCS#11 token.
274+
slot_id: ID of slot containing PKCS#11 token.
275275
If not specified, the token will be chosen based on other criteria (such as token label).
276276
277-
token_label (Optional[str]): Label of the PKCS#11 token to use.
277+
token_label: Label of the PKCS#11 token to use.
278278
If not specified, the token will be chosen based on other criteria (such as slot ID).
279279
280-
private_key_label (Optional[str]): Label of private key object on PKCS#11 token.
280+
private_key_label: Label of private key object on PKCS#11 token.
281281
If not specified, the key will be chosen based on other criteria
282282
(such as being the only available private key on the token).
283283
284-
cert_filepath (Optional[str]): Use this X.509 certificate (file on disk).
284+
cert_filepath: Use this X.509 certificate (file on disk).
285285
The certificate must be PEM-formatted. The certificate may be
286-
specified by other means instead (ex: `cert_file_contents`)
286+
specified by other means instead (ex: `cert_bytes`)
287287
288288
cert_bytes (Optional[bytes-like object]):
289289
Use this X.509 certificate (contents in memory).
290290
The certificate must be PEM-formatted. The certificate may be
291-
specified by other means instead (ex: `cert_file_path`)
291+
specified by other means instead (ex: `cert_filepath`)
292292
"""
293293
_check_required_kwargs(**kwargs)
294294

docs/awsiot/awsiot.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ <h3>Navigation</h3>
151151
</ul>
152152
</div>
153153
<div class="footer" role="contentinfo">
154-
&#169; Copyright 2021, Amazon Web Services, Inc.
155-
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.3.0.
154+
&#169; Copyright 2022, Amazon Web Services, Inc.
155+
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.3.2.
156156
</div>
157157
</body>
158158
</html>

docs/awsiot/eventstreamrpc.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,8 +456,8 @@ <h3>Navigation</h3>
456456
</ul>
457457
</div>
458458
<div class="footer" role="contentinfo">
459-
&#169; Copyright 2021, Amazon Web Services, Inc.
460-
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.3.0.
459+
&#169; Copyright 2022, Amazon Web Services, Inc.
460+
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.3.2.
461461
</div>
462462
</body>
463463
</html>

docs/awsiot/greengrass_discovery.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@ <h3>Navigation</h3>
259259
</ul>
260260
</div>
261261
<div class="footer" role="contentinfo">
262-
&#169; Copyright 2021, Amazon Web Services, Inc.
263-
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.3.0.
262+
&#169; Copyright 2022, Amazon Web Services, Inc.
263+
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.3.2.
264264
</div>
265265
</body>
266266
</html>

docs/awsiot/greengrasscoreipc.html

Lines changed: 922 additions & 915 deletions
Large diffs are not rendered by default.

docs/awsiot/iotidentity.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -680,8 +680,8 @@ <h3>Navigation</h3>
680680
</ul>
681681
</div>
682682
<div class="footer" role="contentinfo">
683-
&#169; Copyright 2021, Amazon Web Services, Inc.
684-
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.3.0.
683+
&#169; Copyright 2022, Amazon Web Services, Inc.
684+
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.3.2.
685685
</div>
686686
</body>
687687
</html>

docs/awsiot/iotjobs.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,8 +1724,8 @@ <h3>Navigation</h3>
17241724
</ul>
17251725
</div>
17261726
<div class="footer" role="contentinfo">
1727-
&#169; Copyright 2021, Amazon Web Services, Inc.
1728-
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.3.0.
1727+
&#169; Copyright 2022, Amazon Web Services, Inc.
1728+
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.3.2.
17291729
</div>
17301730
</body>
17311731
</html>

docs/awsiot/iotshadow.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1867,8 +1867,8 @@ <h3>Navigation</h3>
18671867
</ul>
18681868
</div>
18691869
<div class="footer" role="contentinfo">
1870-
&#169; Copyright 2021, Amazon Web Services, Inc.
1871-
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.3.0.
1870+
&#169; Copyright 2022, Amazon Web Services, Inc.
1871+
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.3.2.
18721872
</div>
18731873
</body>
18741874
</html>

docs/awsiot/mqtt_connection_builder.html

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,40 @@ <h3>Navigation</h3>
175175
</dl>
176176
</dd></dl>
177177

178+
<dl class="py function">
179+
<dt class="sig sig-object py" id="awsiot.mqtt_connection_builder.mtls_with_pkcs11">
180+
<span class="sig-prename descclassname"><span class="pre">awsiot.mqtt_connection_builder.</span></span><span class="sig-name descname"><span class="pre">mtls_with_pkcs11</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="o"><span class="pre">*</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">pkcs11_lib</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">user_pin</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">slot_id</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">token_label</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">private_key_label</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">cert_filepath</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">cert_bytes</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="o"><span class="pre">**</span></span><span class="n"><span class="pre">kwargs</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#awsiot.mqtt_connection_builder.mtls_with_pkcs11" title="Permalink to this definition"></a></dt>
181+
<dd><p>This builder creates an <a class="reference external" href="https://awslabs.github.io/aws-crt-python/api/mqtt.html#awscrt.mqtt.Connection" title="(in awscrt)"><code class="xref py py-class docutils literal notranslate"><span class="pre">awscrt.mqtt.Connection</span></code></a>, configured for an mTLS MQTT connection to AWS IoT,
182+
using a PKCS#11 library for private key operations.</p>
183+
<p>This function takes all <a class="reference internal" href="#module-awsiot.mqtt_connection_builder" title="awsiot.mqtt_connection_builder"><code class="xref py py-mod docutils literal notranslate"><span class="pre">common</span> <span class="pre">arguments</span></code></a>
184+
described at the top of this doc, as well as…</p>
185+
<dl class="field-list simple">
186+
<dt class="field-odd">Parameters</dt>
187+
<dd class="field-odd"><ul class="simple">
188+
<li><p><strong>pkcs11_lib</strong> (<a class="reference external" href="https://awslabs.github.io/aws-crt-python/api/io.html#awscrt.io.Pkcs11Lib" title="(in awscrt)"><em>awscrt.io.Pkcs11Lib</em></a>) – Use this PKCS#11 library</p></li>
189+
<li><p><strong>user_pin</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.10)"><em>str</em></a>) – User PIN, for logging into the PKCS#11 token.
190+
Pass <cite>None</cite> to log into a token with a “protected authentication path”.</p></li>
191+
<li><p><strong>slot_id</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.10)"><em>int</em></a><em>]</em>) – ID of slot containing PKCS#11 token.
192+
If not specified, the token will be chosen based on other criteria (such as token label).</p></li>
193+
<li><p><strong>token_label</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.10)"><em>str</em></a><em>]</em>) – Label of the PKCS#11 token to use.
194+
If not specified, the token will be chosen based on other criteria (such as slot ID).</p></li>
195+
<li><p><strong>private_key_label</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.10)"><em>str</em></a><em>]</em>) – Label of private key object on PKCS#11 token.
196+
If not specified, the key will be chosen based on other criteria
197+
(such as being the only available private key on the token).</p></li>
198+
<li><p><strong>cert_filepath</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.10)"><em>str</em></a><em>]</em>) – Use this X.509 certificate (file on disk).
199+
The certificate must be PEM-formatted. The certificate may be
200+
specified by other means instead (ex: <cite>cert_bytes</cite>)</p></li>
201+
<li><p><strong>cert_bytes</strong> (<em>Optional</em><em>[</em><em>bytes-like object</em><em>]</em>) – Use this X.509 certificate (contents in memory).
202+
The certificate must be PEM-formatted. The certificate may be
203+
specified by other means instead (ex: <cite>cert_filepath</cite>)</p></li>
204+
</ul>
205+
</dd>
206+
<dt class="field-even">Return type</dt>
207+
<dd class="field-even"><p><a class="reference external" href="https://awslabs.github.io/aws-crt-python/api/mqtt.html#awscrt.mqtt.Connection" title="(in awscrt)">awscrt.mqtt.Connection</a></p>
208+
</dd>
209+
</dl>
210+
</dd></dl>
211+
178212
<dl class="py function">
179213
<dt class="sig sig-object py" id="awsiot.mqtt_connection_builder.websockets_with_default_aws_signing">
180214
<span class="sig-prename descclassname"><span class="pre">awsiot.mqtt_connection_builder.</span></span><span class="sig-name descname"><span class="pre">websockets_with_default_aws_signing</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">region</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">credentials_provider</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">websocket_proxy_options</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="o"><span class="pre">**</span></span><span class="n"><span class="pre">kwargs</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#awsiot.mqtt_connection_builder.websockets_with_default_aws_signing" title="Permalink to this definition"></a></dt>
@@ -289,8 +323,8 @@ <h3>Navigation</h3>
289323
</ul>
290324
</div>
291325
<div class="footer" role="contentinfo">
292-
&#169; Copyright 2021, Amazon Web Services, Inc.
293-
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.3.0.
326+
&#169; Copyright 2022, Amazon Web Services, Inc.
327+
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.3.2.
294328
</div>
295329
</body>
296330
</html>

docs/genindex.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,6 +1017,8 @@ <h2 id="M">M</h2>
10171017
<li><a href="awsiot/mqtt_connection_builder.html#awsiot.mqtt_connection_builder.mtls_from_bytes">mtls_from_bytes() (in module awsiot.mqtt_connection_builder)</a>
10181018
</li>
10191019
<li><a href="awsiot/mqtt_connection_builder.html#awsiot.mqtt_connection_builder.mtls_from_path">mtls_from_path() (in module awsiot.mqtt_connection_builder)</a>
1020+
</li>
1021+
<li><a href="awsiot/mqtt_connection_builder.html#awsiot.mqtt_connection_builder.mtls_with_pkcs11">mtls_with_pkcs11() (in module awsiot.mqtt_connection_builder)</a>
10201022
</li>
10211023
</ul></td>
10221024
</tr></table>
@@ -1863,6 +1865,8 @@ <h2 id="W">W</h2>
18631865
</ul></td>
18641866
<td style="width: 33%; vertical-align: top;"><ul>
18651867
<li><a href="awsiot/mqtt_connection_builder.html#awsiot.mqtt_connection_builder.websockets_with_default_aws_signing">websockets_with_default_aws_signing() (in module awsiot.mqtt_connection_builder)</a>
1868+
</li>
1869+
<li><a href="awsiot/greengrasscoreipc.html#awsiot.greengrasscoreipc.model.RunWithInfo.windows_user">windows_user (awsiot.greengrasscoreipc.model.RunWithInfo attribute)</a>
18661870
</li>
18671871
</ul></td>
18681872
</tr></table>
@@ -1903,8 +1907,8 @@ <h3>Navigation</h3>
19031907
</ul>
19041908
</div>
19051909
<div class="footer" role="contentinfo">
1906-
&#169; Copyright 2021, Amazon Web Services, Inc.
1907-
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.3.0.
1910+
&#169; Copyright 2022, Amazon Web Services, Inc.
1911+
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.3.2.
19081912
</div>
19091913
</body>
19101914
</html>

docs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ <h3>Navigation</h3>
134134
</ul>
135135
</div>
136136
<div class="footer" role="contentinfo">
137-
&#169; Copyright 2021, Amazon Web Services, Inc.
138-
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.3.0.
137+
&#169; Copyright 2022, Amazon Web Services, Inc.
138+
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.3.2.
139139
</div>
140140
</body>
141141
</html>

docs/objects.inv

18 Bytes
Binary file not shown.

docs/py-modindex.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ <h3>Navigation</h3>
143143
</ul>
144144
</div>
145145
<div class="footer" role="contentinfo">
146-
&#169; Copyright 2021, Amazon Web Services, Inc.
147-
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.3.0.
146+
&#169; Copyright 2022, Amazon Web Services, Inc.
147+
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.3.2.
148148
</div>
149149
</body>
150150
</html>

docs/search.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ <h3>Navigation</h3>
102102
</ul>
103103
</div>
104104
<div class="footer" role="contentinfo">
105-
&#169; Copyright 2021, Amazon Web Services, Inc.
106-
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.3.0.
105+
&#169; Copyright 2022, Amazon Web Services, Inc.
106+
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.3.2.
107107
</div>
108108
</body>
109109
</html>

docs/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)