@@ -47,6 +47,11 @@ is supported.</li>
47
47
<dd ><p >An extension interface that provides helper functions for publication
48
48
and resolution of DID documents in Alias Outputs.</p >
49
49
</dd >
50
+ <dt ><a href =" #Jwk " >Jwk</a ></dt >
51
+ <dd ></dd >
52
+ <dt ><a href =" #JwkGenOutput " >JwkGenOutput</a ></dt >
53
+ <dd ><p >The result of a key generation in <code >JwkStorage</code >.</p >
54
+ </dd >
50
55
<dt ><a href =" #KeyPair " >KeyPair</a ></dt >
51
56
<dd ></dd >
52
57
<dt ><a href =" #LinkedDomainService " >LinkedDomainService</a ></dt >
@@ -109,8 +114,6 @@ See <code>IVerifierOptions</code>.</p>
109
114
## Members
110
115
111
116
<dl >
112
- <dt ><a href =" #MethodRelationship " >MethodRelationship</a ></dt >
113
- <dd ></dd >
114
117
<dt ><a href =" #StatusCheck " >StatusCheck</a ></dt >
115
118
<dd ><p >Controls validation behaviour when checking whether or not a credential has been revoked by its
116
119
<a href =" https://www.w3.org/TR/vc-data-model/#status " ><code >credentialStatus</code ></a >.</p >
@@ -157,6 +160,8 @@ This variant is the default used if no other variant is specified when construct
157
160
<dd ></dd >
158
161
<dt ><a href =" #KeyType " >KeyType</a ></dt >
159
162
<dd ></dd >
163
+ <dt ><a href =" #MethodRelationship " >MethodRelationship</a ></dt >
164
+ <dd ></dd >
160
165
</dl >
161
166
162
167
## Functions
@@ -2464,6 +2469,221 @@ Fetches the `IAliasOutput` associated with the given DID.
2464
2469
| client | <code >IIotaIdentityClient</code > |
2465
2470
| did | [ <code >IotaDID</code >] ( #IotaDID ) |
2466
2471
2472
+ <a name =" Jwk " ></a >
2473
+
2474
+ ## Jwk
2475
+ ** Kind** : global class
2476
+
2477
+ * [ Jwk] ( #Jwk )
2478
+ * [ new Jwk(jwk)] ( #new_Jwk_new )
2479
+ * _ instance_
2480
+ * [ .kty()] ( #Jwk+kty ) ⇒ <code >JwkType</code >
2481
+ * [ .use()] ( #Jwk+use ) ⇒ <code >JwkUse</code > \| <code >undefined</code >
2482
+ * [ .keyOps()] ( #Jwk+keyOps ) ⇒ <code >Array.< ; JwkOperation> ; </code >
2483
+ * [ .alg()] ( #Jwk+alg ) ⇒ <code >JwsAlgorithm</code > \| <code >undefined</code >
2484
+ * [ .kid()] ( #Jwk+kid ) ⇒ <code >string</code > \| <code >undefined</code >
2485
+ * [ .x5u()] ( #Jwk+x5u ) ⇒ <code >string</code > \| <code >undefined</code >
2486
+ * [ .x5c()] ( #Jwk+x5c ) ⇒ <code >Array.< ; string> ; </code >
2487
+ * [ .x5t()] ( #Jwk+x5t ) ⇒ <code >string</code > \| <code >undefined</code >
2488
+ * [ .x5t256()] ( #Jwk+x5t256 ) ⇒ <code >string</code > \| <code >undefined</code >
2489
+ * [ .paramsEc()] ( #Jwk+paramsEc ) ⇒ <code >JwkParamsEc</code > \| <code >undefined</code >
2490
+ * [ .paramsOkp()] ( #Jwk+paramsOkp ) ⇒ <code >JwkParamsOkp</code > \| <code >undefined</code >
2491
+ * [ .paramsOct()] ( #Jwk+paramsOct ) ⇒ <code >JwkParamsOct</code > \| <code >undefined</code >
2492
+ * [ .paramsRsa()] ( #Jwk+paramsRsa ) ⇒ <code >JwkParamsRsa</code > \| <code >undefined</code >
2493
+ * [ .toPublic()] ( #Jwk+toPublic ) ⇒ [ <code >Jwk</code >] ( #Jwk )
2494
+ * [ .isPublic()] ( #Jwk+isPublic ) ⇒ <code >boolean</code >
2495
+ * [ .isPrivate()] ( #Jwk+isPrivate ) ⇒ <code >boolean</code >
2496
+ * [ .toJSON()] ( #Jwk+toJSON ) ⇒ <code >any</code >
2497
+ * [ .clone()] ( #Jwk+clone ) ⇒ [ <code >Jwk</code >] ( #Jwk )
2498
+ * _ static_
2499
+ * [ .fromJSON(json)] ( #Jwk.fromJSON ) ⇒ [ <code >Jwk</code >] ( #Jwk )
2500
+
2501
+ <a name =" new_Jwk_new " ></a >
2502
+
2503
+ ### new Jwk(jwk)
2504
+
2505
+ | Param | Type |
2506
+ | --- | --- |
2507
+ | jwk | <code >IJwkParams</code > |
2508
+
2509
+ <a name =" Jwk+kty " ></a >
2510
+
2511
+ ### jwk.kty() ⇒ <code >JwkType</code >
2512
+ Returns the value for the key type parameter (kty).
2513
+
2514
+ ** Kind** : instance method of [ <code >Jwk</code >] ( #Jwk )
2515
+ <a name =" Jwk+use " ></a >
2516
+
2517
+ ### jwk.use() ⇒ <code >JwkUse</code > \| <code >undefined</code >
2518
+ Returns the value for the use property (use).
2519
+
2520
+ ** Kind** : instance method of [ <code >Jwk</code >] ( #Jwk )
2521
+ <a name =" Jwk+keyOps " ></a >
2522
+
2523
+ ### jwk.keyOps() ⇒ <code >Array.< ; JwkOperation> ; </code >
2524
+ ** Kind** : instance method of [ <code >Jwk</code >] ( #Jwk )
2525
+ <a name =" Jwk+alg " ></a >
2526
+
2527
+ ### jwk.alg() ⇒ <code >JwsAlgorithm</code > \| <code >undefined</code >
2528
+ Returns the value for the algorithm property (alg).
2529
+
2530
+ ** Kind** : instance method of [ <code >Jwk</code >] ( #Jwk )
2531
+ <a name =" Jwk+kid " ></a >
2532
+
2533
+ ### jwk.kid() ⇒ <code >string</code > \| <code >undefined</code >
2534
+ Returns the value of the key ID property (kid).
2535
+
2536
+ ** Kind** : instance method of [ <code >Jwk</code >] ( #Jwk )
2537
+ <a name =" Jwk+x5u " ></a >
2538
+
2539
+ ### jwk.x5u() ⇒ <code >string</code > \| <code >undefined</code >
2540
+ Returns the value of the X.509 URL property (x5u).
2541
+
2542
+ ** Kind** : instance method of [ <code >Jwk</code >] ( #Jwk )
2543
+ <a name =" Jwk+x5c " ></a >
2544
+
2545
+ ### jwk.x5c() ⇒ <code >Array.< ; string> ; </code >
2546
+ Returns the value of the X.509 certificate chain property (x5c).
2547
+
2548
+ ** Kind** : instance method of [ <code >Jwk</code >] ( #Jwk )
2549
+ <a name =" Jwk+x5t " ></a >
2550
+
2551
+ ### jwk.x5t() ⇒ <code >string</code > \| <code >undefined</code >
2552
+ Returns the value of the X.509 certificate SHA-1 thumbprint property (x5t).
2553
+
2554
+ ** Kind** : instance method of [ <code >Jwk</code >] ( #Jwk )
2555
+ <a name =" Jwk+x5t256 " ></a >
2556
+
2557
+ ### jwk.x5t256() ⇒ <code >string</code > \| <code >undefined</code >
2558
+ Returns the value of the X.509 certificate SHA-256 thumbprint property (x5t#S256).
2559
+
2560
+ ** Kind** : instance method of [ <code >Jwk</code >] ( #Jwk )
2561
+ <a name =" Jwk+paramsEc " ></a >
2562
+
2563
+ ### jwk.paramsEc() ⇒ <code >JwkParamsEc</code > \| <code >undefined</code >
2564
+ If this JWK is of kty EC, returns those parameters.
2565
+
2566
+ ** Kind** : instance method of [ <code >Jwk</code >] ( #Jwk )
2567
+ <a name =" Jwk+paramsOkp " ></a >
2568
+
2569
+ ### jwk.paramsOkp() ⇒ <code >JwkParamsOkp</code > \| <code >undefined</code >
2570
+ If this JWK is of kty OKP, returns those parameters.
2571
+
2572
+ ** Kind** : instance method of [ <code >Jwk</code >] ( #Jwk )
2573
+ <a name =" Jwk+paramsOct " ></a >
2574
+
2575
+ ### jwk.paramsOct() ⇒ <code >JwkParamsOct</code > \| <code >undefined</code >
2576
+ If this JWK is of kty OCT, returns those parameters.
2577
+
2578
+ ** Kind** : instance method of [ <code >Jwk</code >] ( #Jwk )
2579
+ <a name =" Jwk+paramsRsa " ></a >
2580
+
2581
+ ### jwk.paramsRsa() ⇒ <code >JwkParamsRsa</code > \| <code >undefined</code >
2582
+ If this JWK is of kty RSA, returns those parameters.
2583
+
2584
+ ** Kind** : instance method of [ <code >Jwk</code >] ( #Jwk )
2585
+ <a name =" Jwk+toPublic " ></a >
2586
+
2587
+ ### jwk.toPublic() ⇒ [ <code >Jwk</code >] ( #Jwk )
2588
+ Returns a clone of the Jwk with _ all_ private key components unset.
2589
+
2590
+ ** Kind** : instance method of [ <code >Jwk</code >] ( #Jwk )
2591
+ <a name =" Jwk+isPublic " ></a >
2592
+
2593
+ ### jwk.isPublic() ⇒ <code >boolean</code >
2594
+ Returns ` true ` if _ all_ private key components of the key are unset, ` false ` otherwise.
2595
+
2596
+ ** Kind** : instance method of [ <code >Jwk</code >] ( #Jwk )
2597
+ <a name =" Jwk+isPrivate " ></a >
2598
+
2599
+ ### jwk.isPrivate() ⇒ <code >boolean</code >
2600
+ Returns ` true ` if _ all_ private key components of the key are set, ` false ` otherwise.
2601
+
2602
+ ** Kind** : instance method of [ <code >Jwk</code >] ( #Jwk )
2603
+ <a name =" Jwk+toJSON " ></a >
2604
+
2605
+ ### jwk.toJSON() ⇒ <code >any</code >
2606
+ Serializes this to a JSON object.
2607
+
2608
+ ** Kind** : instance method of [ <code >Jwk</code >] ( #Jwk )
2609
+ <a name =" Jwk+clone " ></a >
2610
+
2611
+ ### jwk.clone() ⇒ [ <code >Jwk</code >] ( #Jwk )
2612
+ Deep clones the object.
2613
+
2614
+ ** Kind** : instance method of [ <code >Jwk</code >] ( #Jwk )
2615
+ <a name =" Jwk.fromJSON " ></a >
2616
+
2617
+ ### Jwk.fromJSON(json) ⇒ [ <code >Jwk</code >] ( #Jwk )
2618
+ Deserializes an instance from a JSON object.
2619
+
2620
+ ** Kind** : static method of [ <code >Jwk</code >] ( #Jwk )
2621
+
2622
+ | Param | Type |
2623
+ | --- | --- |
2624
+ | json | <code >any</code > |
2625
+
2626
+ <a name =" JwkGenOutput " ></a >
2627
+
2628
+ ## JwkGenOutput
2629
+ The result of a key generation in ` JwkStorage ` .
2630
+
2631
+ ** Kind** : global class
2632
+
2633
+ * [ JwkGenOutput] ( #JwkGenOutput )
2634
+ * [ new JwkGenOutput(key_id, jwk)] ( #new_JwkGenOutput_new )
2635
+ * _ instance_
2636
+ * [ .jwk()] ( #JwkGenOutput+jwk ) ⇒ [ <code >Jwk</code >] ( #Jwk )
2637
+ * [ .keyId()] ( #JwkGenOutput+keyId ) ⇒ <code >string</code >
2638
+ * [ .toJSON()] ( #JwkGenOutput+toJSON ) ⇒ <code >any</code >
2639
+ * [ .clone()] ( #JwkGenOutput+clone ) ⇒ [ <code >JwkGenOutput</code >] ( #JwkGenOutput )
2640
+ * _ static_
2641
+ * [ .fromJSON(json)] ( #JwkGenOutput.fromJSON ) ⇒ [ <code >JwkGenOutput</code >] ( #JwkGenOutput )
2642
+
2643
+ <a name =" new_JwkGenOutput_new " ></a >
2644
+
2645
+ ### new JwkGenOutput(key_id, jwk)
2646
+
2647
+ | Param | Type |
2648
+ | --- | --- |
2649
+ | key_id | <code >string</code > |
2650
+ | jwk | [ <code >Jwk</code >] ( #Jwk ) |
2651
+
2652
+ <a name =" JwkGenOutput+jwk " ></a >
2653
+
2654
+ ### jwkGenOutput.jwk() ⇒ [ <code >Jwk</code >] ( #Jwk )
2655
+ Returns the generated public JWK.
2656
+
2657
+ ** Kind** : instance method of [ <code >JwkGenOutput</code >] ( #JwkGenOutput )
2658
+ <a name =" JwkGenOutput+keyId " ></a >
2659
+
2660
+ ### jwkGenOutput.keyId() ⇒ <code >string</code >
2661
+ Returns the key id of the generated jwk.
2662
+
2663
+ ** Kind** : instance method of [ <code >JwkGenOutput</code >] ( #JwkGenOutput )
2664
+ <a name =" JwkGenOutput+toJSON " ></a >
2665
+
2666
+ ### jwkGenOutput.toJSON() ⇒ <code >any</code >
2667
+ Serializes this to a JSON object.
2668
+
2669
+ ** Kind** : instance method of [ <code >JwkGenOutput</code >] ( #JwkGenOutput )
2670
+ <a name =" JwkGenOutput+clone " ></a >
2671
+
2672
+ ### jwkGenOutput.clone() ⇒ [ <code >JwkGenOutput</code >] ( #JwkGenOutput )
2673
+ Deep clones the object.
2674
+
2675
+ ** Kind** : instance method of [ <code >JwkGenOutput</code >] ( #JwkGenOutput )
2676
+ <a name =" JwkGenOutput.fromJSON " ></a >
2677
+
2678
+ ### JwkGenOutput.fromJSON(json) ⇒ [ <code >JwkGenOutput</code >] ( #JwkGenOutput )
2679
+ Deserializes an instance from a JSON object.
2680
+
2681
+ ** Kind** : static method of [ <code >JwkGenOutput</code >] ( #JwkGenOutput )
2682
+
2683
+ | Param | Type |
2684
+ | --- | --- |
2685
+ | json | <code >any</code > |
2686
+
2467
2687
<a name =" KeyPair " ></a >
2468
2688
2469
2689
## KeyPair
@@ -3949,10 +4169,6 @@ This is possible because Ed25519 is birationally equivalent to Curve25519 used b
3949
4169
| --- | --- |
3950
4170
| publicKey | <code >Uint8Array</code > |
3951
4171
3952
- <a name =" MethodRelationship " ></a >
3953
-
3954
- ## MethodRelationship
3955
- ** Kind** : global variable
3956
4172
<a name =" StatusCheck " ></a >
3957
4173
3958
4174
## StatusCheck
@@ -4039,6 +4255,10 @@ Return after the first error occurs.
4039
4255
4040
4256
## KeyType
4041
4257
** Kind** : global variable
4258
+ <a name =" MethodRelationship " ></a >
4259
+
4260
+ ## MethodRelationship
4261
+ ** Kind** : global variable
4042
4262
<a name =" start " ></a >
4043
4263
4044
4264
## start()
0 commit comments