@sphereon/ssi-sdk.kms-rest-client 0.34.1-feature.IDK.11.48 → 0.34.1-feature.IDK.11.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +169 -288
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +169 -288
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/plugin.schema.json +38 -157
- package/src/agent/KmsRestClient.ts +16 -17
- package/src/models/AwsAssumeRoleCredentials.ts +49 -57
- package/src/models/AwsClientConfiguration.ts +29 -32
- package/src/models/AwsKmsSetting.ts +71 -85
- package/src/models/AwsStaticCredentials.ts +49 -57
- package/src/models/AwsWebIdentityTokenCredentials.ts +50 -58
- package/src/models/AzureClientSecretCredentialOpts.ts +45 -50
- package/src/models/AzureCredentialOpts.ts +24 -29
- package/src/models/AzureKeyVaultSetting.ts +60 -71
- package/src/models/CoseKey.ts +96 -104
- package/src/models/CoseKeyPair.ts +32 -38
- package/src/models/CoseKeyType.ts +18 -21
- package/src/models/CreateKeyProvider.ts +60 -74
- package/src/models/CreateRawSignature.ts +33 -39
- package/src/models/CreateRawSignatureResponse.ts +22 -25
- package/src/models/CreateSimpleSignature.ts +45 -59
- package/src/models/CryptoAlg.ts +18 -21
- package/src/models/Curve.ts +22 -25
- package/src/models/DigestAlg.ts +21 -24
- package/src/models/ErrorResponse.ts +39 -42
- package/src/models/GenerateKey.ts +51 -65
- package/src/models/GenerateKeyGlobal.ts +59 -73
- package/src/models/GenerateKeyResponse.ts +24 -30
- package/src/models/GetKeyResponse.ts +24 -30
- package/src/models/IdentifierMethod.ts +19 -22
- package/src/models/JoseKeyPair.ts +32 -38
- package/src/models/Jwk.ts +190 -207
- package/src/models/JwkKeyType.ts +18 -21
- package/src/models/JwkUse.ts +16 -19
- package/src/models/KeyEncoding.ts +16 -19
- package/src/models/KeyInfo.ts +103 -123
- package/src/models/KeyOperations.ts +22 -25
- package/src/models/KeyProvider.ts +33 -41
- package/src/models/KeyProviderResponse.ts +33 -41
- package/src/models/KeyProviderType.ts +17 -20
- package/src/models/KeyResolver.ts +44 -51
- package/src/models/KeyType.ts +17 -20
- package/src/models/KeyVisibility.ts +16 -19
- package/src/models/ListKeyProvidersResponse.ts +24 -30
- package/src/models/ListKeysResponse.ts +24 -30
- package/src/models/ListResolversResponse.ts +24 -30
- package/src/models/LookupMode.ts +17 -20
- package/src/models/ManagedKeyInfo.ts +106 -126
- package/src/models/ManagedKeyPair.ts +61 -70
- package/src/models/MaskGenFunction.ts +15 -18
- package/src/models/ProviderCapabilities.ts +65 -81
- package/src/models/ResolvePublicKey.ts +50 -61
- package/src/models/ResolvedKeyInfo.ts +104 -124
- package/src/models/Resolver.ts +44 -51
- package/src/models/SignInput.ts +42 -47
- package/src/models/SignOutput.ts +32 -38
- package/src/models/Signature.ts +51 -62
- package/src/models/SignatureAlgorithm.ts +26 -29
- package/src/models/StoreKey.ts +32 -38
- package/src/models/StoreKeyResponse.ts +24 -30
- package/src/models/UpdateKeyProvider.ts +49 -58
- package/src/models/VerifyRawSignature.ts +42 -48
- package/src/models/VerifyRawSignatureResponse.ts +22 -25
- package/src/models/VerifySimpleSignature.ts +35 -44
- package/src/models/index.ts +58 -58
- package/src/types/IKmsRestClient.ts +2 -2
|
@@ -12,31 +12,16 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import type { KeyType } from './KeyType'
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from './
|
|
20
|
-
import
|
|
21
|
-
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} from './
|
|
25
|
-
import type { Curve } from './Curve';
|
|
26
|
-
import {
|
|
27
|
-
CurveFromJSON,
|
|
28
|
-
CurveToJSON,
|
|
29
|
-
} from './Curve';
|
|
30
|
-
import type { KeyOperations } from './KeyOperations';
|
|
31
|
-
import {
|
|
32
|
-
KeyOperationsFromJSON,
|
|
33
|
-
KeyOperationsToJSON,
|
|
34
|
-
} from './KeyOperations';
|
|
35
|
-
import type { SignatureAlgorithm } from './SignatureAlgorithm';
|
|
36
|
-
import {
|
|
37
|
-
SignatureAlgorithmFromJSON,
|
|
38
|
-
SignatureAlgorithmToJSON,
|
|
39
|
-
} from './SignatureAlgorithm';
|
|
15
|
+
import type { KeyType } from './KeyType'
|
|
16
|
+
import { KeyTypeFromJSON, KeyTypeToJSON } from './KeyType'
|
|
17
|
+
import type { DigestAlg } from './DigestAlg'
|
|
18
|
+
import { DigestAlgFromJSON, DigestAlgToJSON } from './DigestAlg'
|
|
19
|
+
import type { Curve } from './Curve'
|
|
20
|
+
import { CurveFromJSON, CurveToJSON } from './Curve'
|
|
21
|
+
import type { KeyOperations } from './KeyOperations'
|
|
22
|
+
import { KeyOperationsFromJSON, KeyOperationsToJSON } from './KeyOperations'
|
|
23
|
+
import type { SignatureAlgorithm } from './SignatureAlgorithm'
|
|
24
|
+
import { SignatureAlgorithmFromJSON, SignatureAlgorithmToJSON } from './SignatureAlgorithm'
|
|
40
25
|
|
|
41
26
|
/**
|
|
42
27
|
* Comprehensive information about a provider's cryptographic capabilities.
|
|
@@ -44,79 +29,78 @@ import {
|
|
|
44
29
|
* @interface ProviderCapabilities
|
|
45
30
|
*/
|
|
46
31
|
export interface ProviderCapabilities {
|
|
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
|
-
|
|
32
|
+
/**
|
|
33
|
+
* List of key types supported by this provider.
|
|
34
|
+
* @type {Array<KeyType>}
|
|
35
|
+
* @memberof ProviderCapabilities
|
|
36
|
+
*/
|
|
37
|
+
keyTypes?: Array<KeyType>
|
|
38
|
+
/**
|
|
39
|
+
* List of signature algorithms supported by this provider.
|
|
40
|
+
* @type {Array<SignatureAlgorithm>}
|
|
41
|
+
* @memberof ProviderCapabilities
|
|
42
|
+
*/
|
|
43
|
+
signatureAlgorithms?: Array<SignatureAlgorithm>
|
|
44
|
+
/**
|
|
45
|
+
* List of digest algorithms supported by this provider.
|
|
46
|
+
* @type {Array<DigestAlg>}
|
|
47
|
+
* @memberof ProviderCapabilities
|
|
48
|
+
*/
|
|
49
|
+
digests?: Array<DigestAlg>
|
|
50
|
+
/**
|
|
51
|
+
* List of elliptic curves supported by this provider.
|
|
52
|
+
* @type {Array<Curve>}
|
|
53
|
+
* @memberof ProviderCapabilities
|
|
54
|
+
*/
|
|
55
|
+
curves?: Array<Curve>
|
|
56
|
+
/**
|
|
57
|
+
* List of key operations supported by this provider.
|
|
58
|
+
* @type {Array<KeyOperations>}
|
|
59
|
+
* @memberof ProviderCapabilities
|
|
60
|
+
*/
|
|
61
|
+
keyOperations?: Array<KeyOperations>
|
|
77
62
|
}
|
|
78
63
|
|
|
79
64
|
/**
|
|
80
65
|
* Check if a given object implements the ProviderCapabilities interface.
|
|
81
66
|
*/
|
|
82
67
|
export function instanceOfProviderCapabilities(value: object): value is ProviderCapabilities {
|
|
83
|
-
|
|
68
|
+
return true
|
|
84
69
|
}
|
|
85
70
|
|
|
86
71
|
export function ProviderCapabilitiesFromJSON(json: any): ProviderCapabilities {
|
|
87
|
-
|
|
72
|
+
return ProviderCapabilitiesFromJSONTyped(json, false)
|
|
88
73
|
}
|
|
89
74
|
|
|
90
75
|
export function ProviderCapabilitiesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderCapabilities {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
76
|
+
if (json == null) {
|
|
77
|
+
return json
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
keyTypes: json['keyTypes'] == null ? undefined : (json['keyTypes'] as Array<any>).map(KeyTypeFromJSON),
|
|
81
|
+
signatureAlgorithms:
|
|
82
|
+
json['signatureAlgorithms'] == null ? undefined : (json['signatureAlgorithms'] as Array<any>).map(SignatureAlgorithmFromJSON),
|
|
83
|
+
digests: json['digests'] == null ? undefined : (json['digests'] as Array<any>).map(DigestAlgFromJSON),
|
|
84
|
+
curves: json['curves'] == null ? undefined : (json['curves'] as Array<any>).map(CurveFromJSON),
|
|
85
|
+
keyOperations: json['keyOperations'] == null ? undefined : (json['keyOperations'] as Array<any>).map(KeyOperationsFromJSON),
|
|
86
|
+
}
|
|
102
87
|
}
|
|
103
88
|
|
|
104
89
|
export function ProviderCapabilitiesToJSON(json: any): ProviderCapabilities {
|
|
105
|
-
|
|
90
|
+
return ProviderCapabilitiesToJSONTyped(json, false)
|
|
106
91
|
}
|
|
107
92
|
|
|
108
93
|
export function ProviderCapabilitiesToJSONTyped(value?: ProviderCapabilities | null, ignoreDiscriminator: boolean = false): any {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
return {
|
|
94
|
+
if (value == null) {
|
|
95
|
+
return value
|
|
96
|
+
}
|
|
114
97
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
98
|
+
return {
|
|
99
|
+
keyTypes: value['keyTypes'] == null ? undefined : (value['keyTypes'] as Array<any>).map(KeyTypeToJSON),
|
|
100
|
+
signatureAlgorithms:
|
|
101
|
+
value['signatureAlgorithms'] == null ? undefined : (value['signatureAlgorithms'] as Array<any>).map(SignatureAlgorithmToJSON),
|
|
102
|
+
digests: value['digests'] == null ? undefined : (value['digests'] as Array<any>).map(DigestAlgToJSON),
|
|
103
|
+
curves: value['curves'] == null ? undefined : (value['curves'] as Array<any>).map(CurveToJSON),
|
|
104
|
+
keyOperations: value['keyOperations'] == null ? undefined : (value['keyOperations'] as Array<any>).map(KeyOperationsToJSON),
|
|
105
|
+
}
|
|
121
106
|
}
|
|
122
|
-
|
|
@@ -12,16 +12,10 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import type { KeyInfo } from './KeyInfo'
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from './KeyInfo';
|
|
20
|
-
import type { IdentifierMethod } from './IdentifierMethod';
|
|
21
|
-
import {
|
|
22
|
-
IdentifierMethodFromJSON,
|
|
23
|
-
IdentifierMethodToJSON,
|
|
24
|
-
} from './IdentifierMethod';
|
|
15
|
+
import type { KeyInfo } from './KeyInfo'
|
|
16
|
+
import { KeyInfoFromJSON, KeyInfoToJSON } from './KeyInfo'
|
|
17
|
+
import type { IdentifierMethod } from './IdentifierMethod'
|
|
18
|
+
import { IdentifierMethodFromJSON, IdentifierMethodToJSON } from './IdentifierMethod'
|
|
25
19
|
|
|
26
20
|
/**
|
|
27
21
|
* Request body for resolving a public key.
|
|
@@ -29,74 +23,69 @@ import {
|
|
|
29
23
|
* @interface ResolvePublicKey
|
|
30
24
|
*/
|
|
31
25
|
export interface ResolvePublicKey {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {KeyInfo}
|
|
29
|
+
* @memberof ResolvePublicKey
|
|
30
|
+
*/
|
|
31
|
+
keyInfo: KeyInfo
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {IdentifierMethod}
|
|
35
|
+
* @memberof ResolvePublicKey
|
|
36
|
+
*/
|
|
37
|
+
identifierMethod?: IdentifierMethod
|
|
38
|
+
/**
|
|
39
|
+
* Optional array of trusted certificates (base64-encoded) that may be used in the resolution process.
|
|
40
|
+
* @type {Array<string>}
|
|
41
|
+
* @memberof ResolvePublicKey
|
|
42
|
+
*/
|
|
43
|
+
trustedCerts?: Array<string>
|
|
44
|
+
/**
|
|
45
|
+
* Optional boolean indicating whether the X.509 certificate chain should be verified.
|
|
46
|
+
* @type {boolean}
|
|
47
|
+
* @memberof ResolvePublicKey
|
|
48
|
+
*/
|
|
49
|
+
verifyX509CertificateChain?: boolean
|
|
56
50
|
}
|
|
57
51
|
|
|
58
|
-
|
|
59
|
-
|
|
60
52
|
/**
|
|
61
53
|
* Check if a given object implements the ResolvePublicKey interface.
|
|
62
54
|
*/
|
|
63
55
|
export function instanceOfResolvePublicKey(value: object): value is ResolvePublicKey {
|
|
64
|
-
|
|
65
|
-
|
|
56
|
+
if (!('keyInfo' in value) || value['keyInfo'] === undefined) return false
|
|
57
|
+
return true
|
|
66
58
|
}
|
|
67
59
|
|
|
68
60
|
export function ResolvePublicKeyFromJSON(json: any): ResolvePublicKey {
|
|
69
|
-
|
|
61
|
+
return ResolvePublicKeyFromJSONTyped(json, false)
|
|
70
62
|
}
|
|
71
63
|
|
|
72
64
|
export function ResolvePublicKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResolvePublicKey {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
};
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
keyInfo: KeyInfoFromJSON(json['keyInfo']),
|
|
70
|
+
identifierMethod: json['identifierMethod'] == null ? undefined : IdentifierMethodFromJSON(json['identifierMethod']),
|
|
71
|
+
trustedCerts: json['trustedCerts'] == null ? undefined : json['trustedCerts'],
|
|
72
|
+
verifyX509CertificateChain: json['verifyX509CertificateChain'] == null ? undefined : json['verifyX509CertificateChain'],
|
|
73
|
+
}
|
|
83
74
|
}
|
|
84
75
|
|
|
85
76
|
export function ResolvePublicKeyToJSON(json: any): ResolvePublicKey {
|
|
86
|
-
|
|
77
|
+
return ResolvePublicKeyToJSONTyped(json, false)
|
|
87
78
|
}
|
|
88
79
|
|
|
89
80
|
export function ResolvePublicKeyToJSONTyped(value?: ResolvePublicKey | null, ignoreDiscriminator: boolean = false): any {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value
|
|
83
|
+
}
|
|
93
84
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
};
|
|
85
|
+
return {
|
|
86
|
+
keyInfo: KeyInfoToJSON(value['keyInfo']),
|
|
87
|
+
identifierMethod: IdentifierMethodToJSON(value['identifierMethod']),
|
|
88
|
+
trustedCerts: value['trustedCerts'],
|
|
89
|
+
verifyX509CertificateChain: value['verifyX509CertificateChain'],
|
|
90
|
+
}
|
|
101
91
|
}
|
|
102
|
-
|
|
@@ -12,31 +12,16 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import type { KeyType } from './KeyType'
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from './
|
|
20
|
-
import
|
|
21
|
-
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} from './
|
|
25
|
-
import type { SignatureAlgorithm } from './SignatureAlgorithm';
|
|
26
|
-
import {
|
|
27
|
-
SignatureAlgorithmFromJSON,
|
|
28
|
-
SignatureAlgorithmToJSON,
|
|
29
|
-
} from './SignatureAlgorithm';
|
|
30
|
-
import type { KeyEncoding } from './KeyEncoding';
|
|
31
|
-
import {
|
|
32
|
-
KeyEncodingFromJSON,
|
|
33
|
-
KeyEncodingToJSON,
|
|
34
|
-
} from './KeyEncoding';
|
|
35
|
-
import type { Jwk } from './Jwk';
|
|
36
|
-
import {
|
|
37
|
-
JwkFromJSON,
|
|
38
|
-
JwkToJSON,
|
|
39
|
-
} from './Jwk';
|
|
15
|
+
import type { KeyType } from './KeyType'
|
|
16
|
+
import { KeyTypeFromJSON, KeyTypeToJSON } from './KeyType'
|
|
17
|
+
import type { KeyVisibility } from './KeyVisibility'
|
|
18
|
+
import { KeyVisibilityFromJSON, KeyVisibilityToJSON } from './KeyVisibility'
|
|
19
|
+
import type { SignatureAlgorithm } from './SignatureAlgorithm'
|
|
20
|
+
import { SignatureAlgorithmFromJSON, SignatureAlgorithmToJSON } from './SignatureAlgorithm'
|
|
21
|
+
import type { KeyEncoding } from './KeyEncoding'
|
|
22
|
+
import { KeyEncodingFromJSON, KeyEncodingToJSON } from './KeyEncoding'
|
|
23
|
+
import type { Jwk } from './Jwk'
|
|
24
|
+
import { JwkFromJSON, JwkToJSON } from './Jwk'
|
|
40
25
|
|
|
41
26
|
/**
|
|
42
27
|
* Represents a resolved cryptographic key information where the key is guaranteed to be present and resolved, providing concrete access to the key.
|
|
@@ -44,122 +29,117 @@ import {
|
|
|
44
29
|
* @interface ResolvedKeyInfo
|
|
45
30
|
*/
|
|
46
31
|
export interface ResolvedKeyInfo {
|
|
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
|
-
|
|
32
|
+
/**
|
|
33
|
+
* Unique identifier for the cryptographic key. Can be null if the key identifier is not provided.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ResolvedKeyInfo
|
|
36
|
+
*/
|
|
37
|
+
kid?: string
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {Jwk}
|
|
41
|
+
* @memberof ResolvedKeyInfo
|
|
42
|
+
*/
|
|
43
|
+
key: Jwk
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {SignatureAlgorithm}
|
|
47
|
+
* @memberof ResolvedKeyInfo
|
|
48
|
+
*/
|
|
49
|
+
signatureAlgorithm?: SignatureAlgorithm
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {KeyVisibility}
|
|
53
|
+
* @memberof ResolvedKeyInfo
|
|
54
|
+
*/
|
|
55
|
+
keyVisibility?: KeyVisibility
|
|
56
|
+
/**
|
|
57
|
+
* X.509 certificate chain associated with the key.
|
|
58
|
+
* @type {Array<string>}
|
|
59
|
+
* @memberof ResolvedKeyInfo
|
|
60
|
+
*/
|
|
61
|
+
x5c?: Array<string>
|
|
62
|
+
/**
|
|
63
|
+
* A reference or alias to the key in the Key Management Service (KMS).
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof ResolvedKeyInfo
|
|
66
|
+
*/
|
|
67
|
+
alias?: string
|
|
68
|
+
/**
|
|
69
|
+
* The Key Management System (KMS) identifier associated with the key.
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof ResolvedKeyInfo
|
|
72
|
+
*/
|
|
73
|
+
providerId?: string
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {KeyType}
|
|
77
|
+
* @memberof ResolvedKeyInfo
|
|
78
|
+
*/
|
|
79
|
+
keyType?: KeyType
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {KeyEncoding}
|
|
83
|
+
* @memberof ResolvedKeyInfo
|
|
84
|
+
*/
|
|
85
|
+
keyEncoding?: KeyEncoding
|
|
86
|
+
/**
|
|
87
|
+
* Additional configuration options as key-value pairs.
|
|
88
|
+
* @type {{ [key: string]: string; }}
|
|
89
|
+
* @memberof ResolvedKeyInfo
|
|
90
|
+
*/
|
|
91
|
+
opts?: { [key: string]: string }
|
|
107
92
|
}
|
|
108
93
|
|
|
109
|
-
|
|
110
|
-
|
|
111
94
|
/**
|
|
112
95
|
* Check if a given object implements the ResolvedKeyInfo interface.
|
|
113
96
|
*/
|
|
114
97
|
export function instanceOfResolvedKeyInfo(value: object): value is ResolvedKeyInfo {
|
|
115
|
-
|
|
116
|
-
|
|
98
|
+
if (!('key' in value) || value['key'] === undefined) return false
|
|
99
|
+
return true
|
|
117
100
|
}
|
|
118
101
|
|
|
119
102
|
export function ResolvedKeyInfoFromJSON(json: any): ResolvedKeyInfo {
|
|
120
|
-
|
|
103
|
+
return ResolvedKeyInfoFromJSONTyped(json, false)
|
|
121
104
|
}
|
|
122
105
|
|
|
123
106
|
export function ResolvedKeyInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResolvedKeyInfo {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
};
|
|
107
|
+
if (json == null) {
|
|
108
|
+
return json
|
|
109
|
+
}
|
|
110
|
+
return {
|
|
111
|
+
kid: json['kid'] == null ? undefined : json['kid'],
|
|
112
|
+
key: JwkFromJSON(json['key']),
|
|
113
|
+
signatureAlgorithm: json['signatureAlgorithm'] == null ? undefined : SignatureAlgorithmFromJSON(json['signatureAlgorithm']),
|
|
114
|
+
keyVisibility: json['keyVisibility'] == null ? undefined : KeyVisibilityFromJSON(json['keyVisibility']),
|
|
115
|
+
x5c: json['x5c'] == null ? undefined : json['x5c'],
|
|
116
|
+
alias: json['alias'] == null ? undefined : json['alias'],
|
|
117
|
+
providerId: json['providerId'] == null ? undefined : json['providerId'],
|
|
118
|
+
keyType: json['keyType'] == null ? undefined : KeyTypeFromJSON(json['keyType']),
|
|
119
|
+
keyEncoding: json['keyEncoding'] == null ? undefined : KeyEncodingFromJSON(json['keyEncoding']),
|
|
120
|
+
opts: json['opts'] == null ? undefined : json['opts'],
|
|
121
|
+
}
|
|
140
122
|
}
|
|
141
123
|
|
|
142
124
|
export function ResolvedKeyInfoToJSON(json: any): ResolvedKeyInfo {
|
|
143
|
-
|
|
125
|
+
return ResolvedKeyInfoToJSONTyped(json, false)
|
|
144
126
|
}
|
|
145
127
|
|
|
146
128
|
export function ResolvedKeyInfoToJSONTyped(value?: ResolvedKeyInfo | null, ignoreDiscriminator: boolean = false): any {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
129
|
+
if (value == null) {
|
|
130
|
+
return value
|
|
131
|
+
}
|
|
150
132
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
};
|
|
133
|
+
return {
|
|
134
|
+
kid: value['kid'],
|
|
135
|
+
key: JwkToJSON(value['key']),
|
|
136
|
+
signatureAlgorithm: SignatureAlgorithmToJSON(value['signatureAlgorithm']),
|
|
137
|
+
keyVisibility: KeyVisibilityToJSON(value['keyVisibility']),
|
|
138
|
+
x5c: value['x5c'],
|
|
139
|
+
alias: value['alias'],
|
|
140
|
+
providerId: value['providerId'],
|
|
141
|
+
keyType: KeyTypeToJSON(value['keyType']),
|
|
142
|
+
keyEncoding: KeyEncodingToJSON(value['keyEncoding']),
|
|
143
|
+
opts: value['opts'],
|
|
144
|
+
}
|
|
164
145
|
}
|
|
165
|
-
|