@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.
- package/Azure/bindings.json +1638 -2427
- package/Azure/internal/index.d.ts +169 -139
- package/Azure.Core/bindings.json +2874 -3751
- package/Azure.Core/internal/index.d.ts +326 -295
- package/Azure.Core.Cryptography/bindings.json +51 -65
- package/Azure.Core.Cryptography/internal/index.d.ts +5 -5
- package/Azure.Core.Diagnostics/bindings.json +79 -69
- package/Azure.Core.Diagnostics/internal/index.d.ts +13 -7
- package/Azure.Core.Diagnostics.d.ts +2 -2
- package/Azure.Core.Extensions/bindings.json +71 -57
- package/Azure.Core.Extensions/internal/index.d.ts +4 -4
- package/Azure.Core.GeoJson/bindings.json +814 -1379
- package/Azure.Core.GeoJson/internal/index.d.ts +67 -67
- package/Azure.Core.Pipeline/bindings.json +847 -880
- package/Azure.Core.Pipeline/internal/index.d.ts +79 -56
- package/Azure.Core.Pipeline.d.ts +2 -2
- package/Azure.Core.Serialization/bindings.json +251 -302
- package/Azure.Core.Serialization/internal/index.d.ts +22 -21
- package/Azure.Core.d.ts +1 -1
- package/Azure.Identity/bindings.json +2882 -7099
- package/Azure.Identity/internal/index.d.ts +250 -229
- package/Azure.Identity.d.ts +1 -1
- package/Azure.Messaging/bindings.json +166 -230
- package/Azure.Messaging/internal/index.d.ts +27 -22
- package/Azure.d.ts +1 -1
- package/Microsoft.Data/bindings.json +34 -27
- package/Microsoft.Data/internal/index.d.ts +2 -2
- package/Microsoft.Data.Sql/bindings.json +57 -94
- package/Microsoft.Data.Sql/internal/index.d.ts +5 -5
- package/Microsoft.Data.SqlClient/bindings.json +6187 -8407
- package/Microsoft.Data.SqlClient/internal/index.d.ts +718 -626
- package/Microsoft.Data.SqlClient.DataClassification/bindings.json +173 -283
- package/Microsoft.Data.SqlClient.DataClassification/internal/index.d.ts +12 -12
- package/Microsoft.Data.SqlClient.Diagnostics/bindings.json +1458 -1995
- package/Microsoft.Data.SqlClient.Diagnostics/internal/index.d.ts +159 -159
- package/Microsoft.Data.SqlClient.Server/bindings.json +1112 -1776
- package/Microsoft.Data.SqlClient.Server/internal/index.d.ts +131 -131
- package/Microsoft.Data.SqlTypes/bindings.json +257 -405
- package/Microsoft.Data.SqlTypes/internal/index.d.ts +30 -30
- package/Microsoft.EntityFrameworkCore/bindings.json +7017 -8970
- package/Microsoft.EntityFrameworkCore/internal/index.d.ts +533 -526
- package/Microsoft.EntityFrameworkCore.Diagnostics/bindings.json +92 -304
- package/Microsoft.EntityFrameworkCore.Diagnostics/internal/index.d.ts +26 -26
- package/Microsoft.EntityFrameworkCore.Infrastructure/bindings.json +269 -289
- package/Microsoft.EntityFrameworkCore.Infrastructure/internal/index.d.ts +22 -21
- package/Microsoft.EntityFrameworkCore.Metadata/bindings.json +44 -59
- package/Microsoft.EntityFrameworkCore.Metadata/internal/index.d.ts +4 -4
- package/Microsoft.EntityFrameworkCore.Metadata.Builders/bindings.json +311 -536
- package/Microsoft.EntityFrameworkCore.Metadata.Builders/internal/index.d.ts +32 -32
- package/Microsoft.EntityFrameworkCore.Metadata.Conventions/bindings.json +1083 -457
- package/Microsoft.EntityFrameworkCore.Metadata.Conventions/internal/index.d.ts +111 -39
- package/Microsoft.EntityFrameworkCore.Metadata.Conventions.d.ts +3 -2
- package/Microsoft.EntityFrameworkCore.Metadata.Internal/bindings.json +41 -30
- package/Microsoft.EntityFrameworkCore.Metadata.Internal/internal/index.d.ts +2 -2
- package/Microsoft.EntityFrameworkCore.Migrations/bindings.json +946 -40
- package/Microsoft.EntityFrameworkCore.Migrations/internal/index.d.ts +58 -8
- package/Microsoft.EntityFrameworkCore.Migrations.Operations/bindings.json +72 -61
- package/Microsoft.EntityFrameworkCore.Migrations.Operations/internal/index.d.ts +4 -4
- package/Microsoft.EntityFrameworkCore.Migrations.d.ts +6 -5
- package/Microsoft.EntityFrameworkCore.SqlServer.Design.Internal/bindings.json +233 -207
- package/Microsoft.EntityFrameworkCore.SqlServer.Design.Internal/internal/index.d.ts +25 -17
- package/Microsoft.EntityFrameworkCore.SqlServer.Design.Internal.d.ts +1 -1
- package/Microsoft.EntityFrameworkCore.SqlServer.Diagnostics.Internal/bindings.json +60 -267
- package/Microsoft.EntityFrameworkCore.SqlServer.Diagnostics.Internal/internal/index.d.ts +23 -23
- package/Microsoft.EntityFrameworkCore.SqlServer.Extensions.Internal/bindings.json +175 -257
- package/Microsoft.EntityFrameworkCore.SqlServer.Extensions.Internal/internal/index.d.ts +23 -23
- package/Microsoft.EntityFrameworkCore.SqlServer.Infrastructure.Internal/bindings.json +666 -569
- package/Microsoft.EntityFrameworkCore.SqlServer.Infrastructure.Internal/internal/index.d.ts +69 -45
- package/Microsoft.EntityFrameworkCore.SqlServer.Infrastructure.Internal.d.ts +3 -2
- package/Microsoft.EntityFrameworkCore.SqlServer.Internal/bindings.json +565 -879
- package/Microsoft.EntityFrameworkCore.SqlServer.Internal/internal/index.d.ts +79 -79
- package/Microsoft.EntityFrameworkCore.SqlServer.Metadata.Internal/bindings.json +138 -469
- package/Microsoft.EntityFrameworkCore.SqlServer.Metadata.Internal/internal/index.d.ts +41 -41
- package/Microsoft.EntityFrameworkCore.SqlServer.Migrations.Internal/bindings.json +204 -211
- package/Microsoft.EntityFrameworkCore.SqlServer.Migrations.Internal/internal/index.d.ts +23 -17
- package/Microsoft.EntityFrameworkCore.SqlServer.Migrations.Internal.d.ts +1 -1
- package/Microsoft.EntityFrameworkCore.SqlServer.Query.Internal/bindings.json +3431 -2277
- package/Microsoft.EntityFrameworkCore.SqlServer.Query.Internal/internal/index.d.ts +326 -147
- package/Microsoft.EntityFrameworkCore.SqlServer.Query.Internal.SqlExpressions/bindings.json +71 -60
- package/Microsoft.EntityFrameworkCore.SqlServer.Query.Internal.SqlExpressions/internal/index.d.ts +12 -7
- package/Microsoft.EntityFrameworkCore.SqlServer.Query.Internal.SqlExpressions.d.ts +2 -2
- package/Microsoft.EntityFrameworkCore.SqlServer.Query.Internal.d.ts +5 -5
- package/Microsoft.EntityFrameworkCore.SqlServer.Scaffolding.Internal/bindings.json +90 -98
- package/Microsoft.EntityFrameworkCore.SqlServer.Scaffolding.Internal/internal/index.d.ts +6 -6
- package/Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal/bindings.json +2295 -1113
- package/Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal/internal/index.d.ts +263 -93
- package/Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.d.ts +2 -2
- package/Microsoft.EntityFrameworkCore.SqlServer.Update.Internal/bindings.json +548 -284
- package/Microsoft.EntityFrameworkCore.SqlServer.Update.Internal/internal/index.d.ts +54 -23
- package/Microsoft.EntityFrameworkCore.SqlServer.Update.Internal.d.ts +3 -3
- package/Microsoft.EntityFrameworkCore.SqlServer.ValueGeneration.Internal/bindings.json +252 -204
- package/Microsoft.EntityFrameworkCore.SqlServer.ValueGeneration.Internal/internal/index.d.ts +25 -12
- package/Microsoft.EntityFrameworkCore.SqlServer.ValueGeneration.Internal.d.ts +3 -1
- package/Microsoft.EntityFrameworkCore.d.ts +1 -1
- package/Microsoft.Extensions.DependencyInjection/bindings.json +62 -70
- package/Microsoft.Extensions.DependencyInjection/internal/index.d.ts +6 -6
- package/Microsoft.Identity.Client/bindings.json +6237 -13523
- package/Microsoft.Identity.Client/internal/index.d.ts +741 -675
- package/Microsoft.Identity.Client.Advanced/bindings.json +21 -15
- package/Microsoft.Identity.Client.Advanced/internal/index.d.ts +1 -1
- package/Microsoft.Identity.Client.AppConfig/bindings.json +90 -148
- package/Microsoft.Identity.Client.AppConfig/internal/index.d.ts +10 -10
- package/Microsoft.Identity.Client.AuthScheme/bindings.json +48 -72
- package/Microsoft.Identity.Client.AuthScheme/internal/index.d.ts +6 -6
- package/Microsoft.Identity.Client.AuthScheme.PoP/bindings.json +29 -39
- package/Microsoft.Identity.Client.AuthScheme.PoP/internal/index.d.ts +3 -3
- package/Microsoft.Identity.Client.Cache/bindings.json +65 -95
- package/Microsoft.Identity.Client.Cache/internal/index.d.ts +6 -6
- package/Microsoft.Identity.Client.Extensibility/bindings.json +297 -380
- package/Microsoft.Identity.Client.Extensibility/internal/index.d.ts +27 -26
- package/Microsoft.Identity.Client.Extensions.Msal/bindings.json +379 -668
- package/Microsoft.Identity.Client.Extensions.Msal/internal/index.d.ts +51 -50
- package/Microsoft.Identity.Client.Extensions.Msal.d.ts +1 -1
- package/Microsoft.Identity.Client.Kerberos/bindings.json +191 -288
- package/Microsoft.Identity.Client.Kerberos/internal/index.d.ts +21 -21
- package/Microsoft.Identity.Client.ManagedIdentity/bindings.json +50 -103
- package/Microsoft.Identity.Client.ManagedIdentity/internal/index.d.ts +8 -8
- package/Microsoft.Identity.Client.Platforms.Features.DesktopOs.Kerberos/bindings.json +30 -12
- package/Microsoft.Identity.Client.Platforms.Features.DesktopOs.Kerberos/internal/index.d.ts +2 -1
- package/Microsoft.Identity.Client.RP/bindings.json +39 -30
- package/Microsoft.Identity.Client.RP/internal/index.d.ts +2 -2
- package/Microsoft.Identity.Client.Region/bindings.json +46 -81
- package/Microsoft.Identity.Client.Region/internal/index.d.ts +6 -6
- package/Microsoft.Identity.Client.SSHCertificates/bindings.json +28 -26
- package/Microsoft.Identity.Client.SSHCertificates/internal/index.d.ts +2 -2
- package/Microsoft.Identity.Client.TelemetryCore.TelemetryClient/bindings.json +20 -25
- package/Microsoft.Identity.Client.TelemetryCore.TelemetryClient/internal/index.d.ts +1 -1
- package/Microsoft.Identity.Client.Utils/bindings.json +56 -70
- package/Microsoft.Identity.Client.Utils/internal/index.d.ts +6 -6
- package/Microsoft.Identity.Client.Utils.Windows/bindings.json +28 -26
- package/Microsoft.Identity.Client.Utils.Windows/internal/index.d.ts +2 -2
- package/Microsoft.IdentityModel.Abstractions/bindings.json +426 -581
- package/Microsoft.IdentityModel.Abstractions/internal/index.d.ts +42 -41
- package/Microsoft.IdentityModel.JsonWebTokens/bindings.json +828 -1776
- package/Microsoft.IdentityModel.JsonWebTokens/internal/index.d.ts +154 -147
- package/Microsoft.IdentityModel.JsonWebTokens.d.ts +1 -1
- package/Microsoft.IdentityModel.Logging/bindings.json +516 -773
- package/Microsoft.IdentityModel.Logging/internal/index.d.ts +69 -64
- package/Microsoft.IdentityModel.Logging.d.ts +1 -1
- package/Microsoft.IdentityModel.Protocols/bindings.json +507 -898
- package/Microsoft.IdentityModel.Protocols/internal/index.d.ts +47 -46
- package/Microsoft.IdentityModel.Protocols.Configuration/bindings.json +43 -94
- package/Microsoft.IdentityModel.Protocols.Configuration/internal/index.d.ts +3 -2
- package/Microsoft.IdentityModel.Protocols.Configuration.d.ts +1 -1
- package/Microsoft.IdentityModel.Protocols.OpenIdConnect/bindings.json +2335 -4306
- package/Microsoft.IdentityModel.Protocols.OpenIdConnect/internal/index.d.ts +316 -301
- package/Microsoft.IdentityModel.Protocols.OpenIdConnect.Configuration/bindings.json +45 -50
- package/Microsoft.IdentityModel.Protocols.OpenIdConnect.Configuration/internal/index.d.ts +2 -2
- package/Microsoft.IdentityModel.Protocols.OpenIdConnect.d.ts +1 -1
- package/Microsoft.IdentityModel.Tokens/bindings.json +5594 -8774
- package/Microsoft.IdentityModel.Tokens/internal/index.d.ts +578 -478
- package/Microsoft.IdentityModel.Tokens.Configuration/bindings.json +40 -71
- package/Microsoft.IdentityModel.Tokens.Configuration/internal/index.d.ts +5 -5
- package/Microsoft.IdentityModel.Tokens.d.ts +1 -1
- package/Microsoft.SqlServer.Server/bindings.json +385 -633
- package/Microsoft.SqlServer.Server/internal/index.d.ts +40 -40
- package/System/bindings.json +236 -402
- package/System/internal/index.d.ts +28 -28
- package/System.ClientModel/bindings.json +448 -433
- package/System.ClientModel/internal/index.d.ts +48 -32
- package/System.ClientModel.Primitives/bindings.json +2665 -2310
- package/System.ClientModel.Primitives/internal/index.d.ts +269 -175
- package/System.ClientModel.Primitives.d.ts +2 -2
- package/System.Configuration/bindings.json +9039 -12341
- package/System.Configuration/internal/index.d.ts +837 -565
- package/System.Configuration.Internal/bindings.json +985 -1442
- package/System.Configuration.Internal/internal/index.d.ts +115 -115
- package/System.Configuration.Provider/bindings.json +155 -188
- package/System.Configuration.Provider/internal/index.d.ts +16 -14
- package/System.Configuration.Provider.d.ts +1 -1
- package/System.Configuration.d.ts +3 -3
- package/System.Diagnostics/bindings.json +28 -15
- package/System.Diagnostics/internal/index.d.ts +1 -1
- package/System.Drawing.Configuration/bindings.json +39 -137
- package/System.Drawing.Configuration/internal/index.d.ts +12 -4
- package/System.Drawing.Configuration.d.ts +5 -2
- package/System.IdentityModel.Tokens.Jwt/bindings.json +1367 -2255
- package/System.IdentityModel.Tokens.Jwt/internal/index.d.ts +184 -170
- package/System.Security.Cryptography/bindings.json +66 -63
- package/System.Security.Cryptography/internal/index.d.ts +4 -4
- package/System.Text.Json.Serialization/bindings.json +32 -36
- package/System.Text.Json.Serialization/internal/index.d.ts +2 -2
- package/__build/scripts/generate.sh +4 -4
- package/__internal/extensions/index.d.ts +27 -27
- package/package.json +5 -5
- package/Azure/internal/metadata.json +0 -2772
- package/Azure.Core/internal/metadata.json +0 -5291
- package/Azure.Core.Cryptography/internal/metadata.json +0 -122
- package/Azure.Core.Diagnostics/internal/metadata.json +0 -87
- package/Azure.Core.Extensions/internal/metadata.json +0 -139
- package/Azure.Core.GeoJson/internal/metadata.json +0 -1469
- package/Azure.Core.Pipeline/internal/metadata.json +0 -1181
- package/Azure.Core.Serialization/internal/metadata.json +0 -468
- package/Azure.Identity/internal/metadata.json +0 -5255
- package/Azure.Messaging/internal/metadata.json +0 -316
- package/Microsoft.Data/internal/metadata.json +0 -59
- package/Microsoft.Data.Sql/internal/metadata.json +0 -136
- package/Microsoft.Data.SqlClient/internal/metadata.json +0 -10965
- package/Microsoft.Data.SqlClient.DataClassification/internal/metadata.json +0 -383
- package/Microsoft.Data.SqlClient.Diagnostics/internal/metadata.json +0 -2693
- package/Microsoft.Data.SqlClient.Server/internal/metadata.json +0 -2235
- package/Microsoft.Data.SqlTypes/internal/metadata.json +0 -558
- package/Microsoft.EntityFrameworkCore/internal/metadata.json +0 -9025
- package/Microsoft.EntityFrameworkCore.Diagnostics/internal/metadata.json +0 -303
- package/Microsoft.EntityFrameworkCore.Infrastructure/internal/metadata.json +0 -455
- package/Microsoft.EntityFrameworkCore.Metadata/internal/metadata.json +0 -72
- package/Microsoft.EntityFrameworkCore.Metadata.Builders/internal/metadata.json +0 -660
- package/Microsoft.EntityFrameworkCore.Metadata.Conventions/internal/metadata.json +0 -706
- package/Microsoft.EntityFrameworkCore.Metadata.Internal/internal/metadata.json +0 -88
- package/Microsoft.EntityFrameworkCore.Migrations/internal/metadata.json +0 -81
- package/Microsoft.EntityFrameworkCore.Migrations.Operations/internal/metadata.json +0 -100
- package/Microsoft.EntityFrameworkCore.SqlServer.Design.Internal/internal/metadata.json +0 -317
- package/Microsoft.EntityFrameworkCore.SqlServer.Diagnostics.Internal/internal/metadata.json +0 -238
- package/Microsoft.EntityFrameworkCore.SqlServer.Extensions.Internal/internal/metadata.json +0 -393
- package/Microsoft.EntityFrameworkCore.SqlServer.Infrastructure.Internal/internal/metadata.json +0 -790
- package/Microsoft.EntityFrameworkCore.SqlServer.Internal/internal/metadata.json +0 -1294
- package/Microsoft.EntityFrameworkCore.SqlServer.Metadata.Internal/internal/metadata.json +0 -452
- package/Microsoft.EntityFrameworkCore.SqlServer.Migrations.Internal/internal/metadata.json +0 -317
- package/Microsoft.EntityFrameworkCore.SqlServer.Query.Internal/internal/metadata.json +0 -3289
- package/Microsoft.EntityFrameworkCore.SqlServer.Query.Internal.SqlExpressions/internal/metadata.json +0 -95
- package/Microsoft.EntityFrameworkCore.SqlServer.Scaffolding.Internal/internal/metadata.json +0 -167
- package/Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal/internal/metadata.json +0 -1697
- package/Microsoft.EntityFrameworkCore.SqlServer.Update.Internal/internal/metadata.json +0 -500
- package/Microsoft.EntityFrameworkCore.SqlServer.ValueGeneration.Internal/internal/metadata.json +0 -339
- package/Microsoft.Extensions.DependencyInjection/internal/metadata.json +0 -127
- package/Microsoft.Identity.Client/internal/metadata.json +0 -11985
- package/Microsoft.Identity.Client.Advanced/internal/metadata.json +0 -41
- package/Microsoft.Identity.Client.AppConfig/internal/metadata.json +0 -212
- package/Microsoft.Identity.Client.AuthScheme/internal/metadata.json +0 -118
- package/Microsoft.Identity.Client.AuthScheme.PoP/internal/metadata.json +0 -72
- package/Microsoft.Identity.Client.Cache/internal/metadata.json +0 -123
- package/Microsoft.Identity.Client.Extensibility/internal/metadata.json +0 -620
- package/Microsoft.Identity.Client.Extensions.Msal/internal/metadata.json +0 -877
- package/Microsoft.Identity.Client.Kerberos/internal/metadata.json +0 -386
- package/Microsoft.Identity.Client.ManagedIdentity/internal/metadata.json +0 -106
- package/Microsoft.Identity.Client.Platforms.Features.DesktopOs.Kerberos/internal/metadata.json +0 -41
- package/Microsoft.Identity.Client.RP/internal/metadata.json +0 -74
- package/Microsoft.Identity.Client.Region/internal/metadata.json +0 -88
- package/Microsoft.Identity.Client.SSHCertificates/internal/metadata.json +0 -57
- package/Microsoft.Identity.Client.TelemetryCore.TelemetryClient/internal/metadata.json +0 -46
- package/Microsoft.Identity.Client.Utils/internal/metadata.json +0 -121
- package/Microsoft.Identity.Client.Utils.Windows/internal/metadata.json +0 -57
- package/Microsoft.IdentityModel.Abstractions/internal/metadata.json +0 -843
- package/Microsoft.IdentityModel.JsonWebTokens/internal/metadata.json +0 -1997
- package/Microsoft.IdentityModel.Logging/internal/metadata.json +0 -1117
- package/Microsoft.IdentityModel.Protocols/internal/metadata.json +0 -1067
- package/Microsoft.IdentityModel.Protocols.Configuration/internal/metadata.json +0 -72
- package/Microsoft.IdentityModel.Protocols.OpenIdConnect/internal/metadata.json +0 -4288
- package/Microsoft.IdentityModel.Protocols.OpenIdConnect.Configuration/internal/metadata.json +0 -80
- package/Microsoft.IdentityModel.Tokens/internal/metadata.json +0 -10430
- package/Microsoft.IdentityModel.Tokens.Configuration/internal/metadata.json +0 -101
- package/Microsoft.SqlServer.Server/internal/metadata.json +0 -792
- package/System/internal/metadata.json +0 -523
- package/System.ClientModel/internal/metadata.json +0 -637
- package/System.ClientModel.Primitives/internal/metadata.json +0 -3433
- package/System.Configuration/internal/metadata.json +0 -11888
- package/System.Configuration.Internal/internal/metadata.json +0 -2269
- package/System.Configuration.Provider/internal/metadata.json +0 -284
- package/System.Diagnostics/internal/metadata.json +0 -48
- package/System.Drawing.Configuration/internal/metadata.json +0 -46
- package/System.IdentityModel.Tokens.Jwt/internal/metadata.json +0 -2556
- package/System.Security.Cryptography/internal/metadata.json +0 -104
- 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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
Exists = 0,
|
|
33
|
+
DoesNotExist = 1,
|
|
34
|
+
Unknown = 2
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
export enum ValidationFailure {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
|
95
|
-
|
|
96
|
-
|
|
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
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
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
|
-
|
|
123
|
-
|
|
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
|
|
131
|
-
readonly
|
|
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
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
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
|
|
159
|
-
readonly
|
|
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
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
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
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
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
|
-
|
|
200
|
-
|
|
201
|
-
readonly
|
|
202
|
-
readonly
|
|
203
|
-
|
|
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
|
-
|
|
215
|
-
readonly
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
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
|
|
230
|
-
readonly
|
|
231
|
-
readonly
|
|
232
|
-
readonly
|
|
233
|
-
readonly
|
|
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
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
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
|
|
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
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
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
|
-
|
|
311
|
+
Default: CompressionProviderFactory;
|
|
296
312
|
};
|
|
297
313
|
|
|
298
314
|
|
|
299
315
|
export type CompressionProviderFactory = CompressionProviderFactory$instance;
|
|
300
316
|
|
|
301
|
-
export
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
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
|
-
|
|
338
|
+
SizeLimit: int;
|
|
316
339
|
}
|
|
317
340
|
|
|
318
341
|
|
|
319
342
|
export const CryptoProviderCacheOptions: {
|
|
320
343
|
new(): CryptoProviderCacheOptions;
|
|
321
|
-
readonly
|
|
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
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
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
|
-
|
|
356
|
-
|
|
357
|
-
|
|
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
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
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
|
-
|
|
390
|
-
|
|
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
|
-
|
|
403
|
-
readonly
|
|
404
|
-
readonly
|
|
405
|
-
readonly
|
|
406
|
-
|
|
407
|
-
|
|
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
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
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
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
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
|
|
454
|
-
|
|
455
|
-
|
|
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
|
|
491
|
+
readonly HasPrivateKey: boolean;
|
|
461
492
|
K: string;
|
|
462
|
-
|
|
463
|
-
readonly
|
|
464
|
-
readonly
|
|
465
|
-
|
|
466
|
-
|
|
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
|
|
499
|
+
readonly Oth: IList<System_Internal.String>;
|
|
469
500
|
P: string;
|
|
470
501
|
Q: string;
|
|
471
502
|
QI: string;
|
|
472
|
-
|
|
503
|
+
Use: string;
|
|
473
504
|
X: string;
|
|
474
|
-
readonly
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
505
|
+
readonly X5c: IList<System_Internal.String>;
|
|
506
|
+
X5t: string;
|
|
507
|
+
X5tS256: string;
|
|
508
|
+
X5u: string;
|
|
478
509
|
Y: string;
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
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
|
-
|
|
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
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
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
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
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
|
-
|
|
523
|
-
|
|
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
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
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
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
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
|
|
563
|
-
readonly
|
|
564
|
-
|
|
565
|
-
readonly
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
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
|
-
|
|
582
|
-
|
|
583
|
-
readonly
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
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
|
|
611
|
-
readonly
|
|
612
|
-
readonly
|
|
613
|
-
|
|
614
|
-
readonly
|
|
615
|
-
readonly
|
|
616
|
-
|
|
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
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
get
|
|
698
|
-
set
|
|
699
|
-
|
|
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
|
-
|
|
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
|
-
|
|
752
|
-
|
|
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
|
|
767
|
-
readonly
|
|
768
|
-
readonly
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
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
|
-
|
|
796
|
-
|
|
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
|
-
|
|
811
|
-
|
|
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
|
-
|
|
826
|
-
|
|
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
|
-
|
|
841
|
-
|
|
842
|
-
|
|
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
|
-
|
|
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
|
-
|
|
884
|
-
|
|
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
|
-
|
|
938
|
-
|
|
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
|
-
|
|
992
|
-
|
|
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
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
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
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
readonly
|
|
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
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
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
|
|
1075
|
-
readonly
|
|
1076
|
-
|
|
1077
|
-
|
|
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
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
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
|
|
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
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
readonly
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
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
|
|
1205
|
-
readonly
|
|
1206
|
-
readonly
|
|
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
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
readonly
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1248
|
-
|
|
1249
|
-
readonly
|
|
1250
|
-
readonly
|
|
1251
|
-
readonly
|
|
1252
|
-
readonly
|
|
1253
|
-
readonly
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
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
|
-
|
|
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
|
|
1284
|
-
static
|
|
1285
|
-
static
|
|
1286
|
-
static
|
|
1287
|
-
static
|
|
1288
|
-
static
|
|
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
|
|
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
|
|
1303
|
-
static
|
|
1304
|
-
static
|
|
1305
|
-
static
|
|
1306
|
-
static
|
|
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
|
|
1314
|
-
static
|
|
1315
|
-
static
|
|
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
|
|
1422
|
+
static readonly EllipticCurve: string;
|
|
1323
1423
|
static readonly RSA: string;
|
|
1324
|
-
static readonly
|
|
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
|
|
1342
|
-
static readonly
|
|
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
|
|
1349
|
-
static readonly
|
|
1350
|
-
static readonly
|
|
1351
|
-
static readonly
|
|
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
|
|
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
|
|
1457
|
+
static readonly Use: string;
|
|
1358
1458
|
static readonly X: string;
|
|
1359
|
-
static readonly
|
|
1360
|
-
static readonly
|
|
1361
|
-
static readonly
|
|
1362
|
-
static readonly
|
|
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
|
|
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
|
|
1378
|
-
static readonly
|
|
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
|
|
1386
|
-
static readonly
|
|
1387
|
-
static readonly
|
|
1388
|
-
static readonly
|
|
1389
|
-
static readonly
|
|
1390
|
-
static readonly
|
|
1391
|
-
static readonly
|
|
1392
|
-
static readonly
|
|
1393
|
-
static readonly
|
|
1394
|
-
static readonly
|
|
1395
|
-
static readonly
|
|
1396
|
-
static readonly
|
|
1397
|
-
static readonly
|
|
1398
|
-
static readonly
|
|
1399
|
-
static readonly
|
|
1400
|
-
static readonly
|
|
1401
|
-
static readonly
|
|
1402
|
-
static readonly
|
|
1403
|
-
static readonly
|
|
1404
|
-
static readonly
|
|
1405
|
-
static readonly
|
|
1406
|
-
static readonly
|
|
1407
|
-
static readonly
|
|
1408
|
-
static readonly
|
|
1409
|
-
static readonly
|
|
1410
|
-
static readonly
|
|
1411
|
-
static readonly
|
|
1412
|
-
static readonly
|
|
1413
|
-
static readonly
|
|
1414
|
-
static readonly
|
|
1415
|
-
static readonly
|
|
1416
|
-
static readonly
|
|
1417
|
-
static readonly
|
|
1418
|
-
static readonly
|
|
1419
|
-
static readonly
|
|
1420
|
-
static readonly
|
|
1421
|
-
static readonly
|
|
1422
|
-
static readonly
|
|
1423
|
-
static readonly
|
|
1424
|
-
static readonly
|
|
1425
|
-
static readonly
|
|
1426
|
-
static readonly
|
|
1427
|
-
static readonly
|
|
1428
|
-
static readonly
|
|
1429
|
-
static readonly
|
|
1430
|
-
static readonly
|
|
1431
|
-
static readonly
|
|
1432
|
-
static readonly
|
|
1433
|
-
static readonly
|
|
1434
|
-
static readonly
|
|
1435
|
-
static readonly
|
|
1436
|
-
static readonly
|
|
1437
|
-
static readonly
|
|
1438
|
-
static readonly
|
|
1439
|
-
static readonly
|
|
1440
|
-
static readonly
|
|
1441
|
-
static readonly
|
|
1442
|
-
static readonly
|
|
1443
|
-
static readonly
|
|
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
|
|
1451
|
-
static
|
|
1452
|
-
static
|
|
1453
|
-
static
|
|
1454
|
-
static
|
|
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
|
|
1462
|
-
static readonly
|
|
1463
|
-
static
|
|
1464
|
-
static
|
|
1465
|
-
static
|
|
1466
|
-
static
|
|
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
|
|
1474
|
-
static
|
|
1475
|
-
static
|
|
1476
|
-
static
|
|
1477
|
-
static
|
|
1478
|
-
static
|
|
1479
|
-
static
|
|
1480
|
-
static
|
|
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
|
|