@tsonic/efcore-sqlserver 0.1.2 → 10.0.2

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.
Files changed (263) hide show
  1. package/Azure/bindings.json +1638 -2427
  2. package/Azure/internal/index.d.ts +169 -139
  3. package/Azure.Core/bindings.json +2874 -3751
  4. package/Azure.Core/internal/index.d.ts +326 -295
  5. package/Azure.Core.Cryptography/bindings.json +51 -65
  6. package/Azure.Core.Cryptography/internal/index.d.ts +5 -5
  7. package/Azure.Core.Diagnostics/bindings.json +79 -69
  8. package/Azure.Core.Diagnostics/internal/index.d.ts +13 -7
  9. package/Azure.Core.Diagnostics.d.ts +2 -2
  10. package/Azure.Core.Extensions/bindings.json +71 -57
  11. package/Azure.Core.Extensions/internal/index.d.ts +4 -4
  12. package/Azure.Core.GeoJson/bindings.json +814 -1379
  13. package/Azure.Core.GeoJson/internal/index.d.ts +67 -67
  14. package/Azure.Core.Pipeline/bindings.json +847 -880
  15. package/Azure.Core.Pipeline/internal/index.d.ts +79 -56
  16. package/Azure.Core.Pipeline.d.ts +2 -2
  17. package/Azure.Core.Serialization/bindings.json +251 -302
  18. package/Azure.Core.Serialization/internal/index.d.ts +22 -21
  19. package/Azure.Core.d.ts +1 -1
  20. package/Azure.Identity/bindings.json +2882 -7099
  21. package/Azure.Identity/internal/index.d.ts +250 -229
  22. package/Azure.Identity.d.ts +1 -1
  23. package/Azure.Messaging/bindings.json +166 -230
  24. package/Azure.Messaging/internal/index.d.ts +27 -22
  25. package/Azure.d.ts +1 -1
  26. package/Microsoft.Data/bindings.json +34 -27
  27. package/Microsoft.Data/internal/index.d.ts +2 -2
  28. package/Microsoft.Data.Sql/bindings.json +57 -94
  29. package/Microsoft.Data.Sql/internal/index.d.ts +5 -5
  30. package/Microsoft.Data.SqlClient/bindings.json +6187 -8407
  31. package/Microsoft.Data.SqlClient/internal/index.d.ts +718 -626
  32. package/Microsoft.Data.SqlClient.DataClassification/bindings.json +173 -283
  33. package/Microsoft.Data.SqlClient.DataClassification/internal/index.d.ts +12 -12
  34. package/Microsoft.Data.SqlClient.Diagnostics/bindings.json +1458 -1995
  35. package/Microsoft.Data.SqlClient.Diagnostics/internal/index.d.ts +159 -159
  36. package/Microsoft.Data.SqlClient.Server/bindings.json +1112 -1776
  37. package/Microsoft.Data.SqlClient.Server/internal/index.d.ts +131 -131
  38. package/Microsoft.Data.SqlTypes/bindings.json +257 -405
  39. package/Microsoft.Data.SqlTypes/internal/index.d.ts +30 -30
  40. package/Microsoft.EntityFrameworkCore/bindings.json +7017 -8970
  41. package/Microsoft.EntityFrameworkCore/internal/index.d.ts +533 -526
  42. package/Microsoft.EntityFrameworkCore.Diagnostics/bindings.json +92 -304
  43. package/Microsoft.EntityFrameworkCore.Diagnostics/internal/index.d.ts +26 -26
  44. package/Microsoft.EntityFrameworkCore.Infrastructure/bindings.json +269 -289
  45. package/Microsoft.EntityFrameworkCore.Infrastructure/internal/index.d.ts +22 -21
  46. package/Microsoft.EntityFrameworkCore.Metadata/bindings.json +44 -59
  47. package/Microsoft.EntityFrameworkCore.Metadata/internal/index.d.ts +4 -4
  48. package/Microsoft.EntityFrameworkCore.Metadata.Builders/bindings.json +311 -536
  49. package/Microsoft.EntityFrameworkCore.Metadata.Builders/internal/index.d.ts +32 -32
  50. package/Microsoft.EntityFrameworkCore.Metadata.Conventions/bindings.json +1083 -457
  51. package/Microsoft.EntityFrameworkCore.Metadata.Conventions/internal/index.d.ts +111 -39
  52. package/Microsoft.EntityFrameworkCore.Metadata.Conventions.d.ts +3 -2
  53. package/Microsoft.EntityFrameworkCore.Metadata.Internal/bindings.json +41 -30
  54. package/Microsoft.EntityFrameworkCore.Metadata.Internal/internal/index.d.ts +2 -2
  55. package/Microsoft.EntityFrameworkCore.Migrations/bindings.json +946 -40
  56. package/Microsoft.EntityFrameworkCore.Migrations/internal/index.d.ts +58 -8
  57. package/Microsoft.EntityFrameworkCore.Migrations.Operations/bindings.json +72 -61
  58. package/Microsoft.EntityFrameworkCore.Migrations.Operations/internal/index.d.ts +4 -4
  59. package/Microsoft.EntityFrameworkCore.Migrations.d.ts +6 -5
  60. package/Microsoft.EntityFrameworkCore.SqlServer.Design.Internal/bindings.json +233 -207
  61. package/Microsoft.EntityFrameworkCore.SqlServer.Design.Internal/internal/index.d.ts +25 -17
  62. package/Microsoft.EntityFrameworkCore.SqlServer.Design.Internal.d.ts +1 -1
  63. package/Microsoft.EntityFrameworkCore.SqlServer.Diagnostics.Internal/bindings.json +60 -267
  64. package/Microsoft.EntityFrameworkCore.SqlServer.Diagnostics.Internal/internal/index.d.ts +23 -23
  65. package/Microsoft.EntityFrameworkCore.SqlServer.Extensions.Internal/bindings.json +175 -257
  66. package/Microsoft.EntityFrameworkCore.SqlServer.Extensions.Internal/internal/index.d.ts +23 -23
  67. package/Microsoft.EntityFrameworkCore.SqlServer.Infrastructure.Internal/bindings.json +666 -569
  68. package/Microsoft.EntityFrameworkCore.SqlServer.Infrastructure.Internal/internal/index.d.ts +69 -45
  69. package/Microsoft.EntityFrameworkCore.SqlServer.Infrastructure.Internal.d.ts +3 -2
  70. package/Microsoft.EntityFrameworkCore.SqlServer.Internal/bindings.json +565 -879
  71. package/Microsoft.EntityFrameworkCore.SqlServer.Internal/internal/index.d.ts +79 -79
  72. package/Microsoft.EntityFrameworkCore.SqlServer.Metadata.Internal/bindings.json +138 -469
  73. package/Microsoft.EntityFrameworkCore.SqlServer.Metadata.Internal/internal/index.d.ts +41 -41
  74. package/Microsoft.EntityFrameworkCore.SqlServer.Migrations.Internal/bindings.json +204 -211
  75. package/Microsoft.EntityFrameworkCore.SqlServer.Migrations.Internal/internal/index.d.ts +23 -17
  76. package/Microsoft.EntityFrameworkCore.SqlServer.Migrations.Internal.d.ts +1 -1
  77. package/Microsoft.EntityFrameworkCore.SqlServer.Query.Internal/bindings.json +3431 -2277
  78. package/Microsoft.EntityFrameworkCore.SqlServer.Query.Internal/internal/index.d.ts +326 -147
  79. package/Microsoft.EntityFrameworkCore.SqlServer.Query.Internal.SqlExpressions/bindings.json +71 -60
  80. package/Microsoft.EntityFrameworkCore.SqlServer.Query.Internal.SqlExpressions/internal/index.d.ts +12 -7
  81. package/Microsoft.EntityFrameworkCore.SqlServer.Query.Internal.SqlExpressions.d.ts +2 -2
  82. package/Microsoft.EntityFrameworkCore.SqlServer.Query.Internal.d.ts +5 -5
  83. package/Microsoft.EntityFrameworkCore.SqlServer.Scaffolding.Internal/bindings.json +90 -98
  84. package/Microsoft.EntityFrameworkCore.SqlServer.Scaffolding.Internal/internal/index.d.ts +6 -6
  85. package/Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal/bindings.json +2295 -1113
  86. package/Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal/internal/index.d.ts +263 -93
  87. package/Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.d.ts +2 -2
  88. package/Microsoft.EntityFrameworkCore.SqlServer.Update.Internal/bindings.json +548 -284
  89. package/Microsoft.EntityFrameworkCore.SqlServer.Update.Internal/internal/index.d.ts +54 -23
  90. package/Microsoft.EntityFrameworkCore.SqlServer.Update.Internal.d.ts +3 -3
  91. package/Microsoft.EntityFrameworkCore.SqlServer.ValueGeneration.Internal/bindings.json +252 -204
  92. package/Microsoft.EntityFrameworkCore.SqlServer.ValueGeneration.Internal/internal/index.d.ts +25 -12
  93. package/Microsoft.EntityFrameworkCore.SqlServer.ValueGeneration.Internal.d.ts +3 -1
  94. package/Microsoft.EntityFrameworkCore.d.ts +1 -1
  95. package/Microsoft.Extensions.DependencyInjection/bindings.json +62 -70
  96. package/Microsoft.Extensions.DependencyInjection/internal/index.d.ts +6 -6
  97. package/Microsoft.Identity.Client/bindings.json +6237 -13523
  98. package/Microsoft.Identity.Client/internal/index.d.ts +741 -675
  99. package/Microsoft.Identity.Client.Advanced/bindings.json +21 -15
  100. package/Microsoft.Identity.Client.Advanced/internal/index.d.ts +1 -1
  101. package/Microsoft.Identity.Client.AppConfig/bindings.json +90 -148
  102. package/Microsoft.Identity.Client.AppConfig/internal/index.d.ts +10 -10
  103. package/Microsoft.Identity.Client.AuthScheme/bindings.json +48 -72
  104. package/Microsoft.Identity.Client.AuthScheme/internal/index.d.ts +6 -6
  105. package/Microsoft.Identity.Client.AuthScheme.PoP/bindings.json +29 -39
  106. package/Microsoft.Identity.Client.AuthScheme.PoP/internal/index.d.ts +3 -3
  107. package/Microsoft.Identity.Client.Cache/bindings.json +65 -95
  108. package/Microsoft.Identity.Client.Cache/internal/index.d.ts +6 -6
  109. package/Microsoft.Identity.Client.Extensibility/bindings.json +297 -380
  110. package/Microsoft.Identity.Client.Extensibility/internal/index.d.ts +27 -26
  111. package/Microsoft.Identity.Client.Extensions.Msal/bindings.json +379 -668
  112. package/Microsoft.Identity.Client.Extensions.Msal/internal/index.d.ts +51 -50
  113. package/Microsoft.Identity.Client.Extensions.Msal.d.ts +1 -1
  114. package/Microsoft.Identity.Client.Kerberos/bindings.json +191 -288
  115. package/Microsoft.Identity.Client.Kerberos/internal/index.d.ts +21 -21
  116. package/Microsoft.Identity.Client.ManagedIdentity/bindings.json +50 -103
  117. package/Microsoft.Identity.Client.ManagedIdentity/internal/index.d.ts +8 -8
  118. package/Microsoft.Identity.Client.Platforms.Features.DesktopOs.Kerberos/bindings.json +30 -12
  119. package/Microsoft.Identity.Client.Platforms.Features.DesktopOs.Kerberos/internal/index.d.ts +2 -1
  120. package/Microsoft.Identity.Client.RP/bindings.json +39 -30
  121. package/Microsoft.Identity.Client.RP/internal/index.d.ts +2 -2
  122. package/Microsoft.Identity.Client.Region/bindings.json +46 -81
  123. package/Microsoft.Identity.Client.Region/internal/index.d.ts +6 -6
  124. package/Microsoft.Identity.Client.SSHCertificates/bindings.json +28 -26
  125. package/Microsoft.Identity.Client.SSHCertificates/internal/index.d.ts +2 -2
  126. package/Microsoft.Identity.Client.TelemetryCore.TelemetryClient/bindings.json +20 -25
  127. package/Microsoft.Identity.Client.TelemetryCore.TelemetryClient/internal/index.d.ts +1 -1
  128. package/Microsoft.Identity.Client.Utils/bindings.json +56 -70
  129. package/Microsoft.Identity.Client.Utils/internal/index.d.ts +6 -6
  130. package/Microsoft.Identity.Client.Utils.Windows/bindings.json +28 -26
  131. package/Microsoft.Identity.Client.Utils.Windows/internal/index.d.ts +2 -2
  132. package/Microsoft.IdentityModel.Abstractions/bindings.json +426 -581
  133. package/Microsoft.IdentityModel.Abstractions/internal/index.d.ts +42 -41
  134. package/Microsoft.IdentityModel.JsonWebTokens/bindings.json +828 -1776
  135. package/Microsoft.IdentityModel.JsonWebTokens/internal/index.d.ts +154 -147
  136. package/Microsoft.IdentityModel.JsonWebTokens.d.ts +1 -1
  137. package/Microsoft.IdentityModel.Logging/bindings.json +516 -773
  138. package/Microsoft.IdentityModel.Logging/internal/index.d.ts +69 -64
  139. package/Microsoft.IdentityModel.Logging.d.ts +1 -1
  140. package/Microsoft.IdentityModel.Protocols/bindings.json +507 -898
  141. package/Microsoft.IdentityModel.Protocols/internal/index.d.ts +47 -46
  142. package/Microsoft.IdentityModel.Protocols.Configuration/bindings.json +43 -94
  143. package/Microsoft.IdentityModel.Protocols.Configuration/internal/index.d.ts +3 -2
  144. package/Microsoft.IdentityModel.Protocols.Configuration.d.ts +1 -1
  145. package/Microsoft.IdentityModel.Protocols.OpenIdConnect/bindings.json +2335 -4306
  146. package/Microsoft.IdentityModel.Protocols.OpenIdConnect/internal/index.d.ts +316 -301
  147. package/Microsoft.IdentityModel.Protocols.OpenIdConnect.Configuration/bindings.json +45 -50
  148. package/Microsoft.IdentityModel.Protocols.OpenIdConnect.Configuration/internal/index.d.ts +2 -2
  149. package/Microsoft.IdentityModel.Protocols.OpenIdConnect.d.ts +1 -1
  150. package/Microsoft.IdentityModel.Tokens/bindings.json +5594 -8774
  151. package/Microsoft.IdentityModel.Tokens/internal/index.d.ts +578 -478
  152. package/Microsoft.IdentityModel.Tokens.Configuration/bindings.json +40 -71
  153. package/Microsoft.IdentityModel.Tokens.Configuration/internal/index.d.ts +5 -5
  154. package/Microsoft.IdentityModel.Tokens.d.ts +1 -1
  155. package/Microsoft.SqlServer.Server/bindings.json +385 -633
  156. package/Microsoft.SqlServer.Server/internal/index.d.ts +40 -40
  157. package/System/bindings.json +236 -402
  158. package/System/internal/index.d.ts +28 -28
  159. package/System.ClientModel/bindings.json +448 -433
  160. package/System.ClientModel/internal/index.d.ts +48 -32
  161. package/System.ClientModel.Primitives/bindings.json +2665 -2310
  162. package/System.ClientModel.Primitives/internal/index.d.ts +269 -175
  163. package/System.ClientModel.Primitives.d.ts +2 -2
  164. package/System.Configuration/bindings.json +9039 -12341
  165. package/System.Configuration/internal/index.d.ts +837 -565
  166. package/System.Configuration.Internal/bindings.json +985 -1442
  167. package/System.Configuration.Internal/internal/index.d.ts +115 -115
  168. package/System.Configuration.Provider/bindings.json +155 -188
  169. package/System.Configuration.Provider/internal/index.d.ts +16 -14
  170. package/System.Configuration.Provider.d.ts +1 -1
  171. package/System.Configuration.d.ts +3 -3
  172. package/System.Diagnostics/bindings.json +28 -15
  173. package/System.Diagnostics/internal/index.d.ts +1 -1
  174. package/System.Drawing.Configuration/bindings.json +39 -137
  175. package/System.Drawing.Configuration/internal/index.d.ts +12 -4
  176. package/System.Drawing.Configuration.d.ts +5 -2
  177. package/System.IdentityModel.Tokens.Jwt/bindings.json +1367 -2255
  178. package/System.IdentityModel.Tokens.Jwt/internal/index.d.ts +184 -170
  179. package/System.Security.Cryptography/bindings.json +66 -63
  180. package/System.Security.Cryptography/internal/index.d.ts +4 -4
  181. package/System.Text.Json.Serialization/bindings.json +32 -36
  182. package/System.Text.Json.Serialization/internal/index.d.ts +2 -2
  183. package/__build/scripts/generate.sh +4 -4
  184. package/__internal/extensions/index.d.ts +27 -27
  185. package/package.json +5 -5
  186. package/Azure/internal/metadata.json +0 -2772
  187. package/Azure.Core/internal/metadata.json +0 -5291
  188. package/Azure.Core.Cryptography/internal/metadata.json +0 -122
  189. package/Azure.Core.Diagnostics/internal/metadata.json +0 -87
  190. package/Azure.Core.Extensions/internal/metadata.json +0 -139
  191. package/Azure.Core.GeoJson/internal/metadata.json +0 -1469
  192. package/Azure.Core.Pipeline/internal/metadata.json +0 -1181
  193. package/Azure.Core.Serialization/internal/metadata.json +0 -468
  194. package/Azure.Identity/internal/metadata.json +0 -5255
  195. package/Azure.Messaging/internal/metadata.json +0 -316
  196. package/Microsoft.Data/internal/metadata.json +0 -59
  197. package/Microsoft.Data.Sql/internal/metadata.json +0 -136
  198. package/Microsoft.Data.SqlClient/internal/metadata.json +0 -10965
  199. package/Microsoft.Data.SqlClient.DataClassification/internal/metadata.json +0 -383
  200. package/Microsoft.Data.SqlClient.Diagnostics/internal/metadata.json +0 -2693
  201. package/Microsoft.Data.SqlClient.Server/internal/metadata.json +0 -2235
  202. package/Microsoft.Data.SqlTypes/internal/metadata.json +0 -558
  203. package/Microsoft.EntityFrameworkCore/internal/metadata.json +0 -9025
  204. package/Microsoft.EntityFrameworkCore.Diagnostics/internal/metadata.json +0 -303
  205. package/Microsoft.EntityFrameworkCore.Infrastructure/internal/metadata.json +0 -455
  206. package/Microsoft.EntityFrameworkCore.Metadata/internal/metadata.json +0 -72
  207. package/Microsoft.EntityFrameworkCore.Metadata.Builders/internal/metadata.json +0 -660
  208. package/Microsoft.EntityFrameworkCore.Metadata.Conventions/internal/metadata.json +0 -706
  209. package/Microsoft.EntityFrameworkCore.Metadata.Internal/internal/metadata.json +0 -88
  210. package/Microsoft.EntityFrameworkCore.Migrations/internal/metadata.json +0 -81
  211. package/Microsoft.EntityFrameworkCore.Migrations.Operations/internal/metadata.json +0 -100
  212. package/Microsoft.EntityFrameworkCore.SqlServer.Design.Internal/internal/metadata.json +0 -317
  213. package/Microsoft.EntityFrameworkCore.SqlServer.Diagnostics.Internal/internal/metadata.json +0 -238
  214. package/Microsoft.EntityFrameworkCore.SqlServer.Extensions.Internal/internal/metadata.json +0 -393
  215. package/Microsoft.EntityFrameworkCore.SqlServer.Infrastructure.Internal/internal/metadata.json +0 -790
  216. package/Microsoft.EntityFrameworkCore.SqlServer.Internal/internal/metadata.json +0 -1294
  217. package/Microsoft.EntityFrameworkCore.SqlServer.Metadata.Internal/internal/metadata.json +0 -452
  218. package/Microsoft.EntityFrameworkCore.SqlServer.Migrations.Internal/internal/metadata.json +0 -317
  219. package/Microsoft.EntityFrameworkCore.SqlServer.Query.Internal/internal/metadata.json +0 -3289
  220. package/Microsoft.EntityFrameworkCore.SqlServer.Query.Internal.SqlExpressions/internal/metadata.json +0 -95
  221. package/Microsoft.EntityFrameworkCore.SqlServer.Scaffolding.Internal/internal/metadata.json +0 -167
  222. package/Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal/internal/metadata.json +0 -1697
  223. package/Microsoft.EntityFrameworkCore.SqlServer.Update.Internal/internal/metadata.json +0 -500
  224. package/Microsoft.EntityFrameworkCore.SqlServer.ValueGeneration.Internal/internal/metadata.json +0 -339
  225. package/Microsoft.Extensions.DependencyInjection/internal/metadata.json +0 -127
  226. package/Microsoft.Identity.Client/internal/metadata.json +0 -11985
  227. package/Microsoft.Identity.Client.Advanced/internal/metadata.json +0 -41
  228. package/Microsoft.Identity.Client.AppConfig/internal/metadata.json +0 -212
  229. package/Microsoft.Identity.Client.AuthScheme/internal/metadata.json +0 -118
  230. package/Microsoft.Identity.Client.AuthScheme.PoP/internal/metadata.json +0 -72
  231. package/Microsoft.Identity.Client.Cache/internal/metadata.json +0 -123
  232. package/Microsoft.Identity.Client.Extensibility/internal/metadata.json +0 -620
  233. package/Microsoft.Identity.Client.Extensions.Msal/internal/metadata.json +0 -877
  234. package/Microsoft.Identity.Client.Kerberos/internal/metadata.json +0 -386
  235. package/Microsoft.Identity.Client.ManagedIdentity/internal/metadata.json +0 -106
  236. package/Microsoft.Identity.Client.Platforms.Features.DesktopOs.Kerberos/internal/metadata.json +0 -41
  237. package/Microsoft.Identity.Client.RP/internal/metadata.json +0 -74
  238. package/Microsoft.Identity.Client.Region/internal/metadata.json +0 -88
  239. package/Microsoft.Identity.Client.SSHCertificates/internal/metadata.json +0 -57
  240. package/Microsoft.Identity.Client.TelemetryCore.TelemetryClient/internal/metadata.json +0 -46
  241. package/Microsoft.Identity.Client.Utils/internal/metadata.json +0 -121
  242. package/Microsoft.Identity.Client.Utils.Windows/internal/metadata.json +0 -57
  243. package/Microsoft.IdentityModel.Abstractions/internal/metadata.json +0 -843
  244. package/Microsoft.IdentityModel.JsonWebTokens/internal/metadata.json +0 -1997
  245. package/Microsoft.IdentityModel.Logging/internal/metadata.json +0 -1117
  246. package/Microsoft.IdentityModel.Protocols/internal/metadata.json +0 -1067
  247. package/Microsoft.IdentityModel.Protocols.Configuration/internal/metadata.json +0 -72
  248. package/Microsoft.IdentityModel.Protocols.OpenIdConnect/internal/metadata.json +0 -4288
  249. package/Microsoft.IdentityModel.Protocols.OpenIdConnect.Configuration/internal/metadata.json +0 -80
  250. package/Microsoft.IdentityModel.Tokens/internal/metadata.json +0 -10430
  251. package/Microsoft.IdentityModel.Tokens.Configuration/internal/metadata.json +0 -101
  252. package/Microsoft.SqlServer.Server/internal/metadata.json +0 -792
  253. package/System/internal/metadata.json +0 -523
  254. package/System.ClientModel/internal/metadata.json +0 -637
  255. package/System.ClientModel.Primitives/internal/metadata.json +0 -3433
  256. package/System.Configuration/internal/metadata.json +0 -11888
  257. package/System.Configuration.Internal/internal/metadata.json +0 -2269
  258. package/System.Configuration.Provider/internal/metadata.json +0 -284
  259. package/System.Diagnostics/internal/metadata.json +0 -48
  260. package/System.Drawing.Configuration/internal/metadata.json +0 -46
  261. package/System.IdentityModel.Tokens.Jwt/internal/metadata.json +0 -2556
  262. package/System.Security.Cryptography/internal/metadata.json +0 -104
  263. package/System.Text.Json.Serialization/internal/metadata.json +0 -70
