@tsonic/microsoft-extensions 0.1.2 → 10.0.1
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/Microsoft.Extensions.Caching.Distributed/bindings.json +317 -543
- package/Microsoft.Extensions.Caching.Distributed/internal/index.d.ts +38 -38
- package/Microsoft.Extensions.Caching.Hybrid/bindings.json +146 -327
- package/Microsoft.Extensions.Caching.Hybrid/internal/index.d.ts +26 -26
- package/Microsoft.Extensions.Caching.Memory/bindings.json +581 -1255
- package/Microsoft.Extensions.Caching.Memory/internal/index.d.ts +88 -88
- package/Microsoft.Extensions.Configuration/bindings.json +1738 -3009
- package/Microsoft.Extensions.Configuration/internal/index.d.ts +195 -195
- package/Microsoft.Extensions.Configuration.CommandLine/bindings.json +108 -199
- package/Microsoft.Extensions.Configuration.CommandLine/internal/index.d.ts +9 -9
- package/Microsoft.Extensions.Configuration.EnvironmentVariables/bindings.json +109 -198
- package/Microsoft.Extensions.Configuration.EnvironmentVariables/internal/index.d.ts +9 -9
- package/Microsoft.Extensions.Configuration.Ini/bindings.json +211 -511
- package/Microsoft.Extensions.Configuration.Ini/internal/index.d.ts +15 -15
- package/Microsoft.Extensions.Configuration.Json/bindings.json +205 -500
- package/Microsoft.Extensions.Configuration.Json/internal/index.d.ts +14 -14
- package/Microsoft.Extensions.Configuration.KeyPerFile/bindings.json +145 -266
- package/Microsoft.Extensions.Configuration.KeyPerFile/internal/index.d.ts +16 -16
- package/Microsoft.Extensions.Configuration.Memory/bindings.json +115 -210
- package/Microsoft.Extensions.Configuration.Memory/internal/index.d.ts +10 -10
- package/Microsoft.Extensions.Configuration.UserSecrets/bindings.json +26 -50
- package/Microsoft.Extensions.Configuration.UserSecrets/internal/index.d.ts +2 -2
- package/Microsoft.Extensions.Configuration.Xml/bindings.json +225 -539
- package/Microsoft.Extensions.Configuration.Xml/internal/index.d.ts +17 -17
- package/Microsoft.Extensions.DependencyInjection/bindings.json +1880 -3222
- package/Microsoft.Extensions.DependencyInjection/internal/index.d.ts +241 -241
- package/Microsoft.Extensions.DependencyInjection.Extensions/bindings.json +268 -477
- package/Microsoft.Extensions.DependencyInjection.Extensions/internal/index.d.ts +43 -43
- package/Microsoft.Extensions.Diagnostics.HealthChecks/bindings.json +250 -568
- package/Microsoft.Extensions.Diagnostics.HealthChecks/internal/index.d.ts +37 -37
- package/Microsoft.Extensions.Diagnostics.Metrics/bindings.json +270 -494
- package/Microsoft.Extensions.Diagnostics.Metrics/internal/index.d.ts +44 -44
- package/Microsoft.Extensions.Diagnostics.Metrics.Configuration/bindings.json +16 -15
- package/Microsoft.Extensions.Diagnostics.Metrics.Configuration/internal/index.d.ts +1 -1
- package/Microsoft.Extensions.FileProviders/bindings.json +519 -991
- package/Microsoft.Extensions.FileProviders/internal/index.d.ts +46 -46
- package/Microsoft.Extensions.FileProviders.Composite/bindings.json +26 -49
- package/Microsoft.Extensions.FileProviders.Composite/internal/index.d.ts +2 -2
- package/Microsoft.Extensions.FileProviders.Embedded/bindings.json +89 -171
- package/Microsoft.Extensions.FileProviders.Embedded/internal/index.d.ts +7 -7
- package/Microsoft.Extensions.FileProviders.Internal/bindings.json +26 -58
- package/Microsoft.Extensions.FileProviders.Internal/internal/index.d.ts +2 -2
- package/Microsoft.Extensions.FileProviders.Physical/bindings.json +296 -634
- package/Microsoft.Extensions.FileProviders.Physical/internal/index.d.ts +27 -27
- package/Microsoft.Extensions.FileSystemGlobbing/bindings.json +171 -355
- package/Microsoft.Extensions.FileSystemGlobbing/internal/index.d.ts +23 -23
- package/Microsoft.Extensions.FileSystemGlobbing.Abstractions/bindings.json +123 -280
- package/Microsoft.Extensions.FileSystemGlobbing.Abstractions/internal/index.d.ts +15 -15
- package/Microsoft.Extensions.FileSystemGlobbing.Internal/bindings.json +158 -268
- package/Microsoft.Extensions.FileSystemGlobbing.Internal/internal/index.d.ts +20 -20
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.PathSegments/bindings.json +191 -384
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.PathSegments/internal/index.d.ts +17 -17
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.PatternContexts/bindings.json +591 -1070
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.PatternContexts/internal/index.d.ts +50 -50
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.Patterns/bindings.json +20 -47
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.Patterns/internal/index.d.ts +2 -2
- package/Microsoft.Extensions.Hosting/bindings.json +936 -1742
- package/Microsoft.Extensions.Hosting/internal/index.d.ts +120 -120
- package/Microsoft.Extensions.Hosting.Internal/bindings.json +200 -386
- package/Microsoft.Extensions.Hosting.Internal/internal/index.d.ts +13 -13
- package/Microsoft.Extensions.Http/bindings.json +93 -160
- package/Microsoft.Extensions.Http/internal/index.d.ts +12 -12
- package/Microsoft.Extensions.Http.Logging/bindings.json +83 -149
- package/Microsoft.Extensions.Http.Logging/internal/index.d.ts +9 -9
- package/Microsoft.Extensions.Internal/bindings.json +32 -51
- package/Microsoft.Extensions.Internal/internal/index.d.ts +2 -2
- package/Microsoft.Extensions.Localization/bindings.json +294 -531
- package/Microsoft.Extensions.Localization/internal/index.d.ts +21 -21
- package/Microsoft.Extensions.Logging/bindings.json +1141 -2182
- package/Microsoft.Extensions.Logging/internal/index.d.ts +162 -162
- package/Microsoft.Extensions.Logging.Abstractions/bindings.json +285 -526
- package/Microsoft.Extensions.Logging.Abstractions/internal/index.d.ts +32 -32
- package/Microsoft.Extensions.Logging.Configuration/bindings.json +80 -110
- package/Microsoft.Extensions.Logging.Configuration/internal/index.d.ts +5 -5
- package/Microsoft.Extensions.Logging.Console/bindings.json +350 -830
- package/Microsoft.Extensions.Logging.Console/internal/index.d.ts +48 -48
- package/Microsoft.Extensions.Logging.Debug/bindings.json +29 -48
- package/Microsoft.Extensions.Logging.Debug/internal/index.d.ts +2 -2
- package/Microsoft.Extensions.Logging.EventLog/bindings.json +69 -147
- package/Microsoft.Extensions.Logging.EventLog/internal/index.d.ts +11 -11
- package/Microsoft.Extensions.Logging.EventSource/bindings.json +46 -97
- package/Microsoft.Extensions.Logging.EventSource/internal/index.d.ts +6 -6
- package/Microsoft.Extensions.Logging.TraceSource/bindings.json +29 -57
- package/Microsoft.Extensions.Logging.TraceSource/internal/index.d.ts +2 -2
- package/Microsoft.Extensions.ObjectPool/bindings.json +319 -558
- package/Microsoft.Extensions.ObjectPool/internal/index.d.ts +25 -25
- package/Microsoft.Extensions.Options/bindings.json +1780 -3480
- package/Microsoft.Extensions.Options/internal/index.d.ts +206 -206
- package/Microsoft.Extensions.Primitives/bindings.json +635 -1246
- package/Microsoft.Extensions.Primitives/internal/index.d.ts +91 -91
- package/Microsoft.Extensions.Validation/bindings.json +196 -336
- package/Microsoft.Extensions.Validation/internal/index.d.ts +21 -21
- package/Microsoft.Extensions.WebEncoders/bindings.json +14 -25
- package/Microsoft.Extensions.WebEncoders/internal/index.d.ts +2 -2
- package/Microsoft.Extensions.WebEncoders.Testing/bindings.json +144 -279
- package/Microsoft.Extensions.WebEncoders.Testing/internal/index.d.ts +21 -21
- package/System.Diagnostics/bindings.json +560 -1240
- package/System.Diagnostics/internal/index.d.ts +94 -94
- package/System.Diagnostics.Eventing.Reader/bindings.json +1155 -2972
- package/System.Diagnostics.Eventing.Reader/internal/index.d.ts +204 -204
- package/System.Net.Http/bindings.json +56 -60
- package/System.Net.Http/internal/index.d.ts +4 -4
- package/System.Security.Cryptography/bindings.json +101 -208
- package/System.Security.Cryptography/internal/index.d.ts +14 -14
- package/System.Security.Cryptography.Pkcs/bindings.json +1662 -4005
- package/System.Security.Cryptography.Pkcs/internal/index.d.ts +259 -259
- package/System.Security.Cryptography.Xml/bindings.json +1963 -5427
- package/System.Security.Cryptography.Xml/internal/index.d.ts +338 -338
- package/__build/scripts/generate.sh +4 -4
- package/__internal/extensions/index.d.ts +426 -426
- package/package.json +3 -3
- package/Microsoft.Extensions.Caching.Distributed/internal/metadata.json +0 -835
- package/Microsoft.Extensions.Caching.Hybrid/internal/metadata.json +0 -476
- package/Microsoft.Extensions.Caching.Memory/internal/metadata.json +0 -1740
- package/Microsoft.Extensions.Configuration/internal/metadata.json +0 -4603
- package/Microsoft.Extensions.Configuration.CommandLine/internal/metadata.json +0 -295
- package/Microsoft.Extensions.Configuration.EnvironmentVariables/internal/metadata.json +0 -301
- package/Microsoft.Extensions.Configuration.Ini/internal/metadata.json +0 -568
- package/Microsoft.Extensions.Configuration.Json/internal/metadata.json +0 -552
- package/Microsoft.Extensions.Configuration.KeyPerFile/internal/metadata.json +0 -402
- package/Microsoft.Extensions.Configuration.Memory/internal/metadata.json +0 -312
- package/Microsoft.Extensions.Configuration.UserSecrets/internal/metadata.json +0 -85
- package/Microsoft.Extensions.Configuration.Xml/internal/metadata.json +0 -611
- package/Microsoft.Extensions.DependencyInjection/internal/metadata.json +0 -4903
- package/Microsoft.Extensions.DependencyInjection.Extensions/internal/metadata.json +0 -713
- package/Microsoft.Extensions.Diagnostics.HealthChecks/internal/metadata.json +0 -802
- package/Microsoft.Extensions.Diagnostics.Metrics/internal/metadata.json +0 -785
- package/Microsoft.Extensions.Diagnostics.Metrics.Configuration/internal/metadata.json +0 -41
- package/Microsoft.Extensions.FileProviders/internal/metadata.json +0 -1423
- package/Microsoft.Extensions.FileProviders.Composite/internal/metadata.json +0 -79
- package/Microsoft.Extensions.FileProviders.Embedded/internal/metadata.json +0 -251
- package/Microsoft.Extensions.FileProviders.Internal/internal/metadata.json +0 -84
- package/Microsoft.Extensions.FileProviders.Physical/internal/metadata.json +0 -879
- package/Microsoft.Extensions.FileSystemGlobbing/internal/metadata.json +0 -511
- package/Microsoft.Extensions.FileSystemGlobbing.Abstractions/internal/metadata.json +0 -352
- package/Microsoft.Extensions.FileSystemGlobbing.Internal/internal/metadata.json +0 -443
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.PathSegments/internal/metadata.json +0 -550
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.PatternContexts/internal/metadata.json +0 -1527
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.Patterns/internal/metadata.json +0 -68
- package/Microsoft.Extensions.Hosting/internal/metadata.json +0 -2577
- package/Microsoft.Extensions.Hosting.Internal/internal/metadata.json +0 -559
- package/Microsoft.Extensions.Http/internal/metadata.json +0 -266
- package/Microsoft.Extensions.Http.Logging/internal/metadata.json +0 -240
- package/Microsoft.Extensions.Internal/internal/metadata.json +0 -94
- package/Microsoft.Extensions.Localization/internal/metadata.json +0 -831
- package/Microsoft.Extensions.Logging/internal/metadata.json +0 -3222
- package/Microsoft.Extensions.Logging.Abstractions/internal/metadata.json +0 -782
- package/Microsoft.Extensions.Logging.Configuration/internal/metadata.json +0 -212
- package/Microsoft.Extensions.Logging.Console/internal/metadata.json +0 -1119
- package/Microsoft.Extensions.Logging.Debug/internal/metadata.json +0 -80
- package/Microsoft.Extensions.Logging.EventLog/internal/metadata.json +0 -206
- package/Microsoft.Extensions.Logging.EventSource/internal/metadata.json +0 -149
- package/Microsoft.Extensions.Logging.TraceSource/internal/metadata.json +0 -85
- package/Microsoft.Extensions.ObjectPool/internal/metadata.json +0 -867
- package/Microsoft.Extensions.Options/internal/metadata.json +0 -4965
- package/Microsoft.Extensions.Primitives/internal/metadata.json +0 -1830
- package/Microsoft.Extensions.Validation/internal/metadata.json +0 -577
- package/Microsoft.Extensions.WebEncoders/internal/metadata.json +0 -46
- package/Microsoft.Extensions.WebEncoders.Testing/internal/metadata.json +0 -431
- package/System.Diagnostics/internal/metadata.json +0 -1694
- package/System.Diagnostics.Eventing.Reader/internal/metadata.json +0 -3706
- package/System.Net.Http/internal/metadata.json +0 -141
- package/System.Security.Cryptography/internal/metadata.json +0 -302
- package/System.Security.Cryptography.Pkcs/internal/metadata.json +0 -5125
- package/System.Security.Cryptography.Xml/internal/metadata.json +0 -5727
|
@@ -21,48 +21,48 @@ import type { AsnEncodedData, AsymmetricAlgorithm, CompositeMLDsa, CspParameters
|
|
|
21
21
|
import type { X509Certificate2, X509Certificate2Collection, X509ExtensionCollection, X509IncludeOption } from "@tsonic/dotnet/System.Security.Cryptography.X509Certificates.js";
|
|
22
22
|
|
|
23
23
|
export enum Pkcs12ConfidentialityMode {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
Unknown = 0,
|
|
25
|
+
None = 1,
|
|
26
|
+
Password = 2,
|
|
27
|
+
PublicKey = 3
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
export enum Pkcs12IntegrityMode {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
Unknown = 0,
|
|
33
|
+
None = 1,
|
|
34
|
+
Password = 2,
|
|
35
|
+
PublicKey = 3
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
export enum RecipientInfoType {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
Unknown = 0,
|
|
41
|
+
KeyTransport = 1,
|
|
42
|
+
KeyAgreement = 2
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
export enum SubjectIdentifierOrKeyType {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
Unknown = 0,
|
|
48
|
+
IssuerAndSerialNumber = 1,
|
|
49
|
+
SubjectKeyIdentifier = 2,
|
|
50
|
+
PublicKeyInfo = 3
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
export enum SubjectIdentifierType {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
Unknown = 0,
|
|
56
|
+
IssuerAndSerialNumber = 1,
|
|
57
|
+
SubjectKeyIdentifier = 2,
|
|
58
|
+
NoSignature = 3
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
export interface AlgorithmIdentifier$instance {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
KeyLength: int;
|
|
64
|
+
Oid: Oid;
|
|
65
|
+
Parameters: byte[];
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
|
|
@@ -76,9 +76,9 @@ export const AlgorithmIdentifier: {
|
|
|
76
76
|
export type AlgorithmIdentifier = AlgorithmIdentifier$instance;
|
|
77
77
|
|
|
78
78
|
export interface CmsRecipient$instance {
|
|
79
|
-
readonly
|
|
80
|
-
readonly
|
|
81
|
-
readonly
|
|
79
|
+
readonly Certificate: X509Certificate2;
|
|
80
|
+
readonly RecipientIdentifierType: SubjectIdentifierType;
|
|
81
|
+
readonly RSAEncryptionPadding: RSAEncryptionPadding | undefined;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
|
|
@@ -93,15 +93,15 @@ export const CmsRecipient: {
|
|
|
93
93
|
export type CmsRecipient = CmsRecipient$instance;
|
|
94
94
|
|
|
95
95
|
export interface CmsRecipientCollection$instance {
|
|
96
|
-
readonly
|
|
97
|
-
readonly
|
|
98
|
-
readonly
|
|
99
|
-
readonly
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
96
|
+
readonly Count: int;
|
|
97
|
+
readonly IsSynchronized: boolean;
|
|
98
|
+
readonly Item: CmsRecipient;
|
|
99
|
+
readonly SyncRoot: unknown;
|
|
100
|
+
Add(recipient: CmsRecipient): int;
|
|
101
|
+
CopyTo(array: ClrArray, index: int): void;
|
|
102
|
+
CopyTo(array: CmsRecipient[], index: int): void;
|
|
103
|
+
GetEnumerator(): CmsRecipientEnumerator;
|
|
104
|
+
Remove(recipient: CmsRecipient): void;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
|
|
@@ -115,9 +115,9 @@ export const CmsRecipientCollection: {
|
|
|
115
115
|
export type CmsRecipientCollection = CmsRecipientCollection$instance;
|
|
116
116
|
|
|
117
117
|
export interface CmsRecipientEnumerator$instance {
|
|
118
|
-
readonly
|
|
119
|
-
|
|
120
|
-
|
|
118
|
+
readonly Current: CmsRecipient;
|
|
119
|
+
MoveNext(): boolean;
|
|
120
|
+
Reset(): void;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
|
|
@@ -129,17 +129,17 @@ export const CmsRecipientEnumerator: {
|
|
|
129
129
|
export type CmsRecipientEnumerator = CmsRecipientEnumerator$instance;
|
|
130
130
|
|
|
131
131
|
export interface CmsSigner$instance {
|
|
132
|
-
|
|
133
|
-
readonly
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
get
|
|
137
|
-
set
|
|
138
|
-
get
|
|
139
|
-
set
|
|
140
|
-
readonly
|
|
141
|
-
|
|
142
|
-
readonly
|
|
132
|
+
Certificate: X509Certificate2;
|
|
133
|
+
readonly Certificates: X509Certificate2Collection;
|
|
134
|
+
DigestAlgorithm: Oid;
|
|
135
|
+
IncludeOption: X509IncludeOption;
|
|
136
|
+
get PrivateKey(): AsymmetricAlgorithm | undefined;
|
|
137
|
+
set PrivateKey(value: AsymmetricAlgorithm);
|
|
138
|
+
get SignaturePadding(): RSASignaturePadding | undefined;
|
|
139
|
+
set SignaturePadding(value: RSASignaturePadding);
|
|
140
|
+
readonly SignedAttributes: CryptographicAttributeObjectCollection;
|
|
141
|
+
SignerIdentifierType: SubjectIdentifierType;
|
|
142
|
+
readonly UnsignedAttributes: CryptographicAttributeObjectCollection;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
|
|
@@ -160,38 +160,38 @@ export const CmsSigner: {
|
|
|
160
160
|
export type CmsSigner = CmsSigner$instance;
|
|
161
161
|
|
|
162
162
|
export interface ContentInfo$instance {
|
|
163
|
-
readonly
|
|
164
|
-
readonly
|
|
163
|
+
readonly Content: byte[];
|
|
164
|
+
readonly ContentType: Oid;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
|
|
168
168
|
export const ContentInfo: {
|
|
169
169
|
new(content: byte[]): ContentInfo;
|
|
170
170
|
new(contentType: Oid, content: byte[]): ContentInfo;
|
|
171
|
-
|
|
172
|
-
|
|
171
|
+
GetContentType(encodedMessage: byte[]): Oid;
|
|
172
|
+
GetContentType(encodedMessage: ReadOnlySpan<System_Internal.Byte>): Oid;
|
|
173
173
|
};
|
|
174
174
|
|
|
175
175
|
|
|
176
176
|
export type ContentInfo = ContentInfo$instance;
|
|
177
177
|
|
|
178
178
|
export interface EnvelopedCms$instance {
|
|
179
|
-
readonly
|
|
180
|
-
readonly
|
|
181
|
-
readonly
|
|
182
|
-
readonly
|
|
183
|
-
readonly
|
|
184
|
-
readonly
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
179
|
+
readonly Certificates: X509Certificate2Collection;
|
|
180
|
+
readonly ContentEncryptionAlgorithm: AlgorithmIdentifier;
|
|
181
|
+
readonly ContentInfo: ContentInfo;
|
|
182
|
+
readonly RecipientInfos: RecipientInfoCollection;
|
|
183
|
+
readonly UnprotectedAttributes: CryptographicAttributeObjectCollection;
|
|
184
|
+
readonly Version: int;
|
|
185
|
+
Decode(encodedMessage: byte[]): void;
|
|
186
|
+
Decode(encodedMessage: ReadOnlySpan<System_Internal.Byte>): void;
|
|
187
|
+
Decrypt(): void;
|
|
188
|
+
Decrypt(recipientInfo: RecipientInfo): void;
|
|
189
|
+
Decrypt(recipientInfo: RecipientInfo, extraStore: X509Certificate2Collection): void;
|
|
190
|
+
Decrypt(extraStore: X509Certificate2Collection): void;
|
|
191
|
+
Decrypt(recipientInfo: RecipientInfo, privateKey: AsymmetricAlgorithm): void;
|
|
192
|
+
Encode(): byte[];
|
|
193
|
+
Encrypt(recipient: CmsRecipient): void;
|
|
194
|
+
Encrypt(recipients: CmsRecipientCollection): void;
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
|
|
@@ -205,13 +205,13 @@ export const EnvelopedCms: {
|
|
|
205
205
|
export type EnvelopedCms = EnvelopedCms$instance;
|
|
206
206
|
|
|
207
207
|
export interface KeyAgreeRecipientInfo$instance extends RecipientInfo {
|
|
208
|
-
readonly
|
|
209
|
-
readonly
|
|
210
|
-
readonly
|
|
211
|
-
readonly
|
|
212
|
-
readonly
|
|
213
|
-
readonly
|
|
214
|
-
readonly
|
|
208
|
+
readonly Date: DateTime;
|
|
209
|
+
readonly EncryptedKey: byte[];
|
|
210
|
+
readonly KeyEncryptionAlgorithm: AlgorithmIdentifier;
|
|
211
|
+
readonly OriginatorIdentifierOrKey: SubjectIdentifierOrKey;
|
|
212
|
+
readonly OtherKeyAttribute: CryptographicAttributeObject | undefined;
|
|
213
|
+
readonly RecipientIdentifier: SubjectIdentifier;
|
|
214
|
+
readonly Version: int;
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
|
|
@@ -223,10 +223,10 @@ export const KeyAgreeRecipientInfo: {
|
|
|
223
223
|
export type KeyAgreeRecipientInfo = KeyAgreeRecipientInfo$instance;
|
|
224
224
|
|
|
225
225
|
export interface KeyTransRecipientInfo$instance extends RecipientInfo {
|
|
226
|
-
readonly
|
|
227
|
-
readonly
|
|
228
|
-
readonly
|
|
229
|
-
readonly
|
|
226
|
+
readonly EncryptedKey: byte[];
|
|
227
|
+
readonly KeyEncryptionAlgorithm: AlgorithmIdentifier;
|
|
228
|
+
readonly RecipientIdentifier: SubjectIdentifier;
|
|
229
|
+
readonly Version: int;
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
|
|
@@ -238,17 +238,17 @@ export const KeyTransRecipientInfo: {
|
|
|
238
238
|
export type KeyTransRecipientInfo = KeyTransRecipientInfo$instance;
|
|
239
239
|
|
|
240
240
|
export interface Pkcs12Builder$instance {
|
|
241
|
-
readonly
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
241
|
+
readonly IsSealed: boolean;
|
|
242
|
+
AddSafeContentsEncrypted(safeContents: Pkcs12SafeContents, passwordBytes: byte[], pbeParameters: PbeParameters): void;
|
|
243
|
+
AddSafeContentsEncrypted(safeContents: Pkcs12SafeContents, passwordBytes: ReadOnlySpan<System_Internal.Byte>, pbeParameters: PbeParameters): void;
|
|
244
|
+
AddSafeContentsEncrypted(safeContents: Pkcs12SafeContents, password: string, pbeParameters: PbeParameters): void;
|
|
245
|
+
AddSafeContentsEncrypted(safeContents: Pkcs12SafeContents, password: ReadOnlySpan<System_Internal.Char>, pbeParameters: PbeParameters): void;
|
|
246
|
+
AddSafeContentsUnencrypted(safeContents: Pkcs12SafeContents): void;
|
|
247
|
+
Encode(): byte[];
|
|
248
|
+
SealWithMac(password: string, hashAlgorithm: HashAlgorithmName, iterationCount: int): void;
|
|
249
|
+
SealWithMac(password: ReadOnlySpan<System_Internal.Char>, hashAlgorithm: HashAlgorithmName, iterationCount: int): void;
|
|
250
|
+
SealWithoutIntegrity(): void;
|
|
251
|
+
TryEncode(destination: Span<System_Internal.Byte>, bytesWritten: int): boolean;
|
|
252
252
|
}
|
|
253
253
|
|
|
254
254
|
|
|
@@ -260,10 +260,10 @@ export const Pkcs12Builder: {
|
|
|
260
260
|
export type Pkcs12Builder = Pkcs12Builder$instance;
|
|
261
261
|
|
|
262
262
|
export interface Pkcs12CertBag$instance extends Pkcs12SafeBag {
|
|
263
|
-
readonly
|
|
264
|
-
readonly
|
|
265
|
-
|
|
266
|
-
|
|
263
|
+
readonly EncodedCertificate: ReadOnlyMemory<System_Internal.Byte>;
|
|
264
|
+
readonly IsX509Certificate: boolean;
|
|
265
|
+
GetCertificate(): X509Certificate2;
|
|
266
|
+
GetCertificateType(): Oid;
|
|
267
267
|
}
|
|
268
268
|
|
|
269
269
|
|
|
@@ -275,23 +275,23 @@ export const Pkcs12CertBag: {
|
|
|
275
275
|
export type Pkcs12CertBag = Pkcs12CertBag$instance;
|
|
276
276
|
|
|
277
277
|
export interface Pkcs12Info$instance {
|
|
278
|
-
readonly
|
|
279
|
-
readonly
|
|
280
|
-
|
|
281
|
-
|
|
278
|
+
readonly AuthenticatedSafe: ReadOnlyCollection<Pkcs12SafeContents>;
|
|
279
|
+
readonly IntegrityMode: Pkcs12IntegrityMode;
|
|
280
|
+
VerifyMac(password: string): boolean;
|
|
281
|
+
VerifyMac(password: ReadOnlySpan<System_Internal.Char>): boolean;
|
|
282
282
|
}
|
|
283
283
|
|
|
284
284
|
|
|
285
285
|
export const Pkcs12Info: {
|
|
286
286
|
new(): Pkcs12Info;
|
|
287
|
-
|
|
287
|
+
Decode(encodedBytes: ReadOnlyMemory<System_Internal.Byte>, bytesConsumed: int, skipCopy?: boolean): Pkcs12Info;
|
|
288
288
|
};
|
|
289
289
|
|
|
290
290
|
|
|
291
291
|
export type Pkcs12Info = Pkcs12Info$instance;
|
|
292
292
|
|
|
293
293
|
export interface Pkcs12KeyBag$instance extends Pkcs12SafeBag {
|
|
294
|
-
readonly
|
|
294
|
+
readonly Pkcs8PrivateKey: ReadOnlyMemory<System_Internal.Byte>;
|
|
295
295
|
}
|
|
296
296
|
|
|
297
297
|
|
|
@@ -303,11 +303,11 @@ export const Pkcs12KeyBag: {
|
|
|
303
303
|
export type Pkcs12KeyBag = Pkcs12KeyBag$instance;
|
|
304
304
|
|
|
305
305
|
export interface Pkcs12SafeBag$instance {
|
|
306
|
-
readonly
|
|
307
|
-
readonly
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
306
|
+
readonly Attributes: CryptographicAttributeObjectCollection;
|
|
307
|
+
readonly EncodedBagValue: ReadOnlyMemory<System_Internal.Byte>;
|
|
308
|
+
Encode(): byte[];
|
|
309
|
+
GetBagId(): Oid;
|
|
310
|
+
TryEncode(destination: Span<System_Internal.Byte>, bytesWritten: int): boolean;
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
|
|
@@ -318,22 +318,22 @@ export const Pkcs12SafeBag: {
|
|
|
318
318
|
export type Pkcs12SafeBag = Pkcs12SafeBag$instance;
|
|
319
319
|
|
|
320
320
|
export interface Pkcs12SafeContents$instance {
|
|
321
|
-
readonly
|
|
322
|
-
readonly
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
321
|
+
readonly ConfidentialityMode: Pkcs12ConfidentialityMode;
|
|
322
|
+
readonly IsReadOnly: boolean;
|
|
323
|
+
AddCertificate(certificate: X509Certificate2): Pkcs12CertBag;
|
|
324
|
+
AddKeyUnencrypted(key: AsymmetricAlgorithm): Pkcs12KeyBag;
|
|
325
|
+
AddNestedContents(safeContents: Pkcs12SafeContents): Pkcs12SafeContentsBag;
|
|
326
|
+
AddSafeBag(safeBag: Pkcs12SafeBag): void;
|
|
327
|
+
AddSecret(secretType: Oid, secretValue: ReadOnlyMemory<System_Internal.Byte>): Pkcs12SecretBag;
|
|
328
|
+
AddShroudedKey(key: AsymmetricAlgorithm, passwordBytes: byte[], pbeParameters: PbeParameters): Pkcs12ShroudedKeyBag;
|
|
329
|
+
AddShroudedKey(key: AsymmetricAlgorithm, passwordBytes: ReadOnlySpan<System_Internal.Byte>, pbeParameters: PbeParameters): Pkcs12ShroudedKeyBag;
|
|
330
|
+
AddShroudedKey(key: AsymmetricAlgorithm, password: string, pbeParameters: PbeParameters): Pkcs12ShroudedKeyBag;
|
|
331
|
+
AddShroudedKey(key: AsymmetricAlgorithm, password: ReadOnlySpan<System_Internal.Char>, pbeParameters: PbeParameters): Pkcs12ShroudedKeyBag;
|
|
332
|
+
Decrypt(passwordBytes: byte[]): void;
|
|
333
|
+
Decrypt(passwordBytes: ReadOnlySpan<System_Internal.Byte>): void;
|
|
334
|
+
Decrypt(password: string): void;
|
|
335
|
+
Decrypt(password: ReadOnlySpan<System_Internal.Char>): void;
|
|
336
|
+
GetBags(): IEnumerable__System_Collections_Generic<Pkcs12SafeBag>;
|
|
337
337
|
}
|
|
338
338
|
|
|
339
339
|
|
|
@@ -345,7 +345,7 @@ export const Pkcs12SafeContents: {
|
|
|
345
345
|
export type Pkcs12SafeContents = Pkcs12SafeContents$instance;
|
|
346
346
|
|
|
347
347
|
export interface Pkcs12SafeContentsBag$instance extends Pkcs12SafeBag {
|
|
348
|
-
readonly
|
|
348
|
+
readonly SafeContents: Pkcs12SafeContents | undefined;
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
|
|
@@ -357,8 +357,8 @@ export const Pkcs12SafeContentsBag: {
|
|
|
357
357
|
export type Pkcs12SafeContentsBag = Pkcs12SafeContentsBag$instance;
|
|
358
358
|
|
|
359
359
|
export interface Pkcs12SecretBag$instance extends Pkcs12SafeBag {
|
|
360
|
-
readonly
|
|
361
|
-
|
|
360
|
+
readonly SecretValue: ReadOnlyMemory<System_Internal.Byte>;
|
|
361
|
+
GetSecretType(): Oid;
|
|
362
362
|
}
|
|
363
363
|
|
|
364
364
|
|
|
@@ -370,7 +370,7 @@ export const Pkcs12SecretBag: {
|
|
|
370
370
|
export type Pkcs12SecretBag = Pkcs12SecretBag$instance;
|
|
371
371
|
|
|
372
372
|
export interface Pkcs12ShroudedKeyBag$instance extends Pkcs12SafeBag {
|
|
373
|
-
readonly
|
|
373
|
+
readonly EncryptedPkcs8PrivateKey: ReadOnlyMemory<System_Internal.Byte>;
|
|
374
374
|
}
|
|
375
375
|
|
|
376
376
|
|
|
@@ -382,33 +382,33 @@ export const Pkcs12ShroudedKeyBag: {
|
|
|
382
382
|
export type Pkcs12ShroudedKeyBag = Pkcs12ShroudedKeyBag$instance;
|
|
383
383
|
|
|
384
384
|
export interface Pkcs8PrivateKeyInfo$instance {
|
|
385
|
-
readonly
|
|
386
|
-
readonly
|
|
387
|
-
readonly
|
|
388
|
-
readonly
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
385
|
+
readonly AlgorithmId: Oid;
|
|
386
|
+
readonly AlgorithmParameters: Nullable<ReadOnlyMemory<System_Internal.Byte>>;
|
|
387
|
+
readonly Attributes: CryptographicAttributeObjectCollection;
|
|
388
|
+
readonly PrivateKeyBytes: ReadOnlyMemory<System_Internal.Byte>;
|
|
389
|
+
Encode(): byte[];
|
|
390
|
+
Encrypt(password: ReadOnlySpan<System_Internal.Char>, pbeParameters: PbeParameters): byte[];
|
|
391
|
+
Encrypt(passwordBytes: ReadOnlySpan<System_Internal.Byte>, pbeParameters: PbeParameters): byte[];
|
|
392
|
+
TryEncode(destination: Span<System_Internal.Byte>, bytesWritten: int): boolean;
|
|
393
|
+
TryEncrypt(password: ReadOnlySpan<System_Internal.Char>, pbeParameters: PbeParameters, destination: Span<System_Internal.Byte>, bytesWritten: int): boolean;
|
|
394
|
+
TryEncrypt(passwordBytes: ReadOnlySpan<System_Internal.Byte>, pbeParameters: PbeParameters, destination: Span<System_Internal.Byte>, bytesWritten: int): boolean;
|
|
395
395
|
}
|
|
396
396
|
|
|
397
397
|
|
|
398
398
|
export const Pkcs8PrivateKeyInfo: {
|
|
399
399
|
new(algorithmId: Oid, algorithmParameters: Nullable<ReadOnlyMemory<System_Internal.Byte>>, privateKey: ReadOnlyMemory<System_Internal.Byte>, skipCopies: boolean): Pkcs8PrivateKeyInfo;
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
400
|
+
Create(privateKey: AsymmetricAlgorithm): Pkcs8PrivateKeyInfo;
|
|
401
|
+
Decode(source: ReadOnlyMemory<System_Internal.Byte>, bytesRead: int, skipCopy?: boolean): Pkcs8PrivateKeyInfo;
|
|
402
|
+
DecryptAndDecode(passwordBytes: ReadOnlySpan<System_Internal.Byte>, source: ReadOnlyMemory<System_Internal.Byte>, bytesRead: int): Pkcs8PrivateKeyInfo;
|
|
403
|
+
DecryptAndDecode(password: ReadOnlySpan<System_Internal.Char>, source: ReadOnlyMemory<System_Internal.Byte>, bytesRead: int): Pkcs8PrivateKeyInfo;
|
|
404
404
|
};
|
|
405
405
|
|
|
406
406
|
|
|
407
407
|
export type Pkcs8PrivateKeyInfo = Pkcs8PrivateKeyInfo$instance;
|
|
408
408
|
|
|
409
409
|
export interface Pkcs9AttributeObject$instance extends AsnEncodedData {
|
|
410
|
-
readonly
|
|
411
|
-
|
|
410
|
+
readonly Oid: Oid | undefined;
|
|
411
|
+
CopyFrom(asnEncodedData: AsnEncodedData): void;
|
|
412
412
|
}
|
|
413
413
|
|
|
414
414
|
|
|
@@ -423,8 +423,8 @@ export const Pkcs9AttributeObject: {
|
|
|
423
423
|
export type Pkcs9AttributeObject = Pkcs9AttributeObject$instance;
|
|
424
424
|
|
|
425
425
|
export interface Pkcs9ContentType$instance extends Pkcs9AttributeObject {
|
|
426
|
-
readonly
|
|
427
|
-
|
|
426
|
+
readonly ContentType: Oid;
|
|
427
|
+
CopyFrom(asnEncodedData: AsnEncodedData): void;
|
|
428
428
|
}
|
|
429
429
|
|
|
430
430
|
|
|
@@ -436,8 +436,8 @@ export const Pkcs9ContentType: {
|
|
|
436
436
|
export type Pkcs9ContentType = Pkcs9ContentType$instance;
|
|
437
437
|
|
|
438
438
|
export interface Pkcs9DocumentDescription$instance extends Pkcs9AttributeObject {
|
|
439
|
-
readonly
|
|
440
|
-
|
|
439
|
+
readonly DocumentDescription: string;
|
|
440
|
+
CopyFrom(asnEncodedData: AsnEncodedData): void;
|
|
441
441
|
}
|
|
442
442
|
|
|
443
443
|
|
|
@@ -451,8 +451,8 @@ export const Pkcs9DocumentDescription: {
|
|
|
451
451
|
export type Pkcs9DocumentDescription = Pkcs9DocumentDescription$instance;
|
|
452
452
|
|
|
453
453
|
export interface Pkcs9DocumentName$instance extends Pkcs9AttributeObject {
|
|
454
|
-
readonly
|
|
455
|
-
|
|
454
|
+
readonly DocumentName: string;
|
|
455
|
+
CopyFrom(asnEncodedData: AsnEncodedData): void;
|
|
456
456
|
}
|
|
457
457
|
|
|
458
458
|
|
|
@@ -466,8 +466,8 @@ export const Pkcs9DocumentName: {
|
|
|
466
466
|
export type Pkcs9DocumentName = Pkcs9DocumentName$instance;
|
|
467
467
|
|
|
468
468
|
export interface Pkcs9LocalKeyId$instance extends Pkcs9AttributeObject {
|
|
469
|
-
readonly
|
|
470
|
-
|
|
469
|
+
readonly KeyId: ReadOnlyMemory<System_Internal.Byte>;
|
|
470
|
+
CopyFrom(asnEncodedData: AsnEncodedData): void;
|
|
471
471
|
}
|
|
472
472
|
|
|
473
473
|
|
|
@@ -481,8 +481,8 @@ export const Pkcs9LocalKeyId: {
|
|
|
481
481
|
export type Pkcs9LocalKeyId = Pkcs9LocalKeyId$instance;
|
|
482
482
|
|
|
483
483
|
export interface Pkcs9MessageDigest$instance extends Pkcs9AttributeObject {
|
|
484
|
-
readonly
|
|
485
|
-
|
|
484
|
+
readonly MessageDigest: byte[];
|
|
485
|
+
CopyFrom(asnEncodedData: AsnEncodedData): void;
|
|
486
486
|
}
|
|
487
487
|
|
|
488
488
|
|
|
@@ -494,8 +494,8 @@ export const Pkcs9MessageDigest: {
|
|
|
494
494
|
export type Pkcs9MessageDigest = Pkcs9MessageDigest$instance;
|
|
495
495
|
|
|
496
496
|
export interface Pkcs9SigningTime$instance extends Pkcs9AttributeObject {
|
|
497
|
-
readonly
|
|
498
|
-
|
|
497
|
+
readonly SigningTime: DateTime;
|
|
498
|
+
CopyFrom(asnEncodedData: AsnEncodedData): void;
|
|
499
499
|
}
|
|
500
500
|
|
|
501
501
|
|
|
@@ -509,8 +509,8 @@ export const Pkcs9SigningTime: {
|
|
|
509
509
|
export type Pkcs9SigningTime = Pkcs9SigningTime$instance;
|
|
510
510
|
|
|
511
511
|
export interface PublicKeyInfo$instance {
|
|
512
|
-
readonly
|
|
513
|
-
readonly
|
|
512
|
+
readonly Algorithm: AlgorithmIdentifier;
|
|
513
|
+
readonly KeyValue: byte[];
|
|
514
514
|
}
|
|
515
515
|
|
|
516
516
|
|
|
@@ -522,11 +522,11 @@ export const PublicKeyInfo: {
|
|
|
522
522
|
export type PublicKeyInfo = PublicKeyInfo$instance;
|
|
523
523
|
|
|
524
524
|
export interface RecipientInfo$instance {
|
|
525
|
-
readonly
|
|
526
|
-
readonly
|
|
527
|
-
readonly
|
|
528
|
-
readonly
|
|
529
|
-
readonly
|
|
525
|
+
readonly EncryptedKey: byte[];
|
|
526
|
+
readonly KeyEncryptionAlgorithm: AlgorithmIdentifier;
|
|
527
|
+
readonly RecipientIdentifier: SubjectIdentifier;
|
|
528
|
+
readonly Type: RecipientInfoType;
|
|
529
|
+
readonly Version: int;
|
|
530
530
|
}
|
|
531
531
|
|
|
532
532
|
|
|
@@ -537,13 +537,13 @@ export const RecipientInfo: {
|
|
|
537
537
|
export type RecipientInfo = RecipientInfo$instance;
|
|
538
538
|
|
|
539
539
|
export interface RecipientInfoCollection$instance {
|
|
540
|
-
readonly
|
|
541
|
-
readonly
|
|
542
|
-
readonly
|
|
543
|
-
readonly
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
540
|
+
readonly Count: int;
|
|
541
|
+
readonly IsSynchronized: boolean;
|
|
542
|
+
readonly Item: RecipientInfo;
|
|
543
|
+
readonly SyncRoot: unknown;
|
|
544
|
+
CopyTo(array: ClrArray, index: int): void;
|
|
545
|
+
CopyTo(array: RecipientInfo[], index: int): void;
|
|
546
|
+
GetEnumerator(): RecipientInfoEnumerator;
|
|
547
547
|
}
|
|
548
548
|
|
|
549
549
|
|
|
@@ -555,9 +555,9 @@ export const RecipientInfoCollection: {
|
|
|
555
555
|
export type RecipientInfoCollection = RecipientInfoCollection$instance;
|
|
556
556
|
|
|
557
557
|
export interface RecipientInfoEnumerator$instance {
|
|
558
|
-
readonly
|
|
559
|
-
|
|
560
|
-
|
|
558
|
+
readonly Current: RecipientInfo;
|
|
559
|
+
MoveNext(): boolean;
|
|
560
|
+
Reset(): void;
|
|
561
561
|
}
|
|
562
562
|
|
|
563
563
|
|
|
@@ -569,95 +569,95 @@ export const RecipientInfoEnumerator: {
|
|
|
569
569
|
export type RecipientInfoEnumerator = RecipientInfoEnumerator$instance;
|
|
570
570
|
|
|
571
571
|
export interface Rfc3161TimestampRequest$instance {
|
|
572
|
-
readonly
|
|
573
|
-
readonly
|
|
574
|
-
readonly
|
|
575
|
-
readonly
|
|
576
|
-
readonly
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
572
|
+
readonly HasExtensions: boolean;
|
|
573
|
+
readonly HashAlgorithmId: Oid;
|
|
574
|
+
readonly RequestedPolicyId: Oid | undefined;
|
|
575
|
+
readonly RequestSignerCertificate: boolean;
|
|
576
|
+
readonly Version: int;
|
|
577
|
+
Encode(): byte[];
|
|
578
|
+
GetExtensions(): X509ExtensionCollection;
|
|
579
|
+
GetMessageHash(): ReadOnlyMemory<System_Internal.Byte>;
|
|
580
|
+
GetNonce(): Nullable<ReadOnlyMemory<System_Internal.Byte>>;
|
|
581
|
+
ProcessResponse(responseBytes: ReadOnlyMemory<System_Internal.Byte>, bytesConsumed: int): Rfc3161TimestampToken;
|
|
582
|
+
TryEncode(destination: Span<System_Internal.Byte>, bytesWritten: int): boolean;
|
|
583
583
|
}
|
|
584
584
|
|
|
585
585
|
|
|
586
586
|
export const Rfc3161TimestampRequest: {
|
|
587
587
|
new(): Rfc3161TimestampRequest;
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
588
|
+
CreateFromData(data: ReadOnlySpan<System_Internal.Byte>, hashAlgorithm: HashAlgorithmName, requestedPolicyId?: Oid, nonce?: Nullable<ReadOnlyMemory<System_Internal.Byte>>, requestSignerCertificates?: boolean, extensions?: X509ExtensionCollection): Rfc3161TimestampRequest;
|
|
589
|
+
CreateFromHash(hash: ReadOnlyMemory<System_Internal.Byte>, hashAlgorithm: HashAlgorithmName, requestedPolicyId?: Oid, nonce?: Nullable<ReadOnlyMemory<System_Internal.Byte>>, requestSignerCertificates?: boolean, extensions?: X509ExtensionCollection): Rfc3161TimestampRequest;
|
|
590
|
+
CreateFromHash(hash: ReadOnlyMemory<System_Internal.Byte>, hashAlgorithmId: Oid, requestedPolicyId?: Oid, nonce?: Nullable<ReadOnlyMemory<System_Internal.Byte>>, requestSignerCertificates?: boolean, extensions?: X509ExtensionCollection): Rfc3161TimestampRequest;
|
|
591
|
+
CreateFromSignerInfo(signerInfo: SignerInfo, hashAlgorithm: HashAlgorithmName, requestedPolicyId?: Oid, nonce?: Nullable<ReadOnlyMemory<System_Internal.Byte>>, requestSignerCertificates?: boolean, extensions?: X509ExtensionCollection): Rfc3161TimestampRequest;
|
|
592
|
+
TryDecode(encodedBytes: ReadOnlyMemory<System_Internal.Byte>, request: Rfc3161TimestampRequest, bytesConsumed: int): boolean;
|
|
593
593
|
};
|
|
594
594
|
|
|
595
595
|
|
|
596
596
|
export type Rfc3161TimestampRequest = Rfc3161TimestampRequest$instance;
|
|
597
597
|
|
|
598
598
|
export interface Rfc3161TimestampToken$instance {
|
|
599
|
-
readonly
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
599
|
+
readonly TokenInfo: Rfc3161TimestampTokenInfo;
|
|
600
|
+
AsSignedCms(): SignedCms;
|
|
601
|
+
VerifySignatureForData(data: ReadOnlySpan<System_Internal.Byte>, signerCertificate: X509Certificate2, extraCandidates?: X509Certificate2Collection): boolean;
|
|
602
|
+
VerifySignatureForHash(hash: ReadOnlySpan<System_Internal.Byte>, hashAlgorithm: HashAlgorithmName, signerCertificate: X509Certificate2, extraCandidates?: X509Certificate2Collection): boolean;
|
|
603
|
+
VerifySignatureForHash(hash: ReadOnlySpan<System_Internal.Byte>, hashAlgorithmId: Oid, signerCertificate: X509Certificate2, extraCandidates?: X509Certificate2Collection): boolean;
|
|
604
|
+
VerifySignatureForSignerInfo(signerInfo: SignerInfo, signerCertificate: X509Certificate2, extraCandidates?: X509Certificate2Collection): boolean;
|
|
605
605
|
}
|
|
606
606
|
|
|
607
607
|
|
|
608
608
|
export const Rfc3161TimestampToken: {
|
|
609
609
|
new(): Rfc3161TimestampToken;
|
|
610
|
-
|
|
610
|
+
TryDecode(encodedBytes: ReadOnlyMemory<System_Internal.Byte>, token: Rfc3161TimestampToken, bytesConsumed: int): boolean;
|
|
611
611
|
};
|
|
612
612
|
|
|
613
613
|
|
|
614
614
|
export type Rfc3161TimestampToken = Rfc3161TimestampToken$instance;
|
|
615
615
|
|
|
616
616
|
export interface Rfc3161TimestampTokenInfo$instance {
|
|
617
|
-
readonly
|
|
618
|
-
readonly
|
|
619
|
-
readonly
|
|
620
|
-
readonly
|
|
621
|
-
readonly
|
|
622
|
-
readonly
|
|
623
|
-
readonly
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
617
|
+
readonly AccuracyInMicroseconds: Nullable<System_Internal.Int64>;
|
|
618
|
+
readonly HasExtensions: boolean;
|
|
619
|
+
readonly HashAlgorithmId: Oid;
|
|
620
|
+
readonly IsOrdering: boolean;
|
|
621
|
+
readonly PolicyId: Oid;
|
|
622
|
+
readonly Timestamp: DateTimeOffset;
|
|
623
|
+
readonly Version: int;
|
|
624
|
+
Encode(): byte[];
|
|
625
|
+
GetExtensions(): X509ExtensionCollection;
|
|
626
|
+
GetMessageHash(): ReadOnlyMemory<System_Internal.Byte>;
|
|
627
|
+
GetNonce(): Nullable<ReadOnlyMemory<System_Internal.Byte>>;
|
|
628
|
+
GetSerialNumber(): ReadOnlyMemory<System_Internal.Byte>;
|
|
629
|
+
GetTimestampAuthorityName(): Nullable<ReadOnlyMemory<System_Internal.Byte>>;
|
|
630
|
+
TryEncode(destination: Span<System_Internal.Byte>, bytesWritten: int): boolean;
|
|
631
631
|
}
|
|
632
632
|
|
|
633
633
|
|
|
634
634
|
export const Rfc3161TimestampTokenInfo: {
|
|
635
635
|
new(policyId: Oid, hashAlgorithmId: Oid, messageHash: ReadOnlyMemory<System_Internal.Byte>, serialNumber: ReadOnlyMemory<System_Internal.Byte>, timestamp: DateTimeOffset, accuracyInMicroseconds: Nullable<System_Internal.Int64>, isOrdering: boolean, nonce: Nullable<ReadOnlyMemory<System_Internal.Byte>>, timestampAuthorityName: Nullable<ReadOnlyMemory<System_Internal.Byte>>, extensions: X509ExtensionCollection): Rfc3161TimestampTokenInfo;
|
|
636
|
-
|
|
636
|
+
TryDecode(encodedBytes: ReadOnlyMemory<System_Internal.Byte>, timestampTokenInfo: Rfc3161TimestampTokenInfo, bytesConsumed: int): boolean;
|
|
637
637
|
};
|
|
638
638
|
|
|
639
639
|
|
|
640
640
|
export type Rfc3161TimestampTokenInfo = Rfc3161TimestampTokenInfo$instance;
|
|
641
641
|
|
|
642
642
|
export interface SignedCms$instance {
|
|
643
|
-
readonly
|
|
644
|
-
readonly
|
|
645
|
-
readonly
|
|
646
|
-
readonly
|
|
647
|
-
readonly
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
643
|
+
readonly Certificates: X509Certificate2Collection;
|
|
644
|
+
readonly ContentInfo: ContentInfo;
|
|
645
|
+
readonly Detached: boolean;
|
|
646
|
+
readonly SignerInfos: SignerInfoCollection;
|
|
647
|
+
readonly Version: int;
|
|
648
|
+
AddCertificate(certificate: X509Certificate2): void;
|
|
649
|
+
CheckHash(): void;
|
|
650
|
+
CheckSignature(verifySignatureOnly: boolean): void;
|
|
651
|
+
CheckSignature(extraStore: X509Certificate2Collection, verifySignatureOnly: boolean): void;
|
|
652
|
+
ComputeSignature(): void;
|
|
653
|
+
ComputeSignature(signer: CmsSigner): void;
|
|
654
|
+
ComputeSignature(signer: CmsSigner, silent: boolean): void;
|
|
655
|
+
Decode(encodedMessage: byte[]): void;
|
|
656
|
+
Decode(encodedMessage: ReadOnlySpan<System_Internal.Byte>): void;
|
|
657
|
+
Encode(): byte[];
|
|
658
|
+
RemoveCertificate(certificate: X509Certificate2): void;
|
|
659
|
+
RemoveSignature(index: int): void;
|
|
660
|
+
RemoveSignature(signerInfo: SignerInfo): void;
|
|
661
661
|
}
|
|
662
662
|
|
|
663
663
|
|
|
@@ -674,24 +674,24 @@ export const SignedCms: {
|
|
|
674
674
|
export type SignedCms = SignedCms$instance;
|
|
675
675
|
|
|
676
676
|
export interface SignerInfo$instance {
|
|
677
|
-
readonly
|
|
678
|
-
readonly
|
|
679
|
-
readonly
|
|
680
|
-
readonly
|
|
681
|
-
readonly
|
|
682
|
-
readonly
|
|
683
|
-
readonly
|
|
684
|
-
readonly
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
677
|
+
readonly Certificate: X509Certificate2;
|
|
678
|
+
readonly CounterSignerInfos: SignerInfoCollection;
|
|
679
|
+
readonly DigestAlgorithm: Oid;
|
|
680
|
+
readonly SignatureAlgorithm: Oid;
|
|
681
|
+
readonly SignedAttributes: CryptographicAttributeObjectCollection;
|
|
682
|
+
readonly SignerIdentifier: SubjectIdentifier;
|
|
683
|
+
readonly UnsignedAttributes: CryptographicAttributeObjectCollection;
|
|
684
|
+
readonly Version: int;
|
|
685
|
+
AddUnsignedAttribute(unsignedAttribute: AsnEncodedData): void;
|
|
686
|
+
CheckHash(): void;
|
|
687
|
+
CheckSignature(verifySignatureOnly: boolean): void;
|
|
688
|
+
CheckSignature(extraStore: X509Certificate2Collection, verifySignatureOnly: boolean): void;
|
|
689
|
+
ComputeCounterSignature(): void;
|
|
690
|
+
ComputeCounterSignature(signer: CmsSigner): void;
|
|
691
|
+
GetSignature(): byte[];
|
|
692
|
+
RemoveCounterSignature(index: int): void;
|
|
693
|
+
RemoveCounterSignature(counterSignerInfo: SignerInfo): void;
|
|
694
|
+
RemoveUnsignedAttribute(unsignedAttribute: AsnEncodedData): void;
|
|
695
695
|
}
|
|
696
696
|
|
|
697
697
|
|
|
@@ -703,13 +703,13 @@ export const SignerInfo: {
|
|
|
703
703
|
export type SignerInfo = SignerInfo$instance;
|
|
704
704
|
|
|
705
705
|
export interface SignerInfoCollection$instance {
|
|
706
|
-
readonly
|
|
707
|
-
readonly
|
|
708
|
-
readonly
|
|
709
|
-
readonly
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
706
|
+
readonly Count: int;
|
|
707
|
+
readonly IsSynchronized: boolean;
|
|
708
|
+
readonly Item: SignerInfo;
|
|
709
|
+
readonly SyncRoot: unknown;
|
|
710
|
+
CopyTo(array: ClrArray, index: int): void;
|
|
711
|
+
CopyTo(array: SignerInfo[], index: int): void;
|
|
712
|
+
GetEnumerator(): SignerInfoEnumerator;
|
|
713
713
|
}
|
|
714
714
|
|
|
715
715
|
|
|
@@ -721,9 +721,9 @@ export const SignerInfoCollection: {
|
|
|
721
721
|
export type SignerInfoCollection = SignerInfoCollection$instance;
|
|
722
722
|
|
|
723
723
|
export interface SignerInfoEnumerator$instance {
|
|
724
|
-
readonly
|
|
725
|
-
|
|
726
|
-
|
|
724
|
+
readonly Current: SignerInfo;
|
|
725
|
+
MoveNext(): boolean;
|
|
726
|
+
Reset(): void;
|
|
727
727
|
}
|
|
728
728
|
|
|
729
729
|
|
|
@@ -735,9 +735,9 @@ export const SignerInfoEnumerator: {
|
|
|
735
735
|
export type SignerInfoEnumerator = SignerInfoEnumerator$instance;
|
|
736
736
|
|
|
737
737
|
export interface SubjectIdentifier$instance {
|
|
738
|
-
readonly
|
|
739
|
-
readonly
|
|
740
|
-
|
|
738
|
+
readonly Type: SubjectIdentifierType;
|
|
739
|
+
readonly Value: unknown;
|
|
740
|
+
MatchesCertificate(certificate: X509Certificate2): boolean;
|
|
741
741
|
}
|
|
742
742
|
|
|
743
743
|
|
|
@@ -749,8 +749,8 @@ export const SubjectIdentifier: {
|
|
|
749
749
|
export type SubjectIdentifier = SubjectIdentifier$instance;
|
|
750
750
|
|
|
751
751
|
export interface SubjectIdentifierOrKey$instance {
|
|
752
|
-
readonly
|
|
753
|
-
readonly
|
|
752
|
+
readonly Type: SubjectIdentifierOrKeyType;
|
|
753
|
+
readonly Value: unknown;
|
|
754
754
|
}
|
|
755
755
|
|
|
756
756
|
|