Skip to content

Commit bbf18e1

Browse files
authored
grammar fixes
1 parent 93f79a4 commit bbf18e1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

doc/keyhandling.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ mechanism. You can use this to acquire a byte array of the appropriate length
5656
When you have a key in a file on your hard drive
5757
................................................
5858

59-
If you already has a key, like if you have a PEM encoded private RSA key in
59+
If you already have a key, like if you have a PEM encoded private RSA key in
6060
a file on your machine you can load it this way::
6161

6262
>>> from cryptojwt.jwk.rsa import RSAKey
@@ -96,7 +96,7 @@ Exporting keys
9696
..............
9797

9898
When it comes to exporting keys, a :py:class:`cryptojwt.jwk.JWK` instance
99-
only know how to serialize into the format described in JWK_.
99+
only knows how to serialize into the format described in JWK_.
100100

101101
>>> from cryptojwt.jwk.rsa import new_rsa_key
102102
>>> rsa_key = new_rsa_key()
@@ -234,12 +234,12 @@ keys in the key bundle::
234234
>>> len(_keys)
235235
2
236236

237-
It turns out the key bundle now contains 2 keys. Both the keys that are in the
237+
It turns out the key bundle now contains 2 keys; both the keys that are in the
238238
file.
239239

240240
If the change is that one key is removed then something else happens.
241-
Assume we add one key and remove one of the ones that was there before.
242-
The file now contain 2 keys, and you might expect the key bundle to do the
241+
Assume we add one key and remove one of the keys that was there before.
242+
The file now contains 2 keys, and you might expect the key bundle to do the
243243
same::
244244

245245
>>> _keys = kb.keys()
@@ -278,7 +278,7 @@ Creating a key jar with your own newly minted keys you would do:
278278
**Note** also that different RSA keys are minted for signing and for encryption.
279279

280280
You can also use :py:func:`cryptojwt.keyjar.init_key_jar` which will
281-
load keys from disc if they are there and if not mint new.::
281+
load keys from disk if they are there and if not mint new.::
282282

283283
>>> from cryptojwt.key_jar import build_keyjar
284284
>>> import os
@@ -318,8 +318,8 @@ The last line can also be expressed as::
318318

319319
>>> keyjar[''] = kb
320320

321-
**Note** both variants adds a key bundle to the list of key bundles that
322-
belongs to '', it does not overwrite anything that was already there.
321+
**Note** both variants add a key bundle to the list of key bundles that
322+
belong to '', it does not overwrite anything that was already there.
323323

324324
Adding a JWKS is such a common thing that there is a simpler way to do it::
325325

@@ -346,7 +346,7 @@ When dealing with signed and/or encrypted JSON Web Tokens
346346
:py:class:`cryptojwt.key_jar.KeyJar` has these nice methods.
347347

348348
get_jwt_verify_keys
349-
:py:func:`cryptojwt.key_jar.KeyJar.get_jwt_verify_keys` takes an
349+
:py:func:`cryptojwt.key_jar.KeyJar.get_jwt_verify_keys` takes a
350350
signed JWT as input and returns a set of keys that
351351
can be used to verify the signature. The set you get back is a best
352352
estimate and might not contain **the** key. How good the estimate is

0 commit comments

Comments
 (0)