@@ -20,7 +20,7 @@ import * as System_Runtime_Serialization_Internal from "@tsonic/dotnet/System.Ru
20
20
  import type { ISerializable, SerializationInfo, StreamingContext } from "@tsonic/dotnet/System.Runtime.Serialization.js";
21
21
  import * as System_Security_Claims_Internal from "@tsonic/dotnet/System.Security.Claims.js";
22
22
  import type { Claim, ClaimsIdentity, ClaimsPrincipal } from "@tsonic/dotnet/System.Security.Claims.js";
23
- import type { AsymmetricAlgorithm, ECDsa, HashAlgorithm, HashAlgorithmName, KeyedHashAlgorithm, RSA, RSAParameters } from "@tsonic/dotnet/System.Security.Cryptography.js";
23
+ import type { AsymmetricAlgorithm, ECDsa, HashAlgorithm, HashAlgorithmName, KeyedHashAlgorithm, RSA, RSAParameters, SymmetricAlgorithm } from "@tsonic/dotnet/System.Security.Cryptography.js";
24
24
  import type { X509Certificate2 } from "@tsonic/dotnet/System.Security.Cryptography.X509Certificates.js";
25
25
  import * as System_Security_Principal_Internal from "@tsonic/dotnet/System.Security.Principal.js";
26
26
  import type { IIdentity } from "@tsonic/dotnet/System.Security.Principal.js";
@@ -29,16 +29,16 @@ import type { Task } from "@tsonic/dotnet/System.Threading.Tasks.js";
29
29
  import type { XmlReader, XmlWriter } from "@tsonic/dotnet/System.Xml.js";
30
30
 
31
31
  export enum PrivateKeyStatus {
32
- exists = 0,
33
- doesNotExist = 1,
34
- unknown = 2
32
+ Exists = 0,
33
+ DoesNotExist = 1,
34
+ Unknown = 2
35
35
  }
36
36
 
37
37
 
38
38
  export enum ValidationFailure {
39
- none = 0,
40
- invalidLifetime = 1,
41
- invalidIssuer = 2
39
+ None = 0,
40
+ InvalidLifetime = 1,
41
+ InvalidIssuer = 2
42
42
  }
43
43
 
44
44
 
