File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ Changelog
2424 - Use ``joserfc.jws.deserialize_compact `` instead of ``joserfc.rfc7797.deserialize_compact ``
2525 - Use ``joserfc.jws.serialize_json `` instead of ``joserfc.rfc7797.serialize_json ``
2626 - Use ``joserfc.jws.deserialize_json `` instead of ``joserfc.rfc7797.deserialize_json ``
27+ - Convert ``joserfc.rfcXXXX `` to private modules ``joserfc._rfcXXXX ``.
2728
28291.1.0
2930-----
Original file line number Diff line number Diff line change 1111 urlsafe_b64decode ,
1212)
1313
14+ __all__ = [
15+ 'sign_compact' ,
16+ 'verify_compact' ,
17+ 'detach_compact_content' ,
18+ 'decode_header' ,
19+ ]
20+
1421
1522def sign_compact (obj : CompactSignature , alg : JWSAlgModel , key : t .Any ) -> bytes :
1623 header_segment = json_b64encode (obj .headers ())
Original file line number Diff line number Diff line change 2020)
2121from ..errors import DecodeError
2222
23+ __all__ = [
24+ 'FindKey' ,
25+ 'sign_general_json' ,
26+ 'sign_flattened_json' ,
27+ 'sign_json_member' ,
28+ 'extract_general_json' ,
29+ 'verify_general_json' ,
30+ 'verify_flattened_json' ,
31+ 'detach_json_content' ,
32+ ]
33+
2334FindKey = t .Callable [[HeaderMember ], t .Any ]
2435
2536
Original file line number Diff line number Diff line change 55from ..errors import InvalidKeyTypeError
66from ..registry import Header
77
8+ __all__ = [
9+ 'HeaderMember' ,
10+ 'CompactSignature' ,
11+ 'FlattenedJSONSignature' ,
12+ 'GeneralJSONSignature' ,
13+ 'JWSAlgModel' ,
14+ ]
15+
816
917class HeaderMember :
1018 """A header member of the JSON signature. It is combined with protected header,
Original file line number Diff line number Diff line change 1111 check_supported_header ,
1212)
1313
14+ __all__ = [
15+ 'JWSRegistry' ,
16+ 'construct_registry' ,
17+ 'default_registry' ,
18+ ]
19+
1420
1521class JWSRegistry :
1622 """A registry for JSON Web Signature to keep all the supported algorithms.
Original file line number Diff line number Diff line change 1111 urlsafe_b64decode ,
1212)
1313
14+ __all__ = [
15+ 'represent_compact' ,
16+ 'extract_compact' ,
17+ ]
18+
1419
1520def represent_compact (obj : CompactEncryption ) -> bytes :
1621 assert obj .recipient is not None
Original file line number Diff line number Diff line change 2222from .._keys import Key
2323
2424
25+ __all__ = [
26+ 'represent_general_json' ,
27+ 'represent_flattened_json' ,
28+ 'extract_general_json' ,
29+ 'extract_flattened_json' ,
30+ ]
31+
32+
2533def represent_general_json (obj : GeneralJSONEncryption ) -> GeneralJSONSerialization :
2634 data = __represent_json_serialization (obj )
2735 recipients = []
Original file line number Diff line number Diff line change 2626 urlsafe_b64encode ,
2727)
2828
29+ __all__ = [
30+ 'EncryptionData' ,
31+ 'perform_encrypt' ,
32+ 'perform_decrypt' ,
33+ ]
34+
2935EncryptionData = t .Union [CompactEncryption , GeneralJSONEncryption , FlattenedJSONEncryption ]
3036
3137
Original file line number Diff line number Diff line change 66from ..errors import InvalidKeyTypeError , InvalidKeyLengthError
77from .._keys import Key , ECKey , OctKey
88
9+ __all__ = [
10+ 'Recipient' ,
11+ 'CompactEncryption' ,
12+ 'BaseJSONEncryption' ,
13+ 'GeneralJSONEncryption' ,
14+ 'FlattenedJSONEncryption' ,
15+ 'JWEEncModel' ,
16+ 'JWEZipModel' ,
17+ 'KeyManagement' ,
18+ 'JWEDirectEncryption' ,
19+ 'JWEKeyEncryption' ,
20+ 'JWEKeyWrapping' ,
21+ 'JWEKeyAgreement' ,
22+ 'JWEAlgModel' ,
23+ ]
24+
925KeyType = t .TypeVar ("KeyType" )
1026
1127
Original file line number Diff line number Diff line change 1111 check_crit_header ,
1212)
1313
14+ __all__ = [
15+ 'JWEAlgorithm' ,
16+ 'JWERegistry' ,
17+ 'default_registry' ,
18+ ]
19+
1420JWEAlgorithm = t .Union [JWEAlgModel , JWEEncModel , JWEZipModel ]
1521
1622AlgorithmsDict = t .TypedDict (
You can’t perform that action at this time.
0 commit comments