8
8
msgstr ""
9
9
"Project-Id-Version : joserfc\n "
10
10
"Report-Msgid-Bugs-To : \n "
11
- "POT-Creation-Date : 2025-04-20 18:35 +0900\n "
11
+ "POT-Creation-Date : 2025-05-24 13:25 +0900\n "
12
12
"PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
13
13
"Last-Translator : FULL NAME <EMAIL@ADDRESS>\n "
14
14
"Language : zh\n "
@@ -500,19 +500,19 @@ msgstr ""
500
500
"从字节、字符串和字典导入密钥的类方法。当 ``value`` 为字典时,此方法可以自动识别密钥类型,否则,开发人员应自行传递 "
501
501
"``key_type``。"
502
502
503
- #: joserfc._keys.JWKRegistry.import_key:5 of
503
+ #: joserfc._keys.JWKRegistry.import_key:5 joserfc.jwk.import_key:5 of
504
504
msgid "the key data in bytes, string, or dict."
505
505
msgstr "字节、字符串或字典形式的密钥数据。"
506
506
507
- #: joserfc._keys.JWKRegistry.import_key:6 of
507
+ #: joserfc._keys.JWKRegistry.import_key:6 joserfc.jwk.import_key:6 of
508
508
msgid "an optional key type in string."
509
509
msgstr "可选的密钥类型字符串。"
510
510
511
- #: joserfc._keys.JWKRegistry.import_key:7 of
511
+ #: joserfc._keys.JWKRegistry.import_key:7 joserfc.jwk.import_key:7 of
512
512
msgid "extra key parameters"
513
513
msgstr "额外的密钥参数"
514
514
515
- #: joserfc._keys.JWKRegistry.import_key:8 of
515
+ #: joserfc._keys.JWKRegistry.import_key:8 joserfc.jwk.import_key:8 of
516
516
msgid "OctKey, RSAKey, ECKey, or OKPKey"
517
517
msgstr "OctKey、RSAKey、ECKey 或 OKPKey"
518
518
@@ -565,6 +565,17 @@ msgid ""
565
565
"editor.org/rfc/rfc7518#section-6.3"
566
566
msgstr "RSA 密钥注册表定义 https://www.rfc-editor.org/rfc/rfc7518#section-6.3"
567
567
568
+ #: joserfc.jwk.generate_key:1 of
569
+ #, fuzzy
570
+ msgid ""
571
+ "Generating key according to the given key type. When ``key_type`` is "
572
+ "\" oct\" and \" RSA\" , the second parameter SHOULD be a key size in bits. "
573
+ "When ``key_type`` is \" EC\" and \" OKP\" , the second parameter SHOULD be a"
574
+ " \" crv\" string."
575
+ msgstr ""
576
+ "根据给定的密钥类型生成密钥的类方法。当 ``key_type`` 为 \" oct\" 和 \" RSA\" 时,第二个参数应为位大小。当 "
577
+ "``key_type`` 为 \" EC\" 和 \" OKP\" 时,第二个参数应为 \" crv\" 字符串。"
578
+
568
579
#: joserfc.jwk.guess_key:1 of
569
580
msgid "Guess key from a various sources."
570
581
msgstr "从各种来源猜测密钥。"
@@ -581,6 +592,16 @@ msgstr "具有 ``headers`` 和 ``set_kid`` 方法的协议"
581
592
msgid "pick a random key from key set"
582
593
msgstr "从密钥集中随机选择一个密钥"
583
594
595
+ #: joserfc.jwk.import_key:1 of
596
+ #, fuzzy
597
+ msgid ""
598
+ "Importing a key from bytes, string, and dict. When ``value`` is a dict, "
599
+ "this method can tell the key type automatically, otherwise, developers "
600
+ "SHOULD pass the ``key_type`` themselves."
601
+ msgstr ""
602
+ "从字节、字符串和字典导入密钥的类方法。当 ``value`` 为字典时,此方法可以自动识别密钥类型,否则,开发人员应自行传递 "
603
+ "``key_type``。"
604
+
584
605
#: ../../api/jws.rst:6
585
606
msgid ""
586
607
"This part of the documentation covers all the interfaces of "
0 commit comments