@@ -91,44 +91,44 @@ export type TypeValidator = (type: string, securityToken: SecurityToken, validat
91
91
 
92
92
 
93
93
  export interface ICompressionProvider$instance {
94
- readonly algorithm: string;
95
- decompress(value: byte[]): byte[];
96
- isSupportedAlgorithm(algorithm: string): boolean;
94
+ readonly Algorithm: string;
95
+ Decompress(value: byte[]): byte[];
96
+ IsSupportedAlgorithm(algorithm: string): boolean;
97
97
  }
98
98
 
99
99
 
100
100
  export type ICompressionProvider = ICompressionProvider$instance;
101
101
 
102
102
  export interface ICryptoProvider$instance {
103
- create(algorithm: string, ...args: unknown[]): unknown;
104
- isSupportedAlgorithm(algorithm: string, ...args: unknown[]): boolean;
105
- release(cryptoInstance: unknown): void;
103
+ Create(algorithm: string, ...args: unknown[]): unknown;
104
+ IsSupportedAlgorithm(algorithm: string, ...args: unknown[]): boolean;
105
+ Release(cryptoInstance: unknown): void;
106
106
  }
107
107
 
108
108
 
109
109
  export type ICryptoProvider = ICryptoProvider$instance;
110
110
 
111
111
  export interface ISecurityTokenValidator$instance {
112
- readonly canValidateToken: boolean;
113
- maximumTokenSizeInBytes: int;
114
- canReadToken(securityToken: string): boolean;
115
- validateToken(securityToken: string, validationParameters: TokenValidationParameters, validatedToken: SecurityToken): ClaimsPrincipal;
112
+ readonly CanValidateToken: boolean;
113
+ MaximumTokenSizeInBytes: int;
114
+ CanReadToken(securityToken: string): boolean;
115
+ ValidateToken(securityToken: string, validationParameters: TokenValidationParameters, validatedToken: SecurityToken): ClaimsPrincipal;
116
116
  }
117
117
 
118
118
 
119
119
  export type ISecurityTokenValidator = ISecurityTokenValidator$instance;
120
120
 
121
121
  export interface ITokenReplayCache$instance {
122
- tryAdd(securityToken: string, expiresOn: DateTime): boolean;
123
- tryFind(securityToken: string): boolean;
122
+ TryAdd(securityToken: string, expiresOn: DateTime): boolean;
123
+ TryFind(securityToken: string): boolean;
124
124
  }
125
125
 
126
126
 
127
127
  export type ITokenReplayCache = ITokenReplayCache$instance;
128
128
 
129
129
  export interface AsymmetricSecurityKey$instance extends SecurityKey {
130
- readonly hasPrivateKey: boolean;
131
- readonly privateKeyStatus: PrivateKeyStatus;
130
+ readonly HasPrivateKey: boolean;
131
+ readonly PrivateKeyStatus: PrivateKeyStatus;
132
132
  }
133
133
 
134
134
 
@@ -139,37 +139,52 @@ export const AsymmetricSecurityKey: {
139
139
 
140
140
  export type AsymmetricSecurityKey = AsymmetricSecurityKey$instance;
141
141
 
142
- export interface AsymmetricSignatureProvider$instance extends SignatureProvider {
143
- readonly minimumAsymmetricKeySizeInBitsForSigningMap: IReadOnlyDictionary<System_Internal.String, System_Internal.Int32>;
144
- readonly minimumAsymmetricKeySizeInBitsForVerifyingMap: IReadOnlyDictionary<System_Internal.String, System_Internal.Int32>;
145
- sign(input: ReadOnlySpan<System_Internal.Byte>, signature: Span<System_Internal.Byte>, bytesWritten: int): boolean;
146
- sign(input: byte[]): byte[];
147
- sign(input: byte[], offset: int, count: int): byte[];
148
- sign(data: ReadOnlySpan<System_Internal.Byte>, destination: Span<System_Internal.Byte>, bytesWritten: int): boolean;
149
- validateAsymmetricSecurityKeySize(key: SecurityKey, algorithm: string, willCreateSignatures: boolean): void;
150
- verify(input: byte[], signature: byte[]): boolean;
151
- verify(input: byte[], inputOffset: int, inputLength: int, signature: byte[], signatureOffset: int, signatureLength: int): boolean;
142
+ export abstract class AsymmetricSignatureProvider$protected {
143
+ protected Dispose2(disposing: boolean): void;
144
+ protected GetHashAlgorithmName(algorithm: string): HashAlgorithmName;
145
+ }
146
+
147
+
148
+ export interface AsymmetricSignatureProvider$instance extends AsymmetricSignatureProvider$protected, SignatureProvider {
149
+ readonly MinimumAsymmetricKeySizeInBitsForSigningMap: IReadOnlyDictionary<System_Internal.String, System_Internal.Int32>;
150
+ readonly MinimumAsymmetricKeySizeInBitsForVerifyingMap: IReadOnlyDictionary<System_Internal.String, System_Internal.Int32>;
151
+ Dispose(): void;
152
+ Sign(input: ReadOnlySpan<System_Internal.Byte>, signature: Span<System_Internal.Byte>, bytesWritten: int): boolean;
153
+ Sign(input: byte[]): byte[];
154
+ Sign(input: byte[], offset: int, count: int): byte[];
155
+ Sign(data: ReadOnlySpan<System_Internal.Byte>, destination: Span<System_Internal.Byte>, bytesWritten: int): boolean;
156
+ ValidateAsymmetricSecurityKeySize(key: SecurityKey, algorithm: string, willCreateSignatures: boolean): void;
157
+ Verify(input: byte[], signature: byte[]): boolean;
158
+ Verify(input: byte[], inputOffset: int, inputLength: int, signature: byte[], signatureOffset: int, signatureLength: int): boolean;
152
159
  }
153
160
 
154
161
 
155
162
  export const AsymmetricSignatureProvider: {
156
163
  new(key: SecurityKey, algorithm: string): AsymmetricSignatureProvider;
157
164
  new(key: SecurityKey, algorithm: string, willCreateSignatures: boolean): AsymmetricSignatureProvider;
158
- readonly defaultMinimumAsymmetricKeySizeInBitsForSigningMap: Dictionary<System_Internal.String, System_Internal.Int32>;
159
- readonly defaultMinimumAsymmetricKeySizeInBitsForVerifyingMap: Dictionary<System_Internal.String, System_Internal.Int32>;
165
+ readonly DefaultMinimumAsymmetricKeySizeInBitsForSigningMap: Dictionary<System_Internal.String, System_Internal.Int32>;
166
+ readonly DefaultMinimumAsymmetricKeySizeInBitsForVerifyingMap: Dictionary<System_Internal.String, System_Internal.Int32>;
160
167
  };
161
168
 
162
169
 
163
170
  export type AsymmetricSignatureProvider = AsymmetricSignatureProvider$instance;
164
171
 
165
- export interface AuthenticatedEncryptionProvider$instance {
166
- readonly algorithm: string;
167
- context: string;
168
- readonly key: SecurityKey;
169
- decrypt(ciphertext: byte[], authenticatedData: byte[], iv: byte[], authenticationTag: byte[]): byte[];
170
- dispose(): void;
171
- encrypt(plaintext: byte[], authenticatedData: byte[]): AuthenticatedEncryptionResult;
172
- encrypt(plaintext: byte[], authenticatedData: byte[], iv: byte[]): AuthenticatedEncryptionResult;
172
+ export abstract class AuthenticatedEncryptionProvider$protected {
173
+ protected Dispose(disposing: boolean): void;
174
+ protected GetKeyBytes(key: SecurityKey): byte[];
175
+ protected IsSupportedAlgorithm(key: SecurityKey, algorithm: string): boolean;
176
+ protected ValidateKeySize(key: SecurityKey, algorithm: string): void;
177
+ }
178
+
179
+
180
+ export interface AuthenticatedEncryptionProvider$instance extends AuthenticatedEncryptionProvider$protected {
181
+ readonly Algorithm: string;
182
+ Context: string;
183
+ readonly Key: SecurityKey;
184
+ Decrypt(ciphertext: byte[], authenticatedData: byte[], iv: byte[], authenticationTag: byte[]): byte[];
185
+ Dispose(): void;
186
+ Encrypt(plaintext: byte[], authenticatedData: byte[]): AuthenticatedEncryptionResult;
187
+ Encrypt(plaintext: byte[], authenticatedData: byte[], iv: byte[]): AuthenticatedEncryptionResult;
173
188
  }
174
189
 
175
190
 
@@ -181,10 +196,10 @@ export const AuthenticatedEncryptionProvider: {
181
196
  export type AuthenticatedEncryptionProvider = AuthenticatedEncryptionProvider$instance;
182
197
 
183
198
  export interface AuthenticatedEncryptionResult$instance {
184
- readonly authenticationTag: byte[];
185
- readonly ciphertext: byte[];
186
- readonly IV: byte[];
187
- readonly key: SecurityKey;
199
+ AuthenticationTag: byte[];
200
+ Ciphertext: byte[];
201
+ IV: byte[];
202
+ Key: SecurityKey;
188
203
  }
189
204
 
190
205
 
@@ -196,41 +211,42 @@ export const AuthenticatedEncryptionResult: {
196
211
  export type AuthenticatedEncryptionResult = AuthenticatedEncryptionResult$instance;
197
212
 
198
213
  export interface BaseConfiguration$instance {
199
- activeTokenEndpoint: string;
200
- issuer: string;
201
- readonly signingKeys: ICollection<SecurityKey>;
202
- readonly tokenDecryptionKeys: ICollection<SecurityKey>;
203
- tokenEndpoint: string;
214
+ ActiveTokenEndpoint: string;
215
+ Issuer: string;
216
+ readonly SigningKeys: ICollection<SecurityKey>;
217
+ readonly TokenDecryptionKeys: ICollection<SecurityKey>;
218
+ TokenEndpoint: string;
204
219
  }
205
220
 
206
221
 
207
222
  export const BaseConfiguration: {
223
+ new(): BaseConfiguration;
208
224
  };
209
225
 
210
226
 
211
227
  export type BaseConfiguration = BaseConfiguration$instance;
212
228
 
213
229
  export interface BaseConfigurationManager$instance {
214
- automaticRefreshInterval: TimeSpan;
215
- readonly isLastKnownGoodValid: boolean;
216
- lastKnownGoodConfiguration: BaseConfiguration;
217
- lastKnownGoodLifetime: TimeSpan;
218
- metadataAddress: string;
219
- refreshInterval: TimeSpan;
220
- useLastKnownGoodConfiguration: boolean;
221
- getBaseConfigurationAsync(cancel: CancellationToken): Task<BaseConfiguration>;
222
- requestRefresh(): void;
230
+ AutomaticRefreshInterval: TimeSpan;
231
+ readonly IsLastKnownGoodValid: boolean;
232
+ LastKnownGoodConfiguration: BaseConfiguration;
233
+ LastKnownGoodLifetime: TimeSpan;
234
+ MetadataAddress: string;
235
+ RefreshInterval: TimeSpan;
236
+ UseLastKnownGoodConfiguration: boolean;
237
+ GetBaseConfigurationAsync(cancel: CancellationToken): Task<BaseConfiguration>;
238
+ RequestRefresh(): void;
223
239
  }
224
240
 
225
241
 
226
242
  export const BaseConfigurationManager: {
227
243
  new(): BaseConfigurationManager;
228
244
  new(options: LKGConfigurationCacheOptions): BaseConfigurationManager;
229
- readonly defaultAutomaticRefreshInterval: TimeSpan;
230
- readonly defaultLastKnownGoodConfigurationLifetime: TimeSpan;
231
- readonly defaultRefreshInterval: TimeSpan;
232
- readonly minimumAutomaticRefreshInterval: TimeSpan;
233
- readonly minimumRefreshInterval: TimeSpan;
245
+ readonly DefaultAutomaticRefreshInterval: TimeSpan;
246
+ readonly DefaultLastKnownGoodConfigurationLifetime: TimeSpan;
247
+ readonly DefaultRefreshInterval: TimeSpan;
248
+ readonly MinimumAutomaticRefreshInterval: TimeSpan;
249
+ readonly MinimumRefreshInterval: TimeSpan;
234
250
  };
235
251
 
236
252
 
@@ -249,10 +265,10 @@ export const CallContext: {
249
265
  export type CallContext = CallContext$instance;
250
266
 
251
267
  export interface CaseSensitiveClaimsIdentity$instance extends ClaimsIdentity {
252
- readonly securityToken: SecurityToken;
253
- findAll(type: string): IEnumerable<Claim>;
254
- findFirst(type: string): Claim;
255
- hasClaim(type: string, value: string): boolean;
268
+ SecurityToken: SecurityToken;
269
+ FindAll(type: string): IEnumerable<Claim>;
270
+ FindFirst(type: string): Claim;
271
+ HasClaim(type: string, value: string): boolean;
256
272
  }
257
273
 
258
274
 
@@ -275,76 +291,83 @@ export interface CompressionAlgorithms$instance {
275
291
 
276
292
  export const CompressionAlgorithms: {
277
293
  new(): CompressionAlgorithms;
278
- readonly deflate: string;
294
+ readonly Deflate: string;
279
295
  };
280
296
 
281
297
 
282
298
  export type CompressionAlgorithms = CompressionAlgorithms$instance;
283
299
 
284
300
  export interface CompressionProviderFactory$instance {
285
- customCompressionProvider: ICompressionProvider;
286
- createCompressionProvider(algorithm: string): ICompressionProvider;
287
- createCompressionProvider(algorithm: string, maximumDeflateSize: int): ICompressionProvider;
288
- isSupportedAlgorithm(algorithm: string): boolean;
301
+ CustomCompressionProvider: ICompressionProvider;
302
+ CreateCompressionProvider(algorithm: string): ICompressionProvider;
303
+ CreateCompressionProvider(algorithm: string, maximumDeflateSize: int): ICompressionProvider;
304
+ IsSupportedAlgorithm(algorithm: string): boolean;
289
305
  }
290
306
 
291
307
 
292
308
  export const CompressionProviderFactory: {
293
309
  new(): CompressionProviderFactory;
294
310
  new(other: CompressionProviderFactory): CompressionProviderFactory;
295
- default: CompressionProviderFactory;
311
+ Default: CompressionProviderFactory;
296
312
  };
297
313
 
298
314
 
299
315
  export type CompressionProviderFactory = CompressionProviderFactory$instance;
300
316
 
301
- export interface CryptoProviderCache$instance {
302
- tryAdd(signatureProvider: SignatureProvider): boolean;
303
- tryGetSignatureProvider(securityKey: SecurityKey, algorithm: string, typeofProvider: string, willCreateSignatures: boolean, signatureProvider: SignatureProvider): boolean;
304
- tryRemove(signatureProvider: SignatureProvider): boolean;
317
+ export abstract class CryptoProviderCache$protected {
318
+ protected abstract GetCacheKey(signatureProvider: SignatureProvider): string;
319
+ protected abstract GetCacheKey(securityKey: SecurityKey, algorithm: string, typeofProvider: string): string;
320
+ }
321
+
322
+
323
+ export interface CryptoProviderCache$instance extends CryptoProviderCache$protected {
324
+ TryAdd(signatureProvider: SignatureProvider): boolean;
325
+ TryGetSignatureProvider(securityKey: SecurityKey, algorithm: string, typeofProvider: string, willCreateSignatures: boolean, signatureProvider: SignatureProvider): boolean;
326
+ TryRemove(signatureProvider: SignatureProvider): boolean;
305
327
  }
306
328
 
307
329
 
308
330
  export const CryptoProviderCache: {
331
+ new(): CryptoProviderCache;
309
332
  };
310
333
 
311
334
 
312
335
  export type CryptoProviderCache = CryptoProviderCache$instance;
313
336
 
314
337
  export interface CryptoProviderCacheOptions$instance {
315
- sizeLimit: int;
338
+ SizeLimit: int;
316
339
  }
317
340
 
318
341
 
319
342
  export const CryptoProviderCacheOptions: {
320
343
  new(): CryptoProviderCacheOptions;
321
- readonly defaultSizeLimit: int;
344
+ readonly DefaultSizeLimit: int;
322
345
  };
323
346
 
324
347
 
325
348
  export type CryptoProviderCacheOptions = CryptoProviderCacheOptions$instance;
326
349
 
327
350
  export interface CryptoProviderFactory$instance {
328
- cacheSignatureProviders: boolean;
329
- readonly cryptoProviderCache: CryptoProviderCache;
330
- customCryptoProvider: ICryptoProvider;
331
- signatureProviderObjectPoolCacheSize: int;
332
- createAuthenticatedEncryptionProvider(key: SecurityKey, algorithm: string): AuthenticatedEncryptionProvider;
333
- createForSigning(key: SecurityKey, algorithm: string): SignatureProvider;
334
- createForSigning(key: SecurityKey, algorithm: string, cacheProvider: boolean): SignatureProvider;
335
- createForVerifying(key: SecurityKey, algorithm: string): SignatureProvider;
336
- createForVerifying(key: SecurityKey, algorithm: string, cacheProvider: boolean): SignatureProvider;
337
- createHashAlgorithm(algorithm: HashAlgorithmName): HashAlgorithm;
338
- createHashAlgorithm(algorithm: string): HashAlgorithm;
339
- createKeyedHashAlgorithm(keyBytes: byte[], algorithm: string): KeyedHashAlgorithm;
340
- createKeyWrapProvider(key: SecurityKey, algorithm: string): KeyWrapProvider;
341
- createKeyWrapProviderForUnwrap(key: SecurityKey, algorithm: string): KeyWrapProvider;
342
- isSupportedAlgorithm(algorithm: string): boolean;
343
- isSupportedAlgorithm(algorithm: string, key: SecurityKey): boolean;
344
- releaseHashAlgorithm(hashAlgorithm: HashAlgorithm): void;
345
- releaseKeyWrapProvider(provider: KeyWrapProvider): void;
346
- releaseRsaKeyWrapProvider(provider: RsaKeyWrapProvider): void;
347
- releaseSignatureProvider(signatureProvider: SignatureProvider): void;
351
+ CacheSignatureProviders: boolean;
352
+ CryptoProviderCache: CryptoProviderCache;
353
+ CustomCryptoProvider: ICryptoProvider;
354
+ SignatureProviderObjectPoolCacheSize: int;
355
+ CreateAuthenticatedEncryptionProvider(key: SecurityKey, algorithm: string): AuthenticatedEncryptionProvider;
356
+ CreateForSigning(key: SecurityKey, algorithm: string): SignatureProvider;
357
+ CreateForSigning(key: SecurityKey, algorithm: string, cacheProvider: boolean): SignatureProvider;
358
+ CreateForVerifying(key: SecurityKey, algorithm: string): SignatureProvider;
359
+ CreateForVerifying(key: SecurityKey, algorithm: string, cacheProvider: boolean): SignatureProvider;
360
+ CreateHashAlgorithm(algorithm: HashAlgorithmName): HashAlgorithm;
361
+ CreateHashAlgorithm(algorithm: string): HashAlgorithm;
362
+ CreateKeyedHashAlgorithm(keyBytes: byte[], algorithm: string): KeyedHashAlgorithm;
363
+ CreateKeyWrapProvider(key: SecurityKey, algorithm: string): KeyWrapProvider;
364
+ CreateKeyWrapProviderForUnwrap(key: SecurityKey, algorithm: string): KeyWrapProvider;
365
+ IsSupportedAlgorithm(algorithm: string): boolean;
366
+ IsSupportedAlgorithm(algorithm: string, key: SecurityKey): boolean;
367
+ ReleaseHashAlgorithm(hashAlgorithm: HashAlgorithm): void;
368
+ ReleaseKeyWrapProvider(provider: KeyWrapProvider): void;
369
+ ReleaseRsaKeyWrapProvider(provider: RsaKeyWrapProvider): void;
370
+ ReleaseSignatureProvider(signatureProvider: SignatureProvider): void;
348
371
  }
349
372
 
350
373
 
@@ -352,21 +375,21 @@ export const CryptoProviderFactory: {
352
375
  new(): CryptoProviderFactory;
353
376
  new(cache: CryptoProviderCache): CryptoProviderFactory;
354
377
  new(other: CryptoProviderFactory): CryptoProviderFactory;
355
- default: CryptoProviderFactory;
356
- defaultCacheSignatureProviders: boolean;
357
- defaultSignatureProviderObjectPoolCacheSize: int;
378
+ Default: CryptoProviderFactory;
379
+ DefaultCacheSignatureProviders: boolean;
380
+ DefaultSignatureProviderObjectPoolCacheSize: int;
358
381
  };
359
382
 
360
383
 
361
384
  export type CryptoProviderFactory = CryptoProviderFactory$instance;
362
385
 
363
386
  export interface DeflateCompressionProvider$instance {
364
- readonly algorithm: string;
365
- readonly compressionLevel: CompressionLevel;
366
- maximumDeflateSize: int;
367
- compress(value: byte[]): byte[];
368
- decompress(value: byte[]): byte[];
369
- isSupportedAlgorithm(algorithm: string): boolean;
387
+ readonly Algorithm: string;
388
+ CompressionLevel: CompressionLevel;
389
+ MaximumDeflateSize: int;
390
+ Compress(value: byte[]): byte[];
391
+ Decompress(value: byte[]): byte[];
392
+ IsSupportedAlgorithm(algorithm: string): boolean;
370
393
  }
371
394
 
372
395
 
@@ -386,8 +409,8 @@ export type DeflateCompressionProvider = DeflateCompressionProvider$instance & _
386
409
 
387
410
 
388
411
  export interface EcdhKeyExchangeProvider$instance {
389
- keyDataLen: int;
390
- generateKdf(apu?: string, apv?: string): SecurityKey;
412
+ KeyDataLen: int;
413
+ GenerateKdf(apu?: string, apv?: string): SecurityKey;
391
414
  }
392
415
 
393
416
 
@@ -399,12 +422,12 @@ export const EcdhKeyExchangeProvider: {
399
422
  export type EcdhKeyExchangeProvider = EcdhKeyExchangeProvider$instance;
400
423
 
401
424
  export interface ECDsaSecurityKey$instance extends AsymmetricSecurityKey {
402
- readonly ecDsa: ECDsa;
403
- readonly hasPrivateKey: boolean;
404
- readonly keySize: int;
405
- readonly privateKeyStatus: PrivateKeyStatus;
406
- canComputeJwkThumbprint(): boolean;
407
- computeJwkThumbprint(): byte[];
425
+ ECDsa: ECDsa;
426
+ readonly HasPrivateKey: boolean;
427
+ readonly KeySize: int;
428
+ readonly PrivateKeyStatus: PrivateKeyStatus;
429
+ CanComputeJwkThumbprint(): boolean;
430
+ ComputeJwkThumbprint(): byte[];
408
431
  }
409
432
 
410
433
 
@@ -416,16 +439,17 @@ export const ECDsaSecurityKey: {
416
439
  export type ECDsaSecurityKey = ECDsaSecurityKey$instance;
417
440
 
418
441
  export interface EncryptingCredentials$instance {
419
- readonly alg: string;
420
- cryptoProviderFactory: CryptoProviderFactory;
421
- readonly enc: string;
422
- readonly key: SecurityKey;
423
- keyExchangePublicKey: SecurityKey;
424
- setDefaultCtyClaim: boolean;
442
+ Alg: string;
443
+ CryptoProviderFactory: CryptoProviderFactory;
444
+ Enc: string;
445
+ Key: SecurityKey;
446
+ KeyExchangePublicKey: SecurityKey;
447
+ SetDefaultCtyClaim: boolean;
425
448
  }
426
449
 
427
450
 
428
451
  export const EncryptingCredentials: {
452
+ new(certificate: X509Certificate2, alg: string, enc: string): EncryptingCredentials;
429
453
  new(key: SecurityKey, alg: string, enc: string): EncryptingCredentials;
430
454
  new(key: SymmetricSecurityKey, enc: string): EncryptingCredentials;
431
455
  };
@@ -433,11 +457,18 @@ export const EncryptingCredentials: {
433
457
 
434
458
  export type EncryptingCredentials = EncryptingCredentials$instance;
435
459
 
436
- export interface InMemoryCryptoProviderCache$instance extends CryptoProviderCache {
437
- dispose(): void;
438
- tryAdd(signatureProvider: SignatureProvider): boolean;
439
- tryGetSignatureProvider(securityKey: SecurityKey, algorithm: string, typeofProvider: string, willCreateSignatures: boolean, signatureProvider: SignatureProvider): boolean;
440
- tryRemove(signatureProvider: SignatureProvider): boolean;
460
+ export abstract class InMemoryCryptoProviderCache$protected {
461
+ protected Dispose(disposing: boolean): void;
462
+ protected GetCacheKey(signatureProvider: SignatureProvider): string;
463
+ protected GetCacheKey(securityKey: SecurityKey, algorithm: string, typeofProvider: string): string;
464
+ }
465
+
466
+
467
+ export interface InMemoryCryptoProviderCache$instance extends InMemoryCryptoProviderCache$protected, CryptoProviderCache {
468
+ Dispose(): void;
469
+ TryAdd(signatureProvider: SignatureProvider): boolean;
470
+ TryGetSignatureProvider(securityKey: SecurityKey, algorithm: string, typeofProvider: string, willCreateSignatures: boolean, signatureProvider: SignatureProvider): boolean;
471
+ TryRemove(signatureProvider: SignatureProvider): boolean;
441
472
  }
442
473
 
443
474
 
@@ -450,42 +481,42 @@ export const InMemoryCryptoProviderCache: {
450
481
  export type InMemoryCryptoProviderCache = InMemoryCryptoProviderCache$instance;
451
482
 
452
483
  export interface JsonWebKey$instance extends SecurityKey {
453
- readonly additionalData: IDictionary<System_Internal.String, unknown>;
454
- alg: string;
455
- crv: string;
484
+ readonly AdditionalData: IDictionary<System_Internal.String, unknown>;
485
+ Alg: string;
486
+ Crv: string;
456
487
  D: string;
457
488
  DP: string;
458
489
  DQ: string;
459
490
  E: string;
460
- readonly hasPrivateKey: boolean;
491
+ readonly HasPrivateKey: boolean;
461
492
  K: string;
462
- keyId: string;
463
- readonly keyOps: IList<System_Internal.String>;
464
- readonly keySize: int;
465
- kid: string;
466
- kty: string;
493
+ KeyId: string;
494
+ readonly KeyOps: IList<System_Internal.String>;
495
+ readonly KeySize: int;
496
+ Kid: string;
497
+ Kty: string;
467
498
  N: string;
468
- readonly oth: IList<System_Internal.String>;
499
+ readonly Oth: IList<System_Internal.String>;
469
500
  P: string;
470
501
  Q: string;
471
502
  QI: string;
472
- use: string;
503
+ Use: string;
473
504
  X: string;
474
- readonly x5c: IList<System_Internal.String>;
475
- x5t: string;
476
- x5tS256: string;
477
- x5u: string;
505
+ readonly X5c: IList<System_Internal.String>;
506
+ X5t: string;
507
+ X5tS256: string;
508
+ X5u: string;
478
509
  Y: string;
479
- canComputeJwkThumbprint(): boolean;
480
- computeJwkThumbprint(): byte[];
481
- toString(): string | undefined;
510
+ CanComputeJwkThumbprint(): boolean;
511
+ ComputeJwkThumbprint(): byte[];
512
+ ToString(): string | undefined;
482
513
  }
483
514
 
484
515
 
485
516
  export const JsonWebKey: {
486
517
  new(): JsonWebKey;
487
518
  new(json: string): JsonWebKey;
488
- create(json: string): JsonWebKey;
519
+ Create(json: string): JsonWebKey;
489
520
  };
490
521
 
491
522
 
@@ -497,57 +528,70 @@ export interface JsonWebKeyConverter$instance {
497
528
 
498
529
  export const JsonWebKeyConverter: {
499
530
  new(): JsonWebKeyConverter;
500
- convertFromECDsaSecurityKey(key: ECDsaSecurityKey): JsonWebKey;
501
- convertFromRSASecurityKey(key: RsaSecurityKey): JsonWebKey;
502
- convertFromSecurityKey(key: SecurityKey): JsonWebKey;
503
- convertFromSymmetricSecurityKey(key: SymmetricSecurityKey): JsonWebKey;
504
- convertFromX509SecurityKey(key: X509SecurityKey, representAsRsaKey: boolean): JsonWebKey;
505
- convertFromX509SecurityKey(key: X509SecurityKey): JsonWebKey;
531
+ ConvertFromECDsaSecurityKey(key: ECDsaSecurityKey): JsonWebKey;
532
+ ConvertFromRSASecurityKey(key: RsaSecurityKey): JsonWebKey;
533
+ ConvertFromSecurityKey(key: SecurityKey): JsonWebKey;
534
+ ConvertFromSymmetricSecurityKey(key: SymmetricSecurityKey): JsonWebKey;
535
+ ConvertFromX509SecurityKey(key: X509SecurityKey, representAsRsaKey: boolean): JsonWebKey;
536
+ ConvertFromX509SecurityKey(key: X509SecurityKey): JsonWebKey;
506
537
  };
507
538
 
508
539
 
509
540
  export type JsonWebKeyConverter = JsonWebKeyConverter$instance;
510
541
 
511
542
  export interface JsonWebKeySet$instance {
512
- readonly additionalData: IDictionary<System_Internal.String, unknown>;
513
- readonly keys: IList<JsonWebKey>;
514
- skipUnresolvedJsonWebKeys: boolean;
515
- getSigningKeys(): IList<SecurityKey>;
543
+ readonly AdditionalData: IDictionary<System_Internal.String, unknown>;
544
+ Keys: IList<JsonWebKey>;
545
+ SkipUnresolvedJsonWebKeys: boolean;
546
+ GetSigningKeys(): IList<SecurityKey>;
516
547
  }
517
548
 
518
549
 
519
550
  export const JsonWebKeySet: {
520
551
  new(): JsonWebKeySet;
521
552
  new(json: string): JsonWebKeySet;
522
- defaultSkipUnresolvedJsonWebKeys: boolean;
523
- create(json: string): JsonWebKeySet;
553
+ DefaultSkipUnresolvedJsonWebKeys: boolean;
554
+ Create(json: string): JsonWebKeySet;
524
555
  };
525
556
 
526
557
 
527
558
  export type JsonWebKeySet = JsonWebKeySet$instance;
528
559
 
529
- export interface KeyWrapProvider$instance {
530
- readonly algorithm: string;
531
- context: string;
532
- readonly key: SecurityKey;
533
- dispose(): void;
534
- unwrapKey(keyBytes: byte[]): byte[];
535
- wrapKey(keyBytes: byte[]): byte[];
560
+ export abstract class KeyWrapProvider$protected {
561
+ protected abstract Dispose(disposing: boolean): void;
562
+ }
563
+
564
+
565
+ export interface KeyWrapProvider$instance extends KeyWrapProvider$protected {
566
+ readonly Algorithm: string;
567
+ Context: string;
568
+ readonly Key: SecurityKey;
569
+ Dispose(): void;
570
+ UnwrapKey(keyBytes: byte[]): byte[];
571
+ WrapKey(keyBytes: byte[]): byte[];
536
572
  }
537
573
 
538
574
 
539
575
  export const KeyWrapProvider: {
576
+ new(): KeyWrapProvider;
540
577
  };
541
578
 
542
579
 
543
580
  export type KeyWrapProvider = KeyWrapProvider$instance;
544
581
 
545
- export interface RsaKeyWrapProvider$instance extends KeyWrapProvider {
546
- readonly algorithm: string;
547
- context: string;
548
- readonly key: SecurityKey;
549
- unwrapKey(keyBytes: byte[]): byte[];
550
- wrapKey(keyBytes: byte[]): byte[];
582
+ export abstract class RsaKeyWrapProvider$protected {
583
+ protected Dispose2(disposing: boolean): void;
584
+ protected IsSupportedAlgorithm(key: SecurityKey, algorithm: string): boolean;
585
+ }
586
+
587
+
588
+ export interface RsaKeyWrapProvider$instance extends RsaKeyWrapProvider$protected, KeyWrapProvider {
589
+ readonly Algorithm: string;
590
+ Context: string;
591
+ readonly Key: SecurityKey;
592
+ Dispose(): void;
593
+ UnwrapKey(keyBytes: byte[]): byte[];
594
+ WrapKey(keyBytes: byte[]): byte[];
551
595
  }
552
596
 
553
597
 
@@ -559,13 +603,13 @@ export const RsaKeyWrapProvider: {
559
603
  export type RsaKeyWrapProvider = RsaKeyWrapProvider$instance;
560
604
 
561
605
  export interface RsaSecurityKey$instance extends AsymmetricSecurityKey {
562
- readonly hasPrivateKey: boolean;
563
- readonly keySize: int;
564
- readonly parameters: RSAParameters;
565
- readonly privateKeyStatus: PrivateKeyStatus;
566
- readonly rsa: RSA;
567
- canComputeJwkThumbprint(): boolean;
568
- computeJwkThumbprint(): byte[];
606
+ readonly HasPrivateKey: boolean;
607
+ readonly KeySize: int;
608
+ Parameters: RSAParameters;
609
+ readonly PrivateKeyStatus: PrivateKeyStatus;
610
+ Rsa: RSA;
611
+ CanComputeJwkThumbprint(): boolean;
612
+ ComputeJwkThumbprint(): byte[];
569
613
  }
570
614
 
571
615
 
@@ -578,13 +622,13 @@ export const RsaSecurityKey: {
578
622
  export type RsaSecurityKey = RsaSecurityKey$instance;
579
623
 
580
624
  export interface SecurityKey$instance {
581
- cryptoProviderFactory: CryptoProviderFactory;
582
- keyId: string;
583
- readonly keySize: int;
584
- canComputeJwkThumbprint(): boolean;
585
- computeJwkThumbprint(): byte[];
586
- isSupportedAlgorithm(algorithm: string): boolean;
587
- toString(): string | undefined;
625
+ CryptoProviderFactory: CryptoProviderFactory;
626
+ KeyId: string;
627
+ readonly KeySize: int;
628
+ CanComputeJwkThumbprint(): boolean;
629
+ ComputeJwkThumbprint(): byte[];
630
+ IsSupportedAlgorithm(algorithm: string): boolean;
631
+ ToString(): string | undefined;
588
632
  }
589
633
 
590
634
 
@@ -607,17 +651,18 @@ export const SecurityKeyIdentifierClause: {
607
651
  export type SecurityKeyIdentifierClause = SecurityKeyIdentifierClause$instance;
608
652
 
609
653
  export interface SecurityToken$instance {
610
- readonly id: string;
611
- readonly issuer: string;
612
- readonly securityKey: SecurityKey;
613
- signingKey: SecurityKey;
614
- readonly validFrom: DateTime;
615
- readonly validTo: DateTime;
616
- unsafeToString(): string;
654
+ readonly Id: string;
655
+ readonly Issuer: string;
656
+ readonly SecurityKey: SecurityKey;
657
+ SigningKey: SecurityKey;
658
+ readonly ValidFrom: DateTime;
659
+ readonly ValidTo: DateTime;
660
+ UnsafeToString(): string;
617
661
  }
618
662
 
619
663
 
620
664
  export const SecurityToken: {
665
+ new(): SecurityToken;
621
666
  };
622
667
 
623
668
 
@@ -638,6 +683,7 @@ export const SecurityTokenArgumentException: {
638
683
  new(): SecurityTokenArgumentException;
639
684
  new(message: string): SecurityTokenArgumentException;
640
685
  new(message: string, innerException: Exception): SecurityTokenArgumentException;
686
+ new(info: SerializationInfo, context: StreamingContext): SecurityTokenArgumentException;
641
687
  };
642
688
 
643
689
 
@@ -651,6 +697,7 @@ export const SecurityTokenCompressionFailedException: {
651
697
  new(): SecurityTokenCompressionFailedException;
652
698
  new(message: string): SecurityTokenCompressionFailedException;
653
699
  new(message: string, inner: Exception): SecurityTokenCompressionFailedException;
700
+ new(info: SerializationInfo, context: StreamingContext): SecurityTokenCompressionFailedException;
654
701
  };
655
702
 
656
703
 
@@ -664,6 +711,7 @@ export const SecurityTokenDecompressionFailedException: {
664
711
  new(): SecurityTokenDecompressionFailedException;
665
712
  new(message: string): SecurityTokenDecompressionFailedException;
666
713
  new(message: string, inner: Exception): SecurityTokenDecompressionFailedException;
714
+ new(info: SerializationInfo, context: StreamingContext): SecurityTokenDecompressionFailedException;
667
715
  };
668
716
 
669
717
 
@@ -677,26 +725,27 @@ export const SecurityTokenDecryptionFailedException: {
677
725
  new(): SecurityTokenDecryptionFailedException;
678
726
  new(message: string): SecurityTokenDecryptionFailedException;
679
727
  new(message: string, innerException: Exception): SecurityTokenDecryptionFailedException;
728
+ new(info: SerializationInfo, context: StreamingContext): SecurityTokenDecryptionFailedException;
680
729
  };
681
730
 
682
731
 
683
732
  export type SecurityTokenDecryptionFailedException = SecurityTokenDecryptionFailedException$instance;
684
733
 
685
734
  export interface SecurityTokenDescriptor$instance {
686
- additionalHeaderClaims: IDictionary<System_Internal.String, unknown>;
687
- additionalInnerHeaderClaims: IDictionary<System_Internal.String, unknown>;
688
- audience: string;
689
- claims: IDictionary<System_Internal.String, unknown>;
690
- compressionAlgorithm: string;
691
- encryptingCredentials: EncryptingCredentials;
692
- expires: Nullable<DateTime>;
693
- issuedAt: Nullable<DateTime>;
694
- issuer: string;
695
- notBefore: Nullable<DateTime>;
696
- signingCredentials: SigningCredentials;
697
- get subject(): ClaimsIdentity | undefined;
698
- set subject(value: ClaimsIdentity);
699
- tokenType: string;
735
+ AdditionalHeaderClaims: IDictionary<System_Internal.String, unknown>;
736
+ AdditionalInnerHeaderClaims: IDictionary<System_Internal.String, unknown>;
737
+ Audience: string;
738
+ Claims: IDictionary<System_Internal.String, unknown>;
739
+ CompressionAlgorithm: string;
740
+ EncryptingCredentials: EncryptingCredentials;
741
+ Expires: Nullable<DateTime>;
742
+ IssuedAt: Nullable<DateTime>;
743
+ Issuer: string;
744
+ NotBefore: Nullable<DateTime>;
745
+ SigningCredentials: SigningCredentials;
746
+ get Subject(): ClaimsIdentity | undefined;
747
+ set Subject(value: ClaimsIdentity);
748
+ TokenType: string;
700
749
  }
701
750
 
702
751
 
@@ -715,6 +764,7 @@ export const SecurityTokenEncryptionFailedException: {
715
764
  new(): SecurityTokenEncryptionFailedException;
716
765
  new(message: string): SecurityTokenEncryptionFailedException;
717
766
  new(message: string, innerException: Exception): SecurityTokenEncryptionFailedException;
767
+ new(info: SerializationInfo, context: StreamingContext): SecurityTokenEncryptionFailedException;
718
768
  };
719
769
 
720
770
 
@@ -728,13 +778,14 @@ export const SecurityTokenEncryptionKeyNotFoundException: {
728
778
  new(): SecurityTokenEncryptionKeyNotFoundException;
729
779
  new(message: string): SecurityTokenEncryptionKeyNotFoundException;
730
780
  new(message: string, innerException: Exception): SecurityTokenEncryptionKeyNotFoundException;
781
+ new(info: SerializationInfo, context: StreamingContext): SecurityTokenEncryptionKeyNotFoundException;
731
782
  };
732
783
 
733
784
 
734
785
  export type SecurityTokenEncryptionKeyNotFoundException = SecurityTokenEncryptionKeyNotFoundException$instance;
735
786
 
736
787
  export interface SecurityTokenException$instance extends Exception {
737
- getObjectData(info: SerializationInfo, context: StreamingContext): void;
788
+ GetObjectData(info: SerializationInfo, context: StreamingContext): void;
738
789
  }
739
790
 
740
791
 
@@ -742,14 +793,15 @@ export const SecurityTokenException: {
742
793
  new(): SecurityTokenException;
743
794
  new(message: string): SecurityTokenException;
744
795
  new(message: string, innerException: Exception): SecurityTokenException;
796
+ new(info: SerializationInfo, context: StreamingContext): SecurityTokenException;
745
797
  };
746
798
 
747
799
 
748
800
  export type SecurityTokenException = SecurityTokenException$instance;
749
801
 
750
802
  export interface SecurityTokenExpiredException$instance extends SecurityTokenValidationException {
751
- expires: DateTime;
752
- getObjectData(info: SerializationInfo, context: StreamingContext): void;
803
+ Expires: DateTime;
804
+ GetObjectData(info: SerializationInfo, context: StreamingContext): void;
753
805
  }
754
806
 
755
807
 
@@ -757,28 +809,30 @@ export const SecurityTokenExpiredException: {
757
809
  new(): SecurityTokenExpiredException;
758
810
  new(message: string): SecurityTokenExpiredException;
759
811
  new(message: string, inner: Exception): SecurityTokenExpiredException;
812
+ new(info: SerializationInfo, context: StreamingContext): SecurityTokenExpiredException;
760
813
  };
761
814
 
762
815
 
763
816
  export type SecurityTokenExpiredException = SecurityTokenExpiredException$instance;
764
817
 
765
818
  export interface SecurityTokenHandler$instance extends TokenHandler {
766
- readonly canValidateToken: boolean;
767
- readonly canWriteToken: boolean;
768
- readonly tokenType: Type;
769
- canReadToken(reader: XmlReader): boolean;
770
- canReadToken(tokenString: string): boolean;
771
- createSecurityTokenReference(token: SecurityToken, attached: boolean): SecurityKeyIdentifierClause;
772
- createToken(tokenDescriptor: SecurityTokenDescriptor): SecurityToken;
773
- readToken(token: string): SecurityToken;
774
- validateToken(securityToken: string, validationParameters: TokenValidationParameters, validatedToken: SecurityToken): ClaimsPrincipal;
775
- validateToken(reader: XmlReader, validationParameters: TokenValidationParameters, validatedToken: SecurityToken): ClaimsPrincipal;
776
- writeToken(token: SecurityToken): string;
777
- writeToken(writer: XmlWriter, token: SecurityToken): void;
819
+ readonly CanValidateToken: boolean;
820
+ readonly CanWriteToken: boolean;
821
+ readonly TokenType: Type;
822
+ CanReadToken(reader: XmlReader): boolean;
823
+ CanReadToken(tokenString: string): boolean;
824
+ CreateSecurityTokenReference(token: SecurityToken, attached: boolean): SecurityKeyIdentifierClause;
825
+ CreateToken(tokenDescriptor: SecurityTokenDescriptor): SecurityToken;
826
+ ReadToken(token: string): SecurityToken;
827
+ ValidateToken(securityToken: string, validationParameters: TokenValidationParameters, validatedToken: SecurityToken): ClaimsPrincipal;
828
+ ValidateToken(reader: XmlReader, validationParameters: TokenValidationParameters, validatedToken: SecurityToken): ClaimsPrincipal;
829
+ WriteToken(token: SecurityToken): string;
830
+ WriteToken(writer: XmlWriter, token: SecurityToken): void;
778
831
  }
779
832
 
780
833
 
781
834
  export const SecurityTokenHandler: {
835
+ new(): SecurityTokenHandler;
782
836
  };
783
837
 
784
838
 
@@ -792,8 +846,8 @@ export type SecurityTokenHandler = SecurityTokenHandler$instance & __SecurityTok
792
846
 
793
847
 
794
848
  export interface SecurityTokenInvalidAlgorithmException$instance extends SecurityTokenValidationException {
795
- invalidAlgorithm: string;
796
- getObjectData(info: SerializationInfo, context: StreamingContext): void;
849
+ InvalidAlgorithm: string;
850
+ GetObjectData(info: SerializationInfo, context: StreamingContext): void;
797
851
  }
798
852
 
799
853
 
@@ -801,14 +855,15 @@ export const SecurityTokenInvalidAlgorithmException: {
801
855
  new(): SecurityTokenInvalidAlgorithmException;
802
856
  new(message: string): SecurityTokenInvalidAlgorithmException;
803
857
  new(message: string, innerException: Exception): SecurityTokenInvalidAlgorithmException;
858
+ new(info: SerializationInfo, context: StreamingContext): SecurityTokenInvalidAlgorithmException;
804
859
  };
805
860
 
806
861
 
807
862
  export type SecurityTokenInvalidAlgorithmException = SecurityTokenInvalidAlgorithmException$instance;
808
863
 
809
864
  export interface SecurityTokenInvalidAudienceException$instance extends SecurityTokenValidationException {
810
- invalidAudience: string;
811
- getObjectData(info: SerializationInfo, context: StreamingContext): void;
865
+ InvalidAudience: string;
866
+ GetObjectData(info: SerializationInfo, context: StreamingContext): void;
812
867
  }
813
868
 
814
869
 
@@ -816,14 +871,15 @@ export const SecurityTokenInvalidAudienceException: {
816
871
  new(): SecurityTokenInvalidAudienceException;
817
872
  new(message: string): SecurityTokenInvalidAudienceException;
818
873
  new(message: string, innerException: Exception): SecurityTokenInvalidAudienceException;
874
+ new(info: SerializationInfo, context: StreamingContext): SecurityTokenInvalidAudienceException;
819
875
  };
820
876
 
821
877
 
822
878
  export type SecurityTokenInvalidAudienceException = SecurityTokenInvalidAudienceException$instance;
823
879
 
824
880
  export interface SecurityTokenInvalidIssuerException$instance extends SecurityTokenValidationException {
825
- invalidIssuer: string;
826
- getObjectData(info: SerializationInfo, context: StreamingContext): void;
881
+ InvalidIssuer: string;
882
+ GetObjectData(info: SerializationInfo, context: StreamingContext): void;
827
883
  }
828
884
 
829
885
 
@@ -831,15 +887,16 @@ export const SecurityTokenInvalidIssuerException: {
831
887
  new(): SecurityTokenInvalidIssuerException;
832
888
  new(message: string): SecurityTokenInvalidIssuerException;
833
889
  new(message: string, innerException: Exception): SecurityTokenInvalidIssuerException;
890
+ new(info: SerializationInfo, context: StreamingContext): SecurityTokenInvalidIssuerException;
834
891
  };
835
892
 
836
893
 
837
894
  export type SecurityTokenInvalidIssuerException = SecurityTokenInvalidIssuerException$instance;
838
895
 
839
896
  export interface SecurityTokenInvalidLifetimeException$instance extends SecurityTokenValidationException {
840
- expires: Nullable<DateTime>;
841
- notBefore: Nullable<DateTime>;
842
- getObjectData(info: SerializationInfo, context: StreamingContext): void;
897
+ Expires: Nullable<DateTime>;
898
+ NotBefore: Nullable<DateTime>;
899
+ GetObjectData(info: SerializationInfo, context: StreamingContext): void;
843
900
  }
844
901
 
845
902
 
@@ -847,6 +904,7 @@ export const SecurityTokenInvalidLifetimeException: {
847
904
  new(): SecurityTokenInvalidLifetimeException;
848
905
  new(message: string): SecurityTokenInvalidLifetimeException;
849
906
  new(message: string, innerException: Exception): SecurityTokenInvalidLifetimeException;
907
+ new(info: SerializationInfo, context: StreamingContext): SecurityTokenInvalidLifetimeException;
850
908
  };
851
909
 
852
910
 
@@ -860,13 +918,14 @@ export const SecurityTokenInvalidSignatureException: {
860
918
  new(): SecurityTokenInvalidSignatureException;
861
919
  new(message: string): SecurityTokenInvalidSignatureException;
862
920
  new(message: string, innerException: Exception): SecurityTokenInvalidSignatureException;
921
+ new(info: SerializationInfo, context: StreamingContext): SecurityTokenInvalidSignatureException;
863
922
  };
864
923
 
865
924
 
866
925
  export type SecurityTokenInvalidSignatureException = SecurityTokenInvalidSignatureException$instance;
867
926
 
868
927
  export interface SecurityTokenInvalidSigningKeyException$instance extends SecurityTokenValidationException {
869
- signingKey: SecurityKey;
928
+ SigningKey: SecurityKey;
870
929
  }
871
930
 
872
931
 
@@ -874,14 +933,15 @@ export const SecurityTokenInvalidSigningKeyException: {
874
933
  new(): SecurityTokenInvalidSigningKeyException;
875
934
  new(message: string): SecurityTokenInvalidSigningKeyException;
876
935
  new(message: string, inner: Exception): SecurityTokenInvalidSigningKeyException;
936
+ new(info: SerializationInfo, context: StreamingContext): SecurityTokenInvalidSigningKeyException;
877
937
  };
878
938
 
879
939
 
880
940
  export type SecurityTokenInvalidSigningKeyException = SecurityTokenInvalidSigningKeyException$instance;
881
941
 
882
942
  export interface SecurityTokenInvalidTypeException$instance extends SecurityTokenValidationException {
883
- invalidType: string;
884
- getObjectData(info: SerializationInfo, context: StreamingContext): void;
943
+ InvalidType: string;
944
+ GetObjectData(info: SerializationInfo, context: StreamingContext): void;
885
945
  }
886
946
 
887
947
 
@@ -889,6 +949,7 @@ export const SecurityTokenInvalidTypeException: {
889
949
  new(): SecurityTokenInvalidTypeException;
890
950
  new(message: string): SecurityTokenInvalidTypeException;
891
951
  new(message: string, innerException: Exception): SecurityTokenInvalidTypeException;
952
+ new(info: SerializationInfo, context: StreamingContext): SecurityTokenInvalidTypeException;
892
953
  };
893
954
 
894
955
 
@@ -902,6 +963,7 @@ export const SecurityTokenKeyWrapException: {
902
963
  new(): SecurityTokenKeyWrapException;
903
964
  new(message: string): SecurityTokenKeyWrapException;
904
965
  new(message: string, innerException: Exception): SecurityTokenKeyWrapException;
966
+ new(info: SerializationInfo, context: StreamingContext): SecurityTokenKeyWrapException;
905
967
  };
906
968
 
907
969
 
@@ -915,6 +977,7 @@ export const SecurityTokenMalformedException: {
915
977
  new(): SecurityTokenMalformedException;
916
978
  new(message: string): SecurityTokenMalformedException;
917
979
  new(message: string, innerException: Exception): SecurityTokenMalformedException;
980
+ new(info: SerializationInfo, context: StreamingContext): SecurityTokenMalformedException;
918
981
  };
919
982
 
920
983
 
@@ -928,14 +991,15 @@ export const SecurityTokenNoExpirationException: {
928
991
  new(): SecurityTokenNoExpirationException;
929
992
  new(message: string): SecurityTokenNoExpirationException;
930
993
  new(message: string, innerException: Exception): SecurityTokenNoExpirationException;
994
+ new(info: SerializationInfo, context: StreamingContext): SecurityTokenNoExpirationException;
931
995
  };
932
996
 
933
997
 
934
998
  export type SecurityTokenNoExpirationException = SecurityTokenNoExpirationException$instance;
935
999
 
936
1000
  export interface SecurityTokenNotYetValidException$instance extends SecurityTokenValidationException {
937
- notBefore: DateTime;
938
- getObjectData(info: SerializationInfo, context: StreamingContext): void;
1001
+ NotBefore: DateTime;
1002
+ GetObjectData(info: SerializationInfo, context: StreamingContext): void;
939
1003
  }
940
1004
 
941
1005
 
@@ -943,6 +1007,7 @@ export const SecurityTokenNotYetValidException: {
943
1007
  new(): SecurityTokenNotYetValidException;
944
1008
  new(message: string): SecurityTokenNotYetValidException;
945
1009
  new(message: string, inner: Exception): SecurityTokenNotYetValidException;
1010
+ new(info: SerializationInfo, context: StreamingContext): SecurityTokenNotYetValidException;
946
1011
  };
947
1012
 
948
1013
 
@@ -956,6 +1021,7 @@ export const SecurityTokenReplayAddFailedException: {
956
1021
  new(): SecurityTokenReplayAddFailedException;
957
1022
  new(message: string): SecurityTokenReplayAddFailedException;
958
1023
  new(message: string, innerException: Exception): SecurityTokenReplayAddFailedException;
1024
+ new(info: SerializationInfo, context: StreamingContext): SecurityTokenReplayAddFailedException;
959
1025
  };
960
1026
 
961
1027
 
@@ -969,6 +1035,7 @@ export const SecurityTokenReplayDetectedException: {
969
1035
  new(): SecurityTokenReplayDetectedException;
970
1036
  new(message: string): SecurityTokenReplayDetectedException;
971
1037
  new(message: string, inner: Exception): SecurityTokenReplayDetectedException;
1038
+ new(info: SerializationInfo, context: StreamingContext): SecurityTokenReplayDetectedException;
972
1039
  };
973
1040
 
974
1041
 
@@ -982,14 +1049,15 @@ export const SecurityTokenSignatureKeyNotFoundException: {
982
1049
  new(): SecurityTokenSignatureKeyNotFoundException;
983
1050
  new(message: string): SecurityTokenSignatureKeyNotFoundException;
984
1051
  new(message: string, innerException: Exception): SecurityTokenSignatureKeyNotFoundException;
1052
+ new(info: SerializationInfo, context: StreamingContext): SecurityTokenSignatureKeyNotFoundException;
985
1053
  };
986
1054
 
987
1055
 
988
1056
  export type SecurityTokenSignatureKeyNotFoundException = SecurityTokenSignatureKeyNotFoundException$instance;
989
1057
 
990
1058
  export interface SecurityTokenUnableToValidateException$instance extends SecurityTokenInvalidSignatureException {
991
- validationFailure: ValidationFailure;
992
- getObjectData(info: SerializationInfo, context: StreamingContext): void;
1059
+ ValidationFailure: ValidationFailure;
1060
+ GetObjectData(info: SerializationInfo, context: StreamingContext): void;
993
1061
  }
994
1062
 
995
1063
 
@@ -998,6 +1066,7 @@ export const SecurityTokenUnableToValidateException: {
998
1066
  new(validationFailure: ValidationFailure, message: string): SecurityTokenUnableToValidateException;
999
1067
  new(message: string): SecurityTokenUnableToValidateException;
1000
1068
  new(message: string, innerException: Exception): SecurityTokenUnableToValidateException;
1069
+ new(info: SerializationInfo, context: StreamingContext): SecurityTokenUnableToValidateException;
1001
1070
  };
1002
1071
 
1003
1072
 
@@ -1011,42 +1080,51 @@ export const SecurityTokenValidationException: {
1011
1080
  new(): SecurityTokenValidationException;
1012
1081
  new(message: string): SecurityTokenValidationException;
1013
1082
  new(message: string, innerException: Exception): SecurityTokenValidationException;
1083
+ new(info: SerializationInfo, context: StreamingContext): SecurityTokenValidationException;
1014
1084
  };
1015
1085
 
1016
1086
 
1017
1087
  export type SecurityTokenValidationException = SecurityTokenValidationException$instance;
1018
1088
 
1019
- export interface SignatureProvider$instance {
1020
- readonly algorithm: string;
1021
- context: string;
1022
- cryptoProviderCache: CryptoProviderCache;
1023
- readonly key: SecurityKey;
1024
- readonly willCreateSignatures: boolean;
1025
- dispose(): void;
1026
- sign(input: byte[]): byte[];
1027
- sign(input: byte[], offset: int, count: int): byte[];
1028
- sign(data: ReadOnlySpan<System_Internal.Byte>, destination: Span<System_Internal.Byte>, bytesWritten: int): boolean;
1029
- verify(input: byte[], signature: byte[]): boolean;
1030
- verify(input: byte[], inputOffset: int, inputLength: int, signature: byte[], signatureOffset: int, signatureLength: int): boolean;
1089
+ export abstract class SignatureProvider$protected {
1090
+ protected abstract Dispose(disposing: boolean): void;
1091
+ }
1092
+
1093
+
1094
+ export interface SignatureProvider$instance extends SignatureProvider$protected {
1095
+ Algorithm: string;
1096
+ Context: string;
1097
+ CryptoProviderCache: CryptoProviderCache;
1098
+ Key: SecurityKey;
1099
+ WillCreateSignatures: boolean;
1100
+ Dispose(): void;
1101
+ Sign(input: byte[]): byte[];
1102
+ Sign(input: byte[], offset: int, count: int): byte[];
1103
+ Sign(data: ReadOnlySpan<System_Internal.Byte>, destination: Span<System_Internal.Byte>, bytesWritten: int): boolean;
1104
+ Verify(input: byte[], signature: byte[]): boolean;
1105
+ Verify(input: byte[], inputOffset: int, inputLength: int, signature: byte[], signatureOffset: int, signatureLength: int): boolean;
1031
1106
  }
1032
1107
 
1033
1108
 
1034
1109
  export const SignatureProvider: {
1110
+ new(key: SecurityKey, algorithm: string): SignatureProvider;
1035
1111
  };
1036
1112
 
1037
1113
 
1038
1114
  export type SignatureProvider = SignatureProvider$instance;
1039
1115
 
1040
1116
  export interface SigningCredentials$instance {
1041
- readonly algorithm: string;
1042
- cryptoProviderFactory: CryptoProviderFactory;
1043
- readonly digest: string;
1044
- readonly key: SecurityKey;
1045
- readonly kid: string;
1117
+ Algorithm: string;
1118
+ CryptoProviderFactory: CryptoProviderFactory;
1119
+ Digest: string;
1120
+ Key: SecurityKey;
1121
+ readonly Kid: string;
1046
1122
  }
1047
1123
 
1048
1124
 
1049
1125
  export const SigningCredentials: {
1126
+ new(certificate: X509Certificate2): SigningCredentials;
1127
+ new(certificate: X509Certificate2, algorithm: string): SigningCredentials;
1050
1128
  new(key: SecurityKey, algorithm: string): SigningCredentials;
1051
1129
  new(key: SecurityKey, algorithm: string, digest: string): SigningCredentials;
1052
1130
  };
@@ -1054,12 +1132,20 @@ export const SigningCredentials: {
1054
1132
 
1055
1133
  export type SigningCredentials = SigningCredentials$instance;
1056
1134
 
1057
- export interface SymmetricKeyWrapProvider$instance extends KeyWrapProvider {
1058
- readonly algorithm: string;
1059
- context: string;
1060
- readonly key: SecurityKey;
1061
- unwrapKey(keyBytes: byte[]): byte[];
1062
- wrapKey(keyBytes: byte[]): byte[];
1135
+ export abstract class SymmetricKeyWrapProvider$protected {
1136
+ protected Dispose2(disposing: boolean): void;
1137
+ protected GetSymmetricAlgorithm(key: SecurityKey, algorithm: string): SymmetricAlgorithm;
1138
+ protected IsSupportedAlgorithm(key: SecurityKey, algorithm: string): boolean;
1139
+ }
1140
+
1141
+
1142
+ export interface SymmetricKeyWrapProvider$instance extends SymmetricKeyWrapProvider$protected, KeyWrapProvider {
1143
+ readonly Algorithm: string;
1144
+ Context: string;
1145
+ readonly Key: SecurityKey;
1146
+ Dispose(): void;
1147
+ UnwrapKey(keyBytes: byte[]): byte[];
1148
+ WrapKey(keyBytes: byte[]): byte[];
1063
1149
  }
1064
1150
 
1065
1151
 
@@ -1071,10 +1157,10 @@ export const SymmetricKeyWrapProvider: {
1071
1157
  export type SymmetricKeyWrapProvider = SymmetricKeyWrapProvider$instance;
1072
1158
 
1073
1159
  export interface SymmetricSecurityKey$instance extends SecurityKey {
1074
- readonly key: byte[];
1075
- readonly keySize: int;
1076
- canComputeJwkThumbprint(): boolean;
1077
- computeJwkThumbprint(): byte[];
1160
+ readonly Key: byte[];
1161
+ readonly KeySize: int;
1162
+ CanComputeJwkThumbprint(): boolean;
1163
+ ComputeJwkThumbprint(): byte[];
1078
1164
  }
1079
1165
 
1080
1166
 
@@ -1085,22 +1171,31 @@ export const SymmetricSecurityKey: {
1085
1171
 
1086
1172
  export type SymmetricSecurityKey = SymmetricSecurityKey$instance;
1087
1173
 
1088
- export interface SymmetricSignatureProvider$instance extends SignatureProvider {
1089
- minimumSymmetricKeySizeInBits: int;
1090
- sign(input: byte[]): byte[];
1091
- sign(input: ReadOnlySpan<System_Internal.Byte>, signature: Span<System_Internal.Byte>, bytesWritten: int): boolean;
1092
- sign(input: byte[], offset: int, count: int): byte[];
1093
- sign(data: ReadOnlySpan<System_Internal.Byte>, destination: Span<System_Internal.Byte>, bytesWritten: int): boolean;
1094
- verify(input: byte[], signature: byte[]): boolean;
1095
- verify(input: byte[], signature: byte[], length: int): boolean;
1096
- verify(input: byte[], inputOffset: int, inputLength: int, signature: byte[], signatureOffset: int, signatureLength: int): boolean;
1174
+ export abstract class SymmetricSignatureProvider$protected {
1175
+ protected Dispose2(disposing: boolean): void;
1176
+ protected GetKeyBytes(key: SecurityKey): byte[];
1177
+ protected GetKeyedHashAlgorithm(keyBytes: byte[], algorithm: string): KeyedHashAlgorithm;
1178
+ protected ReleaseKeyedHashAlgorithm(keyedHashAlgorithm: KeyedHashAlgorithm): void;
1179
+ }
1180
+
1181
+
1182
+ export interface SymmetricSignatureProvider$instance extends SymmetricSignatureProvider$protected, SignatureProvider {
1183
+ MinimumSymmetricKeySizeInBits: int;
1184
+ Dispose(): void;
1185
+ Sign(input: byte[]): byte[];
1186
+ Sign(input: ReadOnlySpan<System_Internal.Byte>, signature: Span<System_Internal.Byte>, bytesWritten: int): boolean;
1187
+ Sign(input: byte[], offset: int, count: int): byte[];
1188
+ Sign(data: ReadOnlySpan<System_Internal.Byte>, destination: Span<System_Internal.Byte>, bytesWritten: int): boolean;
1189
+ Verify(input: byte[], signature: byte[]): boolean;
1190
+ Verify(input: byte[], signature: byte[], length: int): boolean;
1191
+ Verify(input: byte[], inputOffset: int, inputLength: int, signature: byte[], signatureOffset: int, signatureLength: int): boolean;
1097
1192
  }
1098
1193
 
1099
1194
 
1100
1195
  export const SymmetricSignatureProvider: {
1101
1196
  new(key: SecurityKey, algorithm: string): SymmetricSignatureProvider;
1102
1197
  new(key: SecurityKey, algorithm: string, willCreateSignatures: boolean): SymmetricSignatureProvider;
1103
- readonly defaultMinimumSymmetricKeySizeInBits: int;
1198
+ readonly DefaultMinimumSymmetricKeySizeInBits: int;
1104
1199
  };
1105
1200
 
1106
1201
 
@@ -1119,107 +1214,109 @@ export const TokenContext: {
1119
1214
  export type TokenContext = TokenContext$instance;
1120
1215
 
1121
1216
  export interface TokenHandler$instance {
1122
- maximumTokenSizeInBytes: int;
1123
- setDefaultTimesOnTokenCreation: boolean;
1124
- tokenLifetimeInMinutes: int;
1125
- readToken(token: string): SecurityToken;
1126
- validateTokenAsync(token: string, validationParameters: TokenValidationParameters): Task<TokenValidationResult>;
1127
- validateTokenAsync(token: SecurityToken, validationParameters: TokenValidationParameters): Task<TokenValidationResult>;
1217
+ MaximumTokenSizeInBytes: int;
1218
+ SetDefaultTimesOnTokenCreation: boolean;
1219
+ TokenLifetimeInMinutes: int;
1220
+ ReadToken(token: string): SecurityToken;
1221
+ ValidateTokenAsync(token: string, validationParameters: TokenValidationParameters): Task<TokenValidationResult>;
1222
+ ValidateTokenAsync(token: SecurityToken, validationParameters: TokenValidationParameters): Task<TokenValidationResult>;
1128
1223
  }
1129
1224
 
1130
1225
 
1131
1226
  export const TokenHandler: {
1132
- readonly defaultTokenLifetimeInMinutes: int;
1227
+ new(): TokenHandler;
1228
+ readonly DefaultTokenLifetimeInMinutes: int;
1133
1229
  };
1134
1230
 
1135
1231
 
1136
1232
  export type TokenHandler = TokenHandler$instance;
1137
1233
 
1138
1234
  export interface TokenValidationParameters$instance {
1139
- actorValidationParameters: TokenValidationParameters;
1140
- algorithmValidator: AlgorithmValidator;
1141
- audienceValidator: AudienceValidator;
1142
- authenticationType: string;
1143
- clockSkew: TimeSpan;
1144
- configurationManager: BaseConfigurationManager;
1145
- cryptoProviderFactory: CryptoProviderFactory;
1146
- debugId: string;
1147
- ignoreTrailingSlashWhenValidatingAudience: boolean;
1148
- includeTokenOnFailedValidation: boolean;
1149
- readonly instancePropertyBag: IDictionary<System_Internal.String, unknown>;
1150
- readonly isClone: boolean;
1151
- issuerSigningKey: SecurityKey;
1152
- issuerSigningKeyResolver: IssuerSigningKeyResolver;
1153
- issuerSigningKeyResolverUsingConfiguration: IssuerSigningKeyResolverUsingConfiguration;
1154
- issuerSigningKeys: IEnumerable<SecurityKey>;
1155
- issuerSigningKeyValidator: IssuerSigningKeyValidator;
1156
- issuerSigningKeyValidatorUsingConfiguration: IssuerSigningKeyValidatorUsingConfiguration;
1157
- issuerValidator: IssuerValidator;
1158
- issuerValidatorUsingConfiguration: IssuerValidatorUsingConfiguration;
1159
- lifetimeValidator: LifetimeValidator;
1160
- logTokenId: boolean;
1161
- logValidationExceptions: boolean;
1162
- nameClaimType: string;
1163
- nameClaimTypeRetriever: Func<SecurityToken, System_Internal.String, System_Internal.String>;
1164
- propertyBag: IDictionary<System_Internal.String, unknown>;
1165
- refreshBeforeValidation: boolean;
1166
- requireAudience: boolean;
1167
- requireExpirationTime: boolean;
1168
- requireSignedTokens: boolean;
1169
- roleClaimType: string;
1170
- roleClaimTypeRetriever: Func<SecurityToken, System_Internal.String, System_Internal.String>;
1171
- saveSigninToken: boolean;
1172
- signatureValidator: SignatureValidator;
1173
- signatureValidatorUsingConfiguration: SignatureValidatorUsingConfiguration;
1174
- tokenDecryptionKey: SecurityKey;
1175
- tokenDecryptionKeyResolver: TokenDecryptionKeyResolver;
1176
- tokenDecryptionKeys: IEnumerable<SecurityKey>;
1177
- tokenReader: TokenReader;
1178
- tokenReplayCache: ITokenReplayCache;
1179
- tokenReplayValidator: TokenReplayValidator;
1180
- transformBeforeSignatureValidation: TransformBeforeSignatureValidation;
1181
- tryAllIssuerSigningKeys: boolean;
1182
- typeValidator: TypeValidator;
1183
- validAlgorithms: IEnumerable<System_Internal.String>;
1184
- validateActor: boolean;
1185
- validateAudience: boolean;
1186
- validateIssuer: boolean;
1187
- validateIssuerSigningKey: boolean;
1188
- validateLifetime: boolean;
1189
- validateSignatureLast: boolean;
1190
- validateTokenReplay: boolean;
1191
- validateWithLKG: boolean;
1192
- validAudience: string;
1193
- validAudiences: IEnumerable<System_Internal.String>;
1194
- validIssuer: string;
1195
- validIssuers: IEnumerable<System_Internal.String>;
1196
- validTypes: IEnumerable<System_Internal.String>;
1197
- clone(): TokenValidationParameters;
1198
- createClaimsIdentity(securityToken: SecurityToken, issuer: string): ClaimsIdentity;
1235
+ ActorValidationParameters: TokenValidationParameters;
1236
+ AlgorithmValidator: AlgorithmValidator;
1237
+ AudienceValidator: AudienceValidator;
1238
+ AuthenticationType: string;
1239
+ ClockSkew: TimeSpan;
1240
+ ConfigurationManager: BaseConfigurationManager;
1241
+ CryptoProviderFactory: CryptoProviderFactory;
1242
+ DebugId: string;
1243
+ IgnoreTrailingSlashWhenValidatingAudience: boolean;
1244
+ IncludeTokenOnFailedValidation: boolean;
1245
+ readonly InstancePropertyBag: IDictionary<System_Internal.String, unknown>;
1246
+ IsClone: boolean;
1247
+ IssuerSigningKey: SecurityKey;
1248
+ IssuerSigningKeyResolver: IssuerSigningKeyResolver;
1249
+ IssuerSigningKeyResolverUsingConfiguration: IssuerSigningKeyResolverUsingConfiguration;
1250
+ IssuerSigningKeys: IEnumerable<SecurityKey>;
1251
+ IssuerSigningKeyValidator: IssuerSigningKeyValidator;
1252
+ IssuerSigningKeyValidatorUsingConfiguration: IssuerSigningKeyValidatorUsingConfiguration;
1253
+ IssuerValidator: IssuerValidator;
1254
+ IssuerValidatorUsingConfiguration: IssuerValidatorUsingConfiguration;
1255
+ LifetimeValidator: LifetimeValidator;
1256
+ LogTokenId: boolean;
1257
+ LogValidationExceptions: boolean;
1258
+ NameClaimType: string;
1259
+ NameClaimTypeRetriever: Func<SecurityToken, System_Internal.String, System_Internal.String>;
1260
+ PropertyBag: IDictionary<System_Internal.String, unknown>;
1261
+ RefreshBeforeValidation: boolean;
1262
+ RequireAudience: boolean;
1263
+ RequireExpirationTime: boolean;
1264
+ RequireSignedTokens: boolean;
1265
+ RoleClaimType: string;
1266
+ RoleClaimTypeRetriever: Func<SecurityToken, System_Internal.String, System_Internal.String>;
1267
+ SaveSigninToken: boolean;
1268
+ SignatureValidator: SignatureValidator;
1269
+ SignatureValidatorUsingConfiguration: SignatureValidatorUsingConfiguration;
1270
+ TokenDecryptionKey: SecurityKey;
1271
+ TokenDecryptionKeyResolver: TokenDecryptionKeyResolver;
1272
+ TokenDecryptionKeys: IEnumerable<SecurityKey>;
1273
+ TokenReader: TokenReader;
1274
+ TokenReplayCache: ITokenReplayCache;
1275
+ TokenReplayValidator: TokenReplayValidator;
1276
+ TransformBeforeSignatureValidation: TransformBeforeSignatureValidation;
1277
+ TryAllIssuerSigningKeys: boolean;
1278
+ TypeValidator: TypeValidator;
1279
+ ValidAlgorithms: IEnumerable<System_Internal.String>;
1280
+ ValidateActor: boolean;
1281
+ ValidateAudience: boolean;
1282
+ ValidateIssuer: boolean;
1283
+ ValidateIssuerSigningKey: boolean;
1284
+ ValidateLifetime: boolean;
1285
+ ValidateSignatureLast: boolean;
1286
+ ValidateTokenReplay: boolean;
1287
+ ValidateWithLKG: boolean;
1288
+ ValidAudience: string;
1289
+ ValidAudiences: IEnumerable<System_Internal.String>;
1290
+ ValidIssuer: string;
1291
+ ValidIssuers: IEnumerable<System_Internal.String>;
1292
+ ValidTypes: IEnumerable<System_Internal.String>;
1293
+ Clone(): TokenValidationParameters;
1294
+ CreateClaimsIdentity(securityToken: SecurityToken, issuer: string): ClaimsIdentity;
1199
1295
  }
1200
1296
 
1201
1297
 
1202
1298
  export const TokenValidationParameters: {
1299
+ new(other: TokenValidationParameters): TokenValidationParameters;
1203
1300
  new(): TokenValidationParameters;
1204
- readonly defaultAuthenticationType: string;
1205
- readonly defaultClockSkew: TimeSpan;
1206
- readonly defaultMaximumTokenSizeInBytes: int;
1301
+ readonly DefaultAuthenticationType: string;
1302
+ readonly DefaultClockSkew: TimeSpan;
1303
+ readonly DefaultMaximumTokenSizeInBytes: int;
1207
1304
  };
1208
1305
 
1209
1306
 
1210
1307
  export type TokenValidationParameters = TokenValidationParameters$instance;
1211
1308
 
1212
1309
  export interface TokenValidationResult$instance {
1213
- readonly claims: IDictionary<System_Internal.String, unknown>;
1214
- claimsIdentity: ClaimsIdentity;
1215
- exception: Exception;
1216
- issuer: string;
1217
- isValid: boolean;
1218
- readonly propertyBag: IDictionary<System_Internal.String, unknown>;
1219
- securityToken: SecurityToken;
1220
- tokenContext: CallContext;
1221
- readonly tokenOnFailedValidation: SecurityToken;
1222
- tokenType: string;
1310
+ readonly Claims: IDictionary<System_Internal.String, unknown>;
1311
+ ClaimsIdentity: ClaimsIdentity;
1312
+ Exception: Exception;
1313
+ Issuer: string;
1314
+ IsValid: boolean;
1315
+ readonly PropertyBag: IDictionary<System_Internal.String, unknown>;
1316
+ SecurityToken: SecurityToken;
1317
+ TokenContext: CallContext;
1318
+ TokenOnFailedValidation: SecurityToken;
1319
+ TokenType: string;
1223
1320
  }
1224
1321
 
1225
1322
 
@@ -1231,7 +1328,8 @@ export const TokenValidationResult: {
1231
1328
  export type TokenValidationResult = TokenValidationResult$instance;
1232
1329
 
1233
1330
  export interface X509EncryptingCredentials$instance extends EncryptingCredentials {
1234
- readonly certificate: X509Certificate2 | undefined;
1331
+ get Certificate(): X509Certificate2 | undefined;
1332
+ set Certificate(value: X509Certificate2);
1235
1333
  }
1236
1334
 
1237
1335
 
@@ -1244,17 +1342,18 @@ export const X509EncryptingCredentials: {
1244
1342
  export type X509EncryptingCredentials = X509EncryptingCredentials$instance;
1245
1343
 
1246
1344
  export interface X509SecurityKey$instance extends AsymmetricSecurityKey {
1247
- readonly certificate: X509Certificate2 | undefined;
1248
- readonly hasPrivateKey: boolean;
1249
- readonly keySize: int;
1250
- readonly privateKey: AsymmetricAlgorithm;
1251
- readonly privateKeyStatus: PrivateKeyStatus;
1252
- readonly publicKey: AsymmetricAlgorithm;
1253
- readonly x5t: string;
1254
- canComputeJwkThumbprint(): boolean;
1255
- computeJwkThumbprint(): byte[];
1256
- equals(obj: unknown): boolean;
1257
- getHashCode(): int;
1345
+ get Certificate(): X509Certificate2 | undefined;
1346
+ set Certificate(value: X509Certificate2);
1347
+ readonly HasPrivateKey: boolean;
1348
+ readonly KeySize: int;
1349
+ readonly PrivateKey: AsymmetricAlgorithm;
1350
+ readonly PrivateKeyStatus: PrivateKeyStatus;
1351
+ readonly PublicKey: AsymmetricAlgorithm;
1352
+ readonly X5t: string;
1353
+ CanComputeJwkThumbprint(): boolean;
1354
+ ComputeJwkThumbprint(): byte[];
1355
+ Equals(obj: unknown): boolean;
1356
+ GetHashCode(): int;
1258
1357
  }
1259
1358
 
1260
1359
 
@@ -1267,7 +1366,8 @@ export const X509SecurityKey: {
1267
1366
  export type X509SecurityKey = X509SecurityKey$instance;
1268
1367
 
1269
1368
  export interface X509SigningCredentials$instance extends SigningCredentials {
1270
- readonly certificate: X509Certificate2 | undefined;
1369
+ get Certificate(): X509Certificate2 | undefined;
1370
+ set Certificate(value: X509Certificate2);
1271
1371
  }
1272
1372
 
1273
1373
 
@@ -1280,48 +1380,48 @@ export const X509SigningCredentials: {
1280
1380
  export type X509SigningCredentials = X509SigningCredentials$instance;
1281
1381
 
1282
1382
  export abstract class Base64UrlEncoder$instance {
1283
- static decode(arg: string): string;
1284
- static decodeBytes(str: string): byte[];
1285
- static encode(inArray: byte[], offset: int, length: int): string;
1286
- static encode(inArray: byte[]): string;
1287
- static encode(inArray: ReadOnlySpan<System_Internal.Byte>, output: Span<System_Internal.Char>): int;
1288
- static encode(arg: string): string;
1383
+ static Decode(arg: string): string;
1384
+ static DecodeBytes(str: string): byte[];
1385
+ static Encode(inArray: byte[], offset: int, length: int): string;
1386
+ static Encode(inArray: byte[]): string;
1387
+ static Encode(inArray: ReadOnlySpan<System_Internal.Byte>, output: Span<System_Internal.Char>): int;
1388
+ static Encode(arg: string): string;
1289
1389
  }
1290
1390
 
1291
1391
 
1292
1392
  export type Base64UrlEncoder = Base64UrlEncoder$instance;
1293
1393
 
1294
1394
  export abstract class CollectionUtilities$instance {
1295
- static isNullOrEmpty<T>(enumerable: IEnumerable<T>): boolean;
1395
+ static IsNullOrEmpty<T>(enumerable: IEnumerable<T>): boolean;
1296
1396
  }
1297
1397
 
1298
1398
 
1299
1399
  export type CollectionUtilities = CollectionUtilities$instance;
1300
1400
 
1301
1401
  export abstract class DateTimeUtil$instance {
1302
- static add(time: DateTime, timespan: TimeSpan): DateTime;
1303
- static getMaxValue(kind: DateTimeKind): DateTime;
1304
- static getMinValue(kind: DateTimeKind): DateTime;
1305
- static toUniversalTime(value: DateTime): DateTime;
1306
- static toUniversalTime(value: Nullable<DateTime>): Nullable<DateTime>;
1402
+ static Add(time: DateTime, timespan: TimeSpan): DateTime;
1403
+ static GetMaxValue(kind: DateTimeKind): DateTime;
1404
+ static GetMinValue(kind: DateTimeKind): DateTime;
1405
+ static ToUniversalTime(value: DateTime): DateTime;
1406
+ static ToUniversalTime(value: Nullable<DateTime>): Nullable<DateTime>;
1307
1407
  }
1308
1408
 
1309
1409
 
1310
1410
  export type DateTimeUtil = DateTimeUtil$instance;
1311
1411
 
1312
1412
  export abstract class EpochTime$instance {
1313
- static readonly unixEpoch: DateTime;
1314
- static dateTime(secondsSinceUnixEpoch: long): DateTime;
1315
- static getIntDate(datetime: DateTime): long;
1413
+ static readonly UnixEpoch: DateTime;
1414
+ static DateTime(secondsSinceUnixEpoch: long): DateTime;
1415
+ static GetIntDate(datetime: DateTime): long;
1316
1416
  }
1317
1417
 
1318
1418
 
1319
1419
  export type EpochTime = EpochTime$instance;
1320
1420
 
1321
1421
  export abstract class JsonWebAlgorithmsKeyTypes$instance {
1322
- static readonly ellipticCurve: string;
1422
+ static readonly EllipticCurve: string;
1323
1423
  static readonly RSA: string;
1324
- static readonly octet: string;
1424
+ static readonly Octet: string;
1325
1425
  }
1326
1426
 
1327
1427
 
@@ -1338,28 +1438,28 @@ export abstract class JsonWebKeyECTypes$instance {
1338
1438
  export type JsonWebKeyECTypes = JsonWebKeyECTypes$instance;
1339
1439
 
1340
1440
  export abstract class JsonWebKeyParameterNames$instance {
1341
- static readonly alg: string;
1342
- static readonly crv: string;
1441
+ static readonly Alg: string;
1442
+ static readonly Crv: string;
1343
1443
  static readonly D: string;
1344
1444
  static readonly DP: string;
1345
1445
  static readonly DQ: string;
1346
1446
  static readonly E: string;
1347
1447
  static readonly K: string;
1348
- static readonly keyOps: string;
1349
- static readonly keys: string;
1350
- static readonly kid: string;
1351
- static readonly kty: string;
1448
+ static readonly KeyOps: string;
1449
+ static readonly Keys: string;
1450
+ static readonly Kid: string;
1451
+ static readonly Kty: string;
1352
1452
  static readonly N: string;
1353
- static readonly oth: string;
1453
+ static readonly Oth: string;
1354
1454
  static readonly P: string;
1355
1455
  static readonly Q: string;
1356
1456
  static readonly QI: string;
1357
- static readonly use: string;
1457
+ static readonly Use: string;
1358
1458
  static readonly X: string;
1359
- static readonly x5c: string;
1360
- static readonly x5t: string;
1361
- static readonly x5tS256: string;
1362
- static readonly x5u: string;
1459
+ static readonly X5c: string;
1460
+ static readonly X5t: string;
1461
+ static readonly X5tS256: string;
1462
+ static readonly X5u: string;
1363
1463
  static readonly Y: string;
1364
1464
  }
1365
1465
 
@@ -1367,117 +1467,117 @@ export abstract class JsonWebKeyParameterNames$instance {
1367
1467
  export type JsonWebKeyParameterNames = JsonWebKeyParameterNames$instance;
1368
1468
 
1369
1469
  export abstract class JsonWebKeySetParameterNames$instance {
1370
- static readonly keys: string;
1470
+ static readonly Keys: string;
1371
1471
  }
1372
1472
 
1373
1473
 
1374
1474
  export type JsonWebKeySetParameterNames = JsonWebKeySetParameterNames$instance;
1375
1475
 
1376
1476
  export abstract class JsonWebKeyUseNames$instance {
1377
- static readonly sig: string;
1378
- static readonly enc: string;
1477
+ static readonly Sig: string;
1478
+ static readonly Enc: string;
1379
1479
  }
1380
1480
 
1381
1481
 
1382
1482
  export type JsonWebKeyUseNames = JsonWebKeyUseNames$instance;
1383
1483
 
1384
1484
  export abstract class SecurityAlgorithms$instance {
1385
- static readonly aes128Encryption: string;
1386
- static readonly aes192Encryption: string;
1387
- static readonly aes256Encryption: string;
1388
- static readonly desEncryption: string;
1389
- static readonly aes128KeyWrap: string;
1390
- static readonly aes192KeyWrap: string;
1391
- static readonly aes256KeyWrap: string;
1392
- static readonly rsaV15KeyWrap: string;
1393
- static readonly ripemd160Digest: string;
1394
- static readonly rsaOaepKeyWrap: string;
1395
- static readonly aes128KW: string;
1396
- static readonly aes192KW: string;
1397
- static readonly aes256KW: string;
1398
- static readonly rsaPKCS1: string;
1399
- static readonly rsaOAEP: string;
1400
- static readonly exclusiveC14n: string;
1401
- static readonly exclusiveC14nWithComments: string;
1402
- static readonly envelopedSignature: string;
1403
- static readonly sha256Digest: string;
1404
- static readonly sha384Digest: string;
1405
- static readonly sha512Digest: string;
1406
- static readonly sha256: string;
1407
- static readonly sha384: string;
1408
- static readonly sha512: string;
1409
- static readonly ecdsaSha256Signature: string;
1410
- static readonly ecdsaSha384Signature: string;
1411
- static readonly ecdsaSha512Signature: string;
1412
- static readonly hmacSha256Signature: string;
1413
- static readonly hmacSha384Signature: string;
1414
- static readonly hmacSha512Signature: string;
1415
- static readonly rsaSha256Signature: string;
1416
- static readonly rsaSha384Signature: string;
1417
- static readonly rsaSha512Signature: string;
1418
- static readonly rsaSsaPssSha256Signature: string;
1419
- static readonly rsaSsaPssSha384Signature: string;
1420
- static readonly rsaSsaPssSha512Signature: string;
1421
- static readonly ecdsaSha256: string;
1422
- static readonly ecdsaSha384: string;
1423
- static readonly ecdsaSha512: string;
1424
- static readonly hmacSha256: string;
1425
- static readonly hmacSha384: string;
1426
- static readonly hmacSha512: string;
1427
- static readonly none: string;
1428
- static readonly rsaSha256: string;
1429
- static readonly rsaSha384: string;
1430
- static readonly rsaSha512: string;
1431
- static readonly rsaSsaPssSha256: string;
1432
- static readonly rsaSsaPssSha384: string;
1433
- static readonly rsaSsaPssSha512: string;
1434
- static readonly aes128CbcHmacSha256: string;
1435
- static readonly aes192CbcHmacSha384: string;
1436
- static readonly aes256CbcHmacSha512: string;
1437
- static readonly aes128Gcm: string;
1438
- static readonly aes192Gcm: string;
1439
- static readonly aes256Gcm: string;
1440
- static readonly ecdhEsA128kw: string;
1441
- static readonly ecdhEsA192kw: string;
1442
- static readonly ecdhEsA256kw: string;
1443
- static readonly ecdhEs: string;
1485
+ static readonly Aes128Encryption: string;
1486
+ static readonly Aes192Encryption: string;
1487
+ static readonly Aes256Encryption: string;
1488
+ static readonly DesEncryption: string;
1489
+ static readonly Aes128KeyWrap: string;
1490
+ static readonly Aes192KeyWrap: string;
1491
+ static readonly Aes256KeyWrap: string;
1492
+ static readonly RsaV15KeyWrap: string;
1493
+ static readonly Ripemd160Digest: string;
1494
+ static readonly RsaOaepKeyWrap: string;
1495
+ static readonly Aes128KW: string;
1496
+ static readonly Aes192KW: string;
1497
+ static readonly Aes256KW: string;
1498
+ static readonly RsaPKCS1: string;
1499
+ static readonly RsaOAEP: string;
1500
+ static readonly ExclusiveC14n: string;
1501
+ static readonly ExclusiveC14nWithComments: string;
1502
+ static readonly EnvelopedSignature: string;
1503
+ static readonly Sha256Digest: string;
1504
+ static readonly Sha384Digest: string;
1505
+ static readonly Sha512Digest: string;
1506
+ static readonly Sha256: string;
1507
+ static readonly Sha384: string;
1508
+ static readonly Sha512: string;
1509
+ static readonly EcdsaSha256Signature: string;
1510
+ static readonly EcdsaSha384Signature: string;
1511
+ static readonly EcdsaSha512Signature: string;
1512
+ static readonly HmacSha256Signature: string;
1513
+ static readonly HmacSha384Signature: string;
1514
+ static readonly HmacSha512Signature: string;
1515
+ static readonly RsaSha256Signature: string;
1516
+ static readonly RsaSha384Signature: string;
1517
+ static readonly RsaSha512Signature: string;
1518
+ static readonly RsaSsaPssSha256Signature: string;
1519
+ static readonly RsaSsaPssSha384Signature: string;
1520
+ static readonly RsaSsaPssSha512Signature: string;
1521
+ static readonly EcdsaSha256: string;
1522
+ static readonly EcdsaSha384: string;
1523
+ static readonly EcdsaSha512: string;
1524
+ static readonly HmacSha256: string;
1525
+ static readonly HmacSha384: string;
1526
+ static readonly HmacSha512: string;
1527
+ static readonly None: string;
1528
+ static readonly RsaSha256: string;
1529
+ static readonly RsaSha384: string;
1530
+ static readonly RsaSha512: string;
1531
+ static readonly RsaSsaPssSha256: string;
1532
+ static readonly RsaSsaPssSha384: string;
1533
+ static readonly RsaSsaPssSha512: string;
1534
+ static readonly Aes128CbcHmacSha256: string;
1535
+ static readonly Aes192CbcHmacSha384: string;
1536
+ static readonly Aes256CbcHmacSha512: string;
1537
+ static readonly Aes128Gcm: string;
1538
+ static readonly Aes192Gcm: string;
1539
+ static readonly Aes256Gcm: string;
1540
+ static readonly EcdhEsA128kw: string;
1541
+ static readonly EcdhEsA192kw: string;
1542
+ static readonly EcdhEsA256kw: string;
1543
+ static readonly EcdhEs: string;
1444
1544
  }
1445
1545
 
1446
1546
 
1447
1547
  export type SecurityAlgorithms = SecurityAlgorithms$instance;
1448
1548
 
1449
1549
  export abstract class UniqueId$instance {
1450
- static createRandomId(): string;
1451
- static createRandomId(prefix: string): string;
1452
- static createRandomUri(): Uri;
1453
- static createUniqueId(): string;
1454
- static createUniqueId(prefix: string): string;
1550
+ static CreateRandomId(): string;
1551
+ static CreateRandomId(prefix: string): string;
1552
+ static CreateRandomUri(): Uri;
1553
+ static CreateUniqueId(): string;
1554
+ static CreateUniqueId(prefix: string): string;
1455
1555
  }
1456
1556
 
1457
1557
 
1458
1558
  export type UniqueId = UniqueId$instance;
1459
1559
 
1460
1560
  export abstract class Utility$instance {
1461
- static readonly empty: string;
1462
- static readonly null: string;
1463
- static areEqual(a: byte[], b: byte[]): boolean;
1464
- static cloneByteArray(src: byte[]): byte[];
1465
- static isHttps(address: string): boolean;
1466
- static isHttps(uri: Uri): boolean;
1561
+ static readonly Empty: string;
1562
+ static readonly Null: string;
1563
+ static AreEqual(a: byte[], b: byte[]): boolean;
1564
+ static CloneByteArray(src: byte[]): byte[];
1565
+ static IsHttps(address: string): boolean;
1566
+ static IsHttps(uri: Uri): boolean;
1467
1567
  }
1468
1568
 
1469
1569
 
1470
1570
  export type Utility = Utility$instance;
1471
1571
 
1472
1572
  export abstract class Validators$instance {
1473
- static validateAlgorithm(algorithm: string, securityKey: SecurityKey, securityToken: SecurityToken, validationParameters: TokenValidationParameters): void;
1474
- static validateAudience(audiences: IEnumerable<System_Internal.String>, securityToken: SecurityToken, validationParameters: TokenValidationParameters): void;
1475
- static validateIssuer(issuer: string, securityToken: SecurityToken, validationParameters: TokenValidationParameters): string;
1476
- static validateIssuerSecurityKey(securityKey: SecurityKey, securityToken: SecurityToken, validationParameters: TokenValidationParameters): void;
1477
- static validateLifetime(notBefore: Nullable<DateTime>, expires: Nullable<DateTime>, securityToken: SecurityToken, validationParameters: TokenValidationParameters): void;
1478
- static validateTokenReplay(expirationTime: Nullable<DateTime>, securityToken: string, validationParameters: TokenValidationParameters): void;
1479
- static validateTokenReplay(securityToken: string, expirationTime: Nullable<DateTime>, validationParameters: TokenValidationParameters): void;
1480
- static validateTokenType(type: string, securityToken: SecurityToken, validationParameters: TokenValidationParameters): string;
1573
+ static ValidateAlgorithm(algorithm: string, securityKey: SecurityKey, securityToken: SecurityToken, validationParameters: TokenValidationParameters): void;
1574
+ static ValidateAudience(audiences: IEnumerable<System_Internal.String>, securityToken: SecurityToken, validationParameters: TokenValidationParameters): void;
1575
+ static ValidateIssuer(issuer: string, securityToken: SecurityToken, validationParameters: TokenValidationParameters): string;
1576
+ static ValidateIssuerSecurityKey(securityKey: SecurityKey, securityToken: SecurityToken, validationParameters: TokenValidationParameters): void;
1577
+ static ValidateLifetime(notBefore: Nullable<DateTime>, expires: Nullable<DateTime>, securityToken: SecurityToken, validationParameters: TokenValidationParameters): void;
1578
+ static ValidateTokenReplay(expirationTime: Nullable<DateTime>, securityToken: string, validationParameters: TokenValidationParameters): void;
1579
+ static ValidateTokenReplay(securityToken: string, expirationTime: Nullable<DateTime>, validationParameters: TokenValidationParameters): void;
1580
+ static ValidateTokenType(type: string, securityToken: SecurityToken, validationParameters: TokenValidationParameters): string;
1481
1581
  }
1482
1582
 
1483
1583