-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkms-components.yml
More file actions
838 lines (795 loc) · 26.1 KB
/
Copy pathkms-components.yml
File metadata and controls
838 lines (795 loc) · 26.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
openapi: 3.0.4
info:
title: KMS API Components
version: 0.1.0
description: Entity schemas, enums, and path parameters for the KMS REST Server API.
paths: {}
components:
parameters:
ProviderId:
name: providerId
in: path
required: true
schema:
type: string
description: >
Identifier of the key provider, as configured server-side (for example
`testsoftware` for the bundled software provider, or a UUID such as
`4895d0cf-2061-41cb-8fd4-13af5724569e` for a generated id).
style: simple
example: "testsoftware"
AliasOrKid:
name: aliasOrKid
in: path
required: true
schema:
type: string
description: >
Either a key alias (a human-chosen name, for example
`my-signing-key`) or a key id / kid (for example
`00-qTBov6GxjPSuMNxnk876cMP0JKjbwl4ZyN_sY2tE`). The KMS tries to match by either.
style: simple
example: "my-signing-key"
ResolverId:
name: resolverId
in: path
required: true
schema:
type: string
description: >
Identifier of the key resolver, as configured server-side. The default
deployment exposes `jose_cose_resolver`.
style: simple
example: "jose_cose_resolver"
schemas:
AwsAssumeRoleCredentials:
description: Credentials obtained by assuming an IAM role.
type: object
required:
- roleArn
- roleSessionName
properties:
roleArn:
type: string
description: The Amazon Resource Name (ARN) of the role to assume.
example: "arn:aws:iam::123456789012:role/MyKmsAccessRole"
roleSessionName:
type: string
description: An identifier for the assumed role session. Use characters compatible with file systems.
example: "kms-rest-session"
externalId:
type: string
description: An optional external ID that might be required by the role's trust policy.
example: "unique-external-id-123"
lookupMode:
$ref: '#/components/schemas/LookupMode'
AwsClientConfiguration:
description: Optional advanced AWS SDK client settings.
type: object
properties:
connectionTimeoutInMillis:
type: integer
format: int32
description: Amount of time (in milliseconds) to wait when initially establishing a connection before giving up.
example: 2000
socketTimeoutInMillis:
type: integer
format: int32
description: Amount of time (in milliseconds) to wait for data to be transferred over an established, open connection before timing out.
example: 5000
AwsKmsSetting:
description: >-
Configuration settings specific to the AWS_KMS provider type.
Defines how to connect and authenticate to AWS KMS.
If no specific credential provider is specified,
the implementation should rely on the default AWS SDK credential provider chain.
type: object
required:
- region
properties:
region:
type: string
description: The AWS region where the KMS keys reside (e.g., 'us-east-1', 'eu-west-1').
example: "eu-west-1"
staticCredentials:
$ref: '#/components/schemas/AwsStaticCredentials'
assumeRoleCredentials:
$ref: '#/components/schemas/AwsAssumeRoleCredentials'
webIdentityTokenCredentials:
$ref: '#/components/schemas/AwsWebIdentityTokenCredentials'
endpointUrl:
type: string
format: uri
description: Optional custom endpoint URL for AWS KMS (e.g., for VPC endpoints or local testing).
example: "https://kms.eu-west-1.amazonaws.com"
clientConfiguration:
$ref: '#/components/schemas/AwsClientConfiguration'
AwsStaticCredentials:
description: Explicit AWS access key ID and secret access key. Use with caution; prefer IAM roles or other mechanisms where possible.
type: object
required:
- accesskid
- secretAccessKey
properties:
accesskid:
type: string
description: AWS Access Key ID.
example: "AKIAIOSFODNN7EXAMPLE"
secretAccessKey:
type: string
format: password
description: AWS Secret Access Key.
example: "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
writeOnly: true
sessionToken:
type: string
format: password
description: Optional AWS session token, typically used with temporary credentials.
example: "AQoDYXdzEPT//////////wEXAMPLEtcAQ..."
writeOnly: true
lookupMode:
$ref: '#/components/schemas/LookupMode'
AwsWebIdentityTokenCredentials:
description: Credentials obtained using a web identity token (e.g., from Cognito, OIDC provider).
type: object
required:
- roleArn
- roleSessionName
- webIdentityToken
properties:
roleArn:
type: string
description: The Amazon Resource Name (ARN) of the role to assume.
example: "arn:aws:iam::123456789012:role/MyKmsWebRole"
roleSessionName:
type: string
description: An identifier for the assumed role session.
example: "kms-web-session"
webIdentityToken:
type: string
format: password
description: The web identity token (e.g., OIDC token, Cognito token) itself.
example: "eyJhbGciOiJSUzI1NiIsImtpZCI6Ims..."
writeOnly: true
lookupMode:
$ref: '#/components/schemas/LookupMode'
AzureClientSecretCredentialOpts:
description: Azure Service Principal credentials using a client secret.
type: object
required:
- clientId
- clientSecret
properties:
clientId:
type: string
description: The Application (client) ID of the Azure service principal.
example: "cfa45c7f-1212-7a59-ac45-aa82acec4364343"
clientSecret:
type: string
format: password
description: The client secret for the service principal.
example: "your-azure-client-secret"
writeOnly: true
lookupMode:
$ref: '#/components/schemas/LookupMode'
AzureCredentialOpts:
description: Azure credential options for authenticating to Key Vault. Currently assumes Service Principal with Client Secret.
type: object
properties:
clientSecretCredentialOpts:
$ref: '#/components/schemas/AzureClientSecretCredentialOpts'
AzureKeyVaultSetting:
description: Configuration settings specific to the Azure KeyVault provider type.
type: object
required:
- keyvaultUrl
- tenantId
- credentialOpts
properties:
keyvaultUrl:
type: string
format: uri
description: The URL of the Azure Key Vault or Managed HSM instance.
example: 'https://example-vault.vault.azure.net/'
tenantId:
type: string
description: The Azure Active Directory tenant (directory) ID.
example: "a3b42c5a-5512-4379-bc27-4682acec459a"
credentialOpts:
$ref: '#/components/schemas/AzureCredentialOpts'
applicationId:
type: string
description: An optional identifier for your application using the Key Vault.
example: "my-kms-rest-app"
lookupMode:
$ref: '#/components/schemas/LookupMode'
CoseKeyPair:
type: object
description: Represents a cryptographic key pair for COSE (CBOR Object Signing and Encryption) operations.
required:
- publicCoseKey
properties:
privateCoseKey:
$ref: '#/components/schemas/CoseKey'
publicCoseKey:
$ref: '#/components/schemas/CoseKey'
CryptoAlg:
type: string
description: Cryptographic algorithm type.
enum:
- RSA
- SHA256_WITH_RSA
- ECDSA
- X25519
- X448
- ED25519
- ED448
- HMAC
example: ECDSA
Curve:
type: string
description: Elliptic curve identifier.
enum:
- P-256
- P-384
- P-521
- secp256k1
- Ed25519
- Ed448
- X25519
- X448
example: P-256
DigestAlg:
type: string
description: Cryptographic digest (hash) algorithm identifier.
enum:
- NONE
- SHA256
- SHA384
- SHA512
- SHA3_256
- SHA3_384
- SHA3_512
example: SHA256
JoseKeyPair:
type: object
description: A cryptographic key pair used with JOSE (JSON Object Signing and Encryption).
required:
- publicJwk
properties:
privateJwk:
$ref: '#/components/schemas/Jwk'
publicJwk:
$ref: '#/components/schemas/Jwk'
JwkUse:
type: string
description: Intended use of the key (signing or encryption).
enum:
- sig
- enc
example: sig
JwkKeyType:
type: string
description: JSON Web Key (JWK) key type parameter identifying the cryptographic algorithm family.
enum:
- EC
- RSA
- OKP
- oct
example: EC
Jwk:
type: object
description: A JSON Web Key (JWK) as defined by RFC 7517.
example:
kty: "EC"
kid: "00-qTBov6GxjPSuMNxnk876cMP0JKjbwl4ZyN_sY2tE"
alg: "ES256"
use: "sig"
key_ops: [ "sign", "verify" ]
crv: "P-256"
x: "HFL67WWh6PYWKOy1mzt9Y2ANs-CWFIyVtouR-Jx_mAM"
y: "9f_1x7fwUuEbEwxSNTYE3jQF-zForWpKkEMpiUp1MNI"
required:
- kty
properties:
kty:
$ref: '#/components/schemas/JwkKeyType'
kid:
type: string
description: Key identifier used to uniquely identify the key.
example: "00-qTBov6GxjPSuMNxnk876cMP0JKjbwl4ZyN_sY2tE"
alg:
type: string
description: The algorithm intended for use with the key (JWA algorithm name).
example: "ES256"
use:
$ref: '#/components/schemas/JwkUse'
key_ops:
type: array
items:
$ref: '#/components/schemas/KeyOperations'
description: The allowed cryptographic operations for the key.
crv:
$ref: '#/components/schemas/Curve'
x:
type: string
description: The x coordinate for elliptic curve keys (base64url-encoded).
example: "HFL67WWh6PYWKOy1mzt9Y2ANs-CWFIyVtouR-Jx_mAM"
y:
type: string
description: The y coordinate for elliptic curve keys (base64url-encoded).
example: "9f_1x7fwUuEbEwxSNTYE3jQF-zForWpKkEMpiUp1MNI"
d:
type: string
format: password
description: The private key parameter (base64url-encoded). Present only for private keys.
writeOnly: true
example: "P_4YEyuDj4aA4IVYVku4dm3BoDReFTKVsBwb1utoWCQ"
n:
type: string
description: The modulus value for RSA keys (base64url-encoded).
e:
type: string
description: The public exponent for RSA keys (base64url-encoded).
example: "AQAB"
p:
type: string
format: password
description: The first prime factor for RSA private keys (base64url-encoded).
writeOnly: true
q:
type: string
format: password
description: The second prime factor for RSA private keys (base64url-encoded).
writeOnly: true
dp:
type: string
format: password
description: The first factor CRT exponent for RSA private keys (base64url-encoded).
writeOnly: true
dq:
type: string
format: password
description: The second factor CRT exponent for RSA private keys (base64url-encoded).
writeOnly: true
qi:
type: string
format: password
description: The first CRT coefficient for RSA private keys (base64url-encoded).
writeOnly: true
k:
type: string
format: password
description: The symmetric key value (base64url-encoded).
writeOnly: true
x5c:
type: array
items:
type: string
description: X.509 certificate chain as base64-encoded DER certificates.
x5t:
type: string
description: X.509 certificate SHA-1 thumbprint (base64url-encoded).
x5u:
type: string
format: uri
description: URL pointing to X.509 certificate or certificate chain.
x5t#S256:
type: string
description: X.509 certificate SHA-256 thumbprint (base64url-encoded).
CoseKeyType:
type: integer
description: COSE key type parameter. 1=OKP (Octet Key Pair), 2=EC2 (Elliptic Curve), 3=RSA, 4=Symmetric.
enum:
- 1
- 2
- 3
- 4
example: 2
CoseKey:
type: object
description: Represents a COSE (CBOR Object Signing and Encryption) key in JSON format.
required:
- kty
properties:
kty:
$ref: '#/components/schemas/CoseKeyType'
kid:
type: string
description: Key identifier (base64url-encoded byte string).
example: "key-12345"
alg:
type: integer
description: The COSE algorithm identifier (e.g., -7=ES256, -35=ES384, -36=ES512, -8=EdDSA).
example: -7
key_ops:
type: array
items:
type: integer
description: The allowed COSE key operations (1=sign, 2=verify, 3=encrypt, 4=decrypt, etc.).
baseIV:
type: string
description: Base initialization vector (base64url-encoded).
crv:
type: integer
description: The COSE curve identifier (1=P-256, 2=P-384, 3=P-521, 8=secp256k1, 6=Ed25519, etc.).
example: 1
x:
type: string
description: The x coordinate (base64url-encoded byte string).
y:
type: string
description: The y coordinate (base64url-encoded byte string).
d:
type: string
format: password
description: The private key parameter (base64url-encoded byte string).
writeOnly: true
x5chain:
type: array
items:
type: string
description: X.509 certificate chain as base64-encoded certificates.
KeyInfo:
type: object
description: Metadata and configuration for a cryptographic key, used to address it in cryptographic operations.
example:
kid: "00-qTBov6GxjPSuMNxnk876cMP0JKjbwl4ZyN_sY2tE"
alias: "my-signing-key"
providerId: "testsoftware"
signatureAlgorithm: "ECDSA_SHA256"
keyVisibility: "PUBLIC"
keyEncoding: "JOSE"
keyType: "EC"
properties:
kid:
type: string
description: Unique identifier (kid) for the cryptographic key. May be null when the key is addressed by alias only.
example: "00-qTBov6GxjPSuMNxnk876cMP0JKjbwl4ZyN_sY2tE"
key:
$ref: '#/components/schemas/Jwk'
signatureAlgorithm:
$ref: '#/components/schemas/SignatureAlgorithm'
keyVisibility:
$ref: '#/components/schemas/KeyVisibility'
x5c:
type: array
items:
type: string
description: X.509 certificate chain associated with the key.
alias:
type: string
description: A reference or alias to the key in the Key Management Service (KMS).
example: "my-signing-key"
providerId:
type: string
description: The identifier of the provider that holds the key.
example: "testsoftware"
keyType:
$ref: '#/components/schemas/KeyType'
keyEncoding:
$ref: '#/components/schemas/KeyEncoding'
opts:
type: object
description: Additional configuration options as key-value pairs.
additionalProperties:
type: string
ResolvedKeyInfo:
type: object
description: A resolved key whose `key` material is guaranteed to be present.
example:
key:
kty: "EC"
kid: "00-qTBov6GxjPSuMNxnk876cMP0JKjbwl4ZyN_sY2tE"
alg: "ES256"
use: "sig"
key_ops: [ "sign", "verify" ]
crv: "P-256"
x: "HFL67WWh6PYWKOy1mzt9Y2ANs-CWFIyVtouR-Jx_mAM"
y: "9f_1x7fwUuEbEwxSNTYE3jQF-zForWpKkEMpiUp1MNI"
kid: "00-qTBov6GxjPSuMNxnk876cMP0JKjbwl4ZyN_sY2tE"
alias: "my-signing-key"
providerId: "testsoftware"
signatureAlgorithm: "ECDSA_SHA256"
keyVisibility: "PUBLIC"
keyEncoding: "JOSE"
keyType: "EC"
allOf:
- $ref: '#/components/schemas/KeyInfo'
required:
- key
ManagedKeyInfo:
type: object
description: A resolved key managed by the KMS; `alias` and `providerId` are always present.
example:
key:
kty: "EC"
kid: "00-qTBov6GxjPSuMNxnk876cMP0JKjbwl4ZyN_sY2tE"
alg: "ES256"
use: "sig"
crv: "P-256"
x: "HFL67WWh6PYWKOy1mzt9Y2ANs-CWFIyVtouR-Jx_mAM"
y: "9f_1x7fwUuEbEwxSNTYE3jQF-zForWpKkEMpiUp1MNI"
kid: "00-qTBov6GxjPSuMNxnk876cMP0JKjbwl4ZyN_sY2tE"
alias: "my-signing-key"
providerId: "testsoftware"
signatureAlgorithm: "ECDSA_SHA256"
keyVisibility: "PUBLIC"
keyEncoding: "JOSE"
keyType: "EC"
allOf:
- $ref: '#/components/schemas/ResolvedKeyInfo'
required:
- alias
- providerId
KeyProviderType:
type: string
description: >-
The type of Key Provider. Determines the required configuration settings.
- AZURE_KEYVAULT: Microsoft Azure Key Vault or Managed HSM.
- AWS_KMS: Amazon Web Services Key Management Service.
enum:
- SOFTWARE
- AZURE_KEYVAULT
- AWS_KMS
example: AZURE_KEYVAULT
KeyOperations:
type: string
description: Specific operations the key is intended for.
enum:
- sign
- verify
- encrypt
- decrypt
- wrapKey
- unwrapKey
- deriveKey
- deriveBits
example: sign
KeyProvider:
description: Response body containing the details of a Key Provider instance.
type: object
required:
- providerId
- type
properties:
providerId:
type: string
description: The identifier of the Key Provider instance (configured server-side).
example: "testsoftware"
type:
$ref: '#/components/schemas/KeyProviderType'
# capabilities:
# $ref: '#/components/schemas/ProviderCapabilities'
# azureKeyvaultSettings:
# $ref: '#/components/schemas/AzureKeyVaultSetting'
# awsKmsSettings:
# $ref: '#/components/schemas/AwsKmsSetting'
# cacheEnabled:
# type: boolean
# description: Whether caching is enabled for this provider.
# cacheTTLInSeconds:
# type: integer
# format: int32
# description: Time-to-live for cached keys in seconds.
KeyType:
type: string
description: Cryptographic key type identifier.
enum:
- OKP
- EC
- RSA
- OCT
example: EC
KeyVisibility:
type: string
description: Indicates the visibility status of a cryptographic key.
enum:
- PUBLIC
- PRIVATE
example: PUBLIC
default: PUBLIC
KeyEncoding:
type: string
description: The encoding format of the cryptographic key.
enum:
- COSE
- JOSE
example: JOSE
LookupMode:
type: string
description: >-
Determines how configuration values are looked up.
- VALUE: The actual configuration values are provided directly.
- CONFIG_SERVICE: Configuration values are looked up from a configuration service using keys.
- SECRET_SERVICE: Configuration values are looked up from a secret service using keys.
enum:
- VALUE
- CONFIG_SERVICE
- SECRET_SERVICE
example: VALUE
ManagedKeyPair:
type: object
description: A key pair held by a crypto provider, carrying both JOSE and COSE key pairs.
example:
kid: "00-qTBov6GxjPSuMNxnk876cMP0JKjbwl4ZyN_sY2tE"
providerId: "testsoftware"
alias: "my-signing-key"
jose:
publicJwk:
kty: "EC"
kid: "00-qTBov6GxjPSuMNxnk876cMP0JKjbwl4ZyN_sY2tE"
alg: "ES256"
use: "sig"
crv: "P-256"
x: "HFL67WWh6PYWKOy1mzt9Y2ANs-CWFIyVtouR-Jx_mAM"
y: "9f_1x7fwUuEbEwxSNTYE3jQF-zForWpKkEMpiUp1MNI"
cose:
publicCoseKey:
kty: 2
crv: 1
alg: -7
x: "HFL67WWh6PYWKOy1mzt9Y2ANs-CWFIyVtouR-Jx_mAM"
y: "9f_1x7fwUuEbEwxSNTYE3jQF-zForWpKkEMpiUp1MNI"
required:
- providerId
- alias
- cose
- jose
properties:
kid:
type: string
description: Key identifier (kid), may be null.
example: "00-qTBov6GxjPSuMNxnk876cMP0JKjbwl4ZyN_sY2tE"
providerId:
type: string
description: Identifier of the provider that holds the key.
example: "testsoftware"
alias:
type: string
description: The alias the key is stored under in the provider.
example: "my-signing-key"
cose:
$ref: '#/components/schemas/CoseKeyPair'
jose:
$ref: '#/components/schemas/JoseKeyPair'
MaskGenFunction:
type: string
description: Mask generation function algorithm.
enum:
- MGF1
example: MGF1
ProviderCapabilities:
type: object
description: A provider's supported cryptographic capabilities.
properties:
keyTypes:
type: array
description: List of key types supported by this provider.
items:
$ref: '#/components/schemas/KeyType'
signatureAlgorithms:
type: array
description: List of signature algorithms supported by this provider.
items:
$ref: '#/components/schemas/SignatureAlgorithm'
digests:
type: array
description: List of digest algorithms supported by this provider.
items:
$ref: '#/components/schemas/DigestAlg'
curves:
type: array
description: List of elliptic curves supported by this provider.
items:
$ref: '#/components/schemas/Curve'
keyOperations:
type: array
description: List of key operations supported by this provider.
items:
$ref: '#/components/schemas/KeyOperations'
Signature:
type: object
description: A cryptographic signature including the signature value and related information.
required:
- value
- algorithm
properties:
value:
type: string
format: byte
description: The signature value, encoded as a base64 string.
algorithm:
$ref: '#/components/schemas/SignatureAlgorithm'
keyInfo:
$ref: '#/components/schemas/KeyInfo'
metadata:
type: object
description: Additional metadata included in the signature.
additionalProperties: true
SignatureAlgorithm:
type: string
description: Cryptographic signature algorithm identifier.
enum:
- ED25519
- ECDSA_SHA256
- ECDSA_SHA384
- ECDSA_SHA512
- ES256K
- ECKA_DH_SHA256
- HMAC_SHA256
- HMAC_SHA384
- HMAC_SHA512
- RSA_SHA256
- RSA_SHA384
- RSA_SHA512
- RSA_SSA_PSS_SHA256_MGF1
- RSA_SSA_PSS_SHA384_MGF1
- RSA_SSA_PSS_SHA512_MGF1
example: ECDSA_SHA256
SignInput:
type: object
description: The input data and metadata required for creating a signature.
required:
- data
properties:
data:
type: string
format: byte
description: The data to be signed, encoded as a base64 string.
mode:
type: string
description: The signing mode to be used.
enum: [ DETACHED, ATTACHED ]
default: DETACHED
metadata:
type: object
description: Additional metadata to be included in the signature.
additionalProperties: true
SignOutput:
type: object
description: The output of a signature creation operation.
required:
- signature
properties:
signature:
$ref: '#/components/schemas/Signature'
metadata:
type: object
description: Additional metadata included in the signature output.
additionalProperties: true
Resolver:
type: object
description: Represents a key resolver configuration.
required:
- resolverId
properties:
resolverId:
type: string
description: Unique identifier for the resolver.
example: "4895d0cf-2061-41cb-8fd4-13af5724569e"
supportedIdentifierMethods:
type: array
items:
$ref: '#/components/schemas/IdentifierMethod'
description: List of identifier methods supported by this resolver.
supportedKeyTypes:
type: array
items:
$ref: '#/components/schemas/KeyType'
description: List of key types supported by this resolver.
KeyResolver:
type: object
description: Represents a key resolver instance with detailed configuration.
allOf:
- $ref: '#/components/schemas/Resolver'
IdentifierMethod:
type: string
description: Method used to identify cryptographic keys.
enum:
- JWK
- KID
- COSE_KEY
- X5C
- DID
example: JWK