@tsonic/efcore-sqlserver 0.1.2 → 10.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Azure/bindings.json +965 -2423
- package/Azure/internal/index.d.ts +135 -135
- package/Azure.Core/bindings.json +1909 -3815
- package/Azure.Core/internal/index.d.ts +291 -291
- package/Azure.Core.Cryptography/bindings.json +46 -65
- package/Azure.Core.Cryptography/internal/index.d.ts +5 -5
- package/Azure.Core.Diagnostics/bindings.json +23 -69
- package/Azure.Core.Diagnostics/internal/index.d.ts +4 -4
- package/Azure.Core.Extensions/bindings.json +54 -57
- package/Azure.Core.Extensions/internal/index.d.ts +4 -4
- package/Azure.Core.GeoJson/bindings.json +457 -1384
- package/Azure.Core.GeoJson/internal/index.d.ts +67 -67
- package/Azure.Core.Pipeline/bindings.json +412 -892
- package/Azure.Core.Pipeline/internal/index.d.ts +52 -52
- package/Azure.Core.Serialization/bindings.json +167 -306
- package/Azure.Core.Serialization/internal/index.d.ts +21 -21
- package/Azure.Identity/bindings.json +1852 -7050
- package/Azure.Identity/internal/index.d.ts +227 -227
- package/Azure.Messaging/bindings.json +97 -230
- package/Azure.Messaging/internal/index.d.ts +21 -21
- package/Microsoft.Data/bindings.json +18 -27
- package/Microsoft.Data/internal/index.d.ts +2 -2
- package/Microsoft.Data.Sql/bindings.json +41 -94
- package/Microsoft.Data.Sql/internal/index.d.ts +5 -5
- package/Microsoft.Data.SqlClient/bindings.json +3695 -8359
- package/Microsoft.Data.SqlClient/internal/index.d.ts +613 -613
- package/Microsoft.Data.SqlClient.DataClassification/bindings.json +107 -283
- package/Microsoft.Data.SqlClient.DataClassification/internal/index.d.ts +12 -12
- package/Microsoft.Data.SqlClient.Diagnostics/bindings.json +843 -2019
- package/Microsoft.Data.SqlClient.Diagnostics/internal/index.d.ts +159 -159
- package/Microsoft.Data.SqlClient.Server/bindings.json +952 -1779
- package/Microsoft.Data.SqlClient.Server/internal/index.d.ts +131 -131
- package/Microsoft.Data.SqlTypes/bindings.json +184 -405
- package/Microsoft.Data.SqlTypes/internal/index.d.ts +30 -30
- package/Microsoft.EntityFrameworkCore/bindings.json +6167 -8818
- package/Microsoft.EntityFrameworkCore/internal/index.d.ts +524 -524
- package/Microsoft.EntityFrameworkCore.Diagnostics/bindings.json +57 -304
- package/Microsoft.EntityFrameworkCore.Diagnostics/internal/index.d.ts +26 -26
- package/Microsoft.EntityFrameworkCore.Infrastructure/bindings.json +162 -288
- package/Microsoft.EntityFrameworkCore.Infrastructure/internal/index.d.ts +21 -21
- package/Microsoft.EntityFrameworkCore.Metadata/bindings.json +17 -59
- package/Microsoft.EntityFrameworkCore.Metadata/internal/index.d.ts +4 -4
- package/Microsoft.EntityFrameworkCore.Metadata.Builders/bindings.json +233 -536
- package/Microsoft.EntityFrameworkCore.Metadata.Builders/internal/index.d.ts +32 -32
- package/Microsoft.EntityFrameworkCore.Metadata.Conventions/bindings.json +233 -450
- package/Microsoft.EntityFrameworkCore.Metadata.Conventions/internal/index.d.ts +26 -26
- package/Microsoft.EntityFrameworkCore.Metadata.Internal/bindings.json +31 -30
- package/Microsoft.EntityFrameworkCore.Metadata.Internal/internal/index.d.ts +2 -2
- package/Microsoft.EntityFrameworkCore.Migrations/bindings.json +29 -40
- package/Microsoft.EntityFrameworkCore.Migrations/internal/index.d.ts +2 -2
- package/Microsoft.EntityFrameworkCore.Migrations.Operations/bindings.json +31 -61
- package/Microsoft.EntityFrameworkCore.Migrations.Operations/internal/index.d.ts +4 -4
- package/Microsoft.EntityFrameworkCore.SqlServer.Design.Internal/bindings.json +111 -207
- package/Microsoft.EntityFrameworkCore.SqlServer.Design.Internal/internal/index.d.ts +15 -15
- package/Microsoft.EntityFrameworkCore.SqlServer.Diagnostics.Internal/bindings.json +32 -267
- package/Microsoft.EntityFrameworkCore.SqlServer.Diagnostics.Internal/internal/index.d.ts +23 -23
- package/Microsoft.EntityFrameworkCore.SqlServer.Extensions.Internal/bindings.json +148 -257
- package/Microsoft.EntityFrameworkCore.SqlServer.Extensions.Internal/internal/index.d.ts +23 -23
- package/Microsoft.EntityFrameworkCore.SqlServer.Infrastructure.Internal/bindings.json +257 -573
- package/Microsoft.EntityFrameworkCore.SqlServer.Infrastructure.Internal/internal/index.d.ts +39 -39
- package/Microsoft.EntityFrameworkCore.SqlServer.Internal/bindings.json +478 -879
- package/Microsoft.EntityFrameworkCore.SqlServer.Internal/internal/index.d.ts +79 -79
- package/Microsoft.EntityFrameworkCore.SqlServer.Metadata.Internal/bindings.json +82 -469
- package/Microsoft.EntityFrameworkCore.SqlServer.Metadata.Internal/internal/index.d.ts +41 -41
- package/Microsoft.EntityFrameworkCore.SqlServer.Migrations.Internal/bindings.json +109 -211
- package/Microsoft.EntityFrameworkCore.SqlServer.Migrations.Internal/internal/index.d.ts +15 -15
- package/Microsoft.EntityFrameworkCore.SqlServer.Query.Internal/bindings.json +1027 -2257
- package/Microsoft.EntityFrameworkCore.SqlServer.Query.Internal/internal/index.d.ts +117 -117
- package/Microsoft.EntityFrameworkCore.SqlServer.Query.Internal.SqlExpressions/bindings.json +32 -60
- package/Microsoft.EntityFrameworkCore.SqlServer.Query.Internal.SqlExpressions/internal/index.d.ts +4 -4
- package/Microsoft.EntityFrameworkCore.SqlServer.Scaffolding.Internal/bindings.json +58 -98
- package/Microsoft.EntityFrameworkCore.SqlServer.Scaffolding.Internal/internal/index.d.ts +6 -6
- package/Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal/bindings.json +551 -1118
- package/Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal/internal/index.d.ts +66 -66
- package/Microsoft.EntityFrameworkCore.SqlServer.Update.Internal/bindings.json +151 -280
- package/Microsoft.EntityFrameworkCore.SqlServer.Update.Internal/internal/index.d.ts +16 -16
- package/Microsoft.EntityFrameworkCore.SqlServer.ValueGeneration.Internal/bindings.json +114 -203
- package/Microsoft.EntityFrameworkCore.SqlServer.ValueGeneration.Internal/internal/index.d.ts +9 -9
- package/Microsoft.Extensions.DependencyInjection/bindings.json +52 -70
- package/Microsoft.Extensions.DependencyInjection/internal/index.d.ts +6 -6
- package/Microsoft.Identity.Client/bindings.json +4310 -13498
- package/Microsoft.Identity.Client/internal/index.d.ts +663 -663
- package/Microsoft.Identity.Client.Advanced/bindings.json +16 -15
- package/Microsoft.Identity.Client.Advanced/internal/index.d.ts +1 -1
- package/Microsoft.Identity.Client.AppConfig/bindings.json +69 -148
- package/Microsoft.Identity.Client.AppConfig/internal/index.d.ts +10 -10
- package/Microsoft.Identity.Client.AuthScheme/bindings.json +42 -72
- package/Microsoft.Identity.Client.AuthScheme/internal/index.d.ts +6 -6
- package/Microsoft.Identity.Client.AuthScheme.PoP/bindings.json +26 -39
- package/Microsoft.Identity.Client.AuthScheme.PoP/internal/index.d.ts +3 -3
- package/Microsoft.Identity.Client.Cache/bindings.json +31 -95
- package/Microsoft.Identity.Client.Cache/internal/index.d.ts +6 -6
- package/Microsoft.Identity.Client.Extensibility/bindings.json +217 -370
- package/Microsoft.Identity.Client.Extensibility/internal/index.d.ts +26 -26
- package/Microsoft.Identity.Client.Extensions.Msal/bindings.json +265 -671
- package/Microsoft.Identity.Client.Extensions.Msal/internal/index.d.ts +49 -49
- package/Microsoft.Identity.Client.Kerberos/bindings.json +116 -290
- package/Microsoft.Identity.Client.Kerberos/internal/index.d.ts +21 -21
- package/Microsoft.Identity.Client.ManagedIdentity/bindings.json +19 -103
- package/Microsoft.Identity.Client.ManagedIdentity/internal/index.d.ts +8 -8
- package/Microsoft.Identity.Client.Platforms.Features.DesktopOs.Kerberos/bindings.json +16 -15
- package/Microsoft.Identity.Client.Platforms.Features.DesktopOs.Kerberos/internal/index.d.ts +1 -1
- package/Microsoft.Identity.Client.RP/bindings.json +29 -30
- package/Microsoft.Identity.Client.RP/internal/index.d.ts +2 -2
- package/Microsoft.Identity.Client.Region/bindings.json +17 -81
- package/Microsoft.Identity.Client.Region/internal/index.d.ts +6 -6
- package/Microsoft.Identity.Client.SSHCertificates/bindings.json +22 -26
- package/Microsoft.Identity.Client.SSHCertificates/internal/index.d.ts +2 -2
- package/Microsoft.Identity.Client.TelemetryCore.TelemetryClient/bindings.json +14 -25
- package/Microsoft.Identity.Client.TelemetryCore.TelemetryClient/internal/index.d.ts +1 -1
- package/Microsoft.Identity.Client.Utils/bindings.json +46 -70
- package/Microsoft.Identity.Client.Utils/internal/index.d.ts +6 -6
- package/Microsoft.Identity.Client.Utils.Windows/bindings.json +22 -26
- package/Microsoft.Identity.Client.Utils.Windows/internal/index.d.ts +2 -2
- package/Microsoft.IdentityModel.Abstractions/bindings.json +296 -585
- package/Microsoft.IdentityModel.Abstractions/internal/index.d.ts +41 -41
- package/Microsoft.IdentityModel.JsonWebTokens/bindings.json +583 -1777
- package/Microsoft.IdentityModel.JsonWebTokens/internal/index.d.ts +145 -145
- package/Microsoft.IdentityModel.Logging/bindings.json +394 -771
- package/Microsoft.IdentityModel.Logging/internal/index.d.ts +62 -62
- package/Microsoft.IdentityModel.Protocols/bindings.json +357 -902
- package/Microsoft.IdentityModel.Protocols/internal/index.d.ts +46 -46
- package/Microsoft.IdentityModel.Protocols.Configuration/bindings.json +16 -97
- package/Microsoft.IdentityModel.Protocols.Configuration/internal/index.d.ts +1 -1
- package/Microsoft.IdentityModel.Protocols.OpenIdConnect/bindings.json +1515 -4131
- package/Microsoft.IdentityModel.Protocols.OpenIdConnect/internal/index.d.ts +299 -299
- package/Microsoft.IdentityModel.Protocols.OpenIdConnect.Configuration/bindings.json +28 -50
- package/Microsoft.IdentityModel.Protocols.OpenIdConnect.Configuration/internal/index.d.ts +2 -2
- package/Microsoft.IdentityModel.Tokens/bindings.json +3191 -8780
- package/Microsoft.IdentityModel.Tokens/internal/index.d.ts +467 -467
- package/Microsoft.IdentityModel.Tokens.Configuration/bindings.json +30 -71
- package/Microsoft.IdentityModel.Tokens.Configuration/internal/index.d.ts +5 -5
- package/Microsoft.SqlServer.Server/bindings.json +243 -635
- package/Microsoft.SqlServer.Server/internal/index.d.ts +40 -40
- package/System/bindings.json +173 -402
- package/System/internal/index.d.ts +28 -28
- package/System.ClientModel/bindings.json +229 -459
- package/System.ClientModel/internal/index.d.ts +28 -28
- package/System.ClientModel.Primitives/bindings.json +1169 -2367
- package/System.ClientModel.Primitives/internal/index.d.ts +162 -162
- package/System.Configuration/bindings.json +4011 -12374
- package/System.Configuration/internal/index.d.ts +531 -531
- package/System.Configuration.Internal/bindings.json +797 -1446
- package/System.Configuration.Internal/internal/index.d.ts +115 -115
- package/System.Configuration.Provider/bindings.json +94 -195
- package/System.Configuration.Provider/internal/index.d.ts +13 -13
- package/System.Diagnostics/bindings.json +23 -15
- package/System.Diagnostics/internal/index.d.ts +1 -1
- package/System.Drawing.Configuration/bindings.json +14 -137
- package/System.Drawing.Configuration/internal/index.d.ts +1 -1
- package/System.IdentityModel.Tokens.Jwt/bindings.json +710 -2208
- package/System.IdentityModel.Tokens.Jwt/internal/index.d.ts +169 -169
- package/System.Security.Cryptography/bindings.json +35 -63
- package/System.Security.Cryptography/internal/index.d.ts +4 -4
- package/System.Text.Json.Serialization/bindings.json +22 -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
|
@@ -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
|
|
|
@@ -140,36 +140,36 @@ export const AsymmetricSecurityKey: {
|
|
|
140
140
|
export type AsymmetricSecurityKey = AsymmetricSecurityKey$instance;
|
|
141
141
|
|
|
142
142
|
export interface AsymmetricSignatureProvider$instance extends SignatureProvider {
|
|
143
|
-
readonly
|
|
144
|
-
readonly
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
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;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
|
|
155
155
|
export const AsymmetricSignatureProvider: {
|
|
156
156
|
new(key: SecurityKey, algorithm: string): AsymmetricSignatureProvider;
|
|
157
157
|
new(key: SecurityKey, algorithm: string, willCreateSignatures: boolean): AsymmetricSignatureProvider;
|
|
158
|
-
readonly
|
|
159
|
-
readonly
|
|
158
|
+
readonly DefaultMinimumAsymmetricKeySizeInBitsForSigningMap: Dictionary<System_Internal.String, System_Internal.Int32>;
|
|
159
|
+
readonly DefaultMinimumAsymmetricKeySizeInBitsForVerifyingMap: Dictionary<System_Internal.String, System_Internal.Int32>;
|
|
160
160
|
};
|
|
161
161
|
|
|
162
162
|
|
|
163
163
|
export type AsymmetricSignatureProvider = AsymmetricSignatureProvider$instance;
|
|
164
164
|
|
|
165
165
|
export interface AuthenticatedEncryptionProvider$instance {
|
|
166
|
-
readonly
|
|
167
|
-
|
|
168
|
-
readonly
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
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;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
|
|
@@ -181,10 +181,10 @@ export const AuthenticatedEncryptionProvider: {
|
|
|
181
181
|
export type AuthenticatedEncryptionProvider = AuthenticatedEncryptionProvider$instance;
|
|
182
182
|
|
|
183
183
|
export interface AuthenticatedEncryptionResult$instance {
|
|
184
|
-
readonly
|
|
185
|
-
readonly
|
|
184
|
+
readonly AuthenticationTag: byte[];
|
|
185
|
+
readonly Ciphertext: byte[];
|
|
186
186
|
readonly IV: byte[];
|
|
187
|
-
readonly
|
|
187
|
+
readonly Key: SecurityKey;
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
|
|
@@ -196,11 +196,11 @@ export const AuthenticatedEncryptionResult: {
|
|
|
196
196
|
export type AuthenticatedEncryptionResult = AuthenticatedEncryptionResult$instance;
|
|
197
197
|
|
|
198
198
|
export interface BaseConfiguration$instance {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
readonly
|
|
202
|
-
readonly
|
|
203
|
-
|
|
199
|
+
ActiveTokenEndpoint: string;
|
|
200
|
+
Issuer: string;
|
|
201
|
+
readonly SigningKeys: ICollection<SecurityKey>;
|
|
202
|
+
readonly TokenDecryptionKeys: ICollection<SecurityKey>;
|
|
203
|
+
TokenEndpoint: string;
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
|
|
@@ -211,26 +211,26 @@ export const BaseConfiguration: {
|
|
|
211
211
|
export type BaseConfiguration = BaseConfiguration$instance;
|
|
212
212
|
|
|
213
213
|
export interface BaseConfigurationManager$instance {
|
|
214
|
-
|
|
215
|
-
readonly
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
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;
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
|
|
226
226
|
export const BaseConfigurationManager: {
|
|
227
227
|
new(): BaseConfigurationManager;
|
|
228
228
|
new(options: LKGConfigurationCacheOptions): BaseConfigurationManager;
|
|
229
|
-
readonly
|
|
230
|
-
readonly
|
|
231
|
-
readonly
|
|
232
|
-
readonly
|
|
233
|
-
readonly
|
|
229
|
+
readonly DefaultAutomaticRefreshInterval: TimeSpan;
|
|
230
|
+
readonly DefaultLastKnownGoodConfigurationLifetime: TimeSpan;
|
|
231
|
+
readonly DefaultRefreshInterval: TimeSpan;
|
|
232
|
+
readonly MinimumAutomaticRefreshInterval: TimeSpan;
|
|
233
|
+
readonly MinimumRefreshInterval: TimeSpan;
|
|
234
234
|
};
|
|
235
235
|
|
|
236
236
|
|
|
@@ -249,10 +249,10 @@ export const CallContext: {
|
|
|
249
249
|
export type CallContext = CallContext$instance;
|
|
250
250
|
|
|
251
251
|
export interface CaseSensitiveClaimsIdentity$instance extends ClaimsIdentity {
|
|
252
|
-
readonly
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
252
|
+
readonly SecurityToken: SecurityToken;
|
|
253
|
+
FindAll(type: string): IEnumerable<Claim>;
|
|
254
|
+
FindFirst(type: string): Claim;
|
|
255
|
+
HasClaim(type: string, value: string): boolean;
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
|
|
@@ -275,33 +275,33 @@ export interface CompressionAlgorithms$instance {
|
|
|
275
275
|
|
|
276
276
|
export const CompressionAlgorithms: {
|
|
277
277
|
new(): CompressionAlgorithms;
|
|
278
|
-
readonly
|
|
278
|
+
readonly Deflate: string;
|
|
279
279
|
};
|
|
280
280
|
|
|
281
281
|
|
|
282
282
|
export type CompressionAlgorithms = CompressionAlgorithms$instance;
|
|
283
283
|
|
|
284
284
|
export interface CompressionProviderFactory$instance {
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
285
|
+
CustomCompressionProvider: ICompressionProvider;
|
|
286
|
+
CreateCompressionProvider(algorithm: string): ICompressionProvider;
|
|
287
|
+
CreateCompressionProvider(algorithm: string, maximumDeflateSize: int): ICompressionProvider;
|
|
288
|
+
IsSupportedAlgorithm(algorithm: string): boolean;
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
|
|
292
292
|
export const CompressionProviderFactory: {
|
|
293
293
|
new(): CompressionProviderFactory;
|
|
294
294
|
new(other: CompressionProviderFactory): CompressionProviderFactory;
|
|
295
|
-
|
|
295
|
+
Default: CompressionProviderFactory;
|
|
296
296
|
};
|
|
297
297
|
|
|
298
298
|
|
|
299
299
|
export type CompressionProviderFactory = CompressionProviderFactory$instance;
|
|
300
300
|
|
|
301
301
|
export interface CryptoProviderCache$instance {
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
302
|
+
TryAdd(signatureProvider: SignatureProvider): boolean;
|
|
303
|
+
TryGetSignatureProvider(securityKey: SecurityKey, algorithm: string, typeofProvider: string, willCreateSignatures: boolean, signatureProvider: SignatureProvider): boolean;
|
|
304
|
+
TryRemove(signatureProvider: SignatureProvider): boolean;
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
|
|
@@ -312,39 +312,39 @@ export const CryptoProviderCache: {
|
|
|
312
312
|
export type CryptoProviderCache = CryptoProviderCache$instance;
|
|
313
313
|
|
|
314
314
|
export interface CryptoProviderCacheOptions$instance {
|
|
315
|
-
|
|
315
|
+
SizeLimit: int;
|
|
316
316
|
}
|
|
317
317
|
|
|
318
318
|
|
|
319
319
|
export const CryptoProviderCacheOptions: {
|
|
320
320
|
new(): CryptoProviderCacheOptions;
|
|
321
|
-
readonly
|
|
321
|
+
readonly DefaultSizeLimit: int;
|
|
322
322
|
};
|
|
323
323
|
|
|
324
324
|
|
|
325
325
|
export type CryptoProviderCacheOptions = CryptoProviderCacheOptions$instance;
|
|
326
326
|
|
|
327
327
|
export interface CryptoProviderFactory$instance {
|
|
328
|
-
|
|
329
|
-
readonly
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
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;
|
|
348
348
|
}
|
|
349
349
|
|
|
350
350
|
|
|
@@ -352,21 +352,21 @@ export const CryptoProviderFactory: {
|
|
|
352
352
|
new(): CryptoProviderFactory;
|
|
353
353
|
new(cache: CryptoProviderCache): CryptoProviderFactory;
|
|
354
354
|
new(other: CryptoProviderFactory): CryptoProviderFactory;
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
355
|
+
Default: CryptoProviderFactory;
|
|
356
|
+
DefaultCacheSignatureProviders: boolean;
|
|
357
|
+
DefaultSignatureProviderObjectPoolCacheSize: int;
|
|
358
358
|
};
|
|
359
359
|
|
|
360
360
|
|
|
361
361
|
export type CryptoProviderFactory = CryptoProviderFactory$instance;
|
|
362
362
|
|
|
363
363
|
export interface DeflateCompressionProvider$instance {
|
|
364
|
-
readonly
|
|
365
|
-
readonly
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
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;
|
|
370
370
|
}
|
|
371
371
|
|
|
372
372
|
|
|
@@ -386,8 +386,8 @@ export type DeflateCompressionProvider = DeflateCompressionProvider$instance & _
|
|
|
386
386
|
|
|
387
387
|
|
|
388
388
|
export interface EcdhKeyExchangeProvider$instance {
|
|
389
|
-
|
|
390
|
-
|
|
389
|
+
KeyDataLen: int;
|
|
390
|
+
GenerateKdf(apu?: string, apv?: string): SecurityKey;
|
|
391
391
|
}
|
|
392
392
|
|
|
393
393
|
|
|
@@ -399,12 +399,12 @@ export const EcdhKeyExchangeProvider: {
|
|
|
399
399
|
export type EcdhKeyExchangeProvider = EcdhKeyExchangeProvider$instance;
|
|
400
400
|
|
|
401
401
|
export interface ECDsaSecurityKey$instance extends AsymmetricSecurityKey {
|
|
402
|
-
readonly
|
|
403
|
-
readonly
|
|
404
|
-
readonly
|
|
405
|
-
readonly
|
|
406
|
-
|
|
407
|
-
|
|
402
|
+
readonly ECDsa: ECDsa;
|
|
403
|
+
readonly HasPrivateKey: boolean;
|
|
404
|
+
readonly KeySize: int;
|
|
405
|
+
readonly PrivateKeyStatus: PrivateKeyStatus;
|
|
406
|
+
CanComputeJwkThumbprint(): boolean;
|
|
407
|
+
ComputeJwkThumbprint(): byte[];
|
|
408
408
|
}
|
|
409
409
|
|
|
410
410
|
|
|
@@ -416,12 +416,12 @@ export const ECDsaSecurityKey: {
|
|
|
416
416
|
export type ECDsaSecurityKey = ECDsaSecurityKey$instance;
|
|
417
417
|
|
|
418
418
|
export interface EncryptingCredentials$instance {
|
|
419
|
-
readonly
|
|
420
|
-
|
|
421
|
-
readonly
|
|
422
|
-
readonly
|
|
423
|
-
|
|
424
|
-
|
|
419
|
+
readonly Alg: string;
|
|
420
|
+
CryptoProviderFactory: CryptoProviderFactory;
|
|
421
|
+
readonly Enc: string;
|
|
422
|
+
readonly Key: SecurityKey;
|
|
423
|
+
KeyExchangePublicKey: SecurityKey;
|
|
424
|
+
SetDefaultCtyClaim: boolean;
|
|
425
425
|
}
|
|
426
426
|
|
|
427
427
|
|
|
@@ -434,10 +434,10 @@ export const EncryptingCredentials: {
|
|
|
434
434
|
export type EncryptingCredentials = EncryptingCredentials$instance;
|
|
435
435
|
|
|
436
436
|
export interface InMemoryCryptoProviderCache$instance extends CryptoProviderCache {
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
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;
|
|
441
441
|
}
|
|
442
442
|
|
|
443
443
|
|
|
@@ -450,42 +450,42 @@ export const InMemoryCryptoProviderCache: {
|
|
|
450
450
|
export type InMemoryCryptoProviderCache = InMemoryCryptoProviderCache$instance;
|
|
451
451
|
|
|
452
452
|
export interface JsonWebKey$instance extends SecurityKey {
|
|
453
|
-
readonly
|
|
454
|
-
|
|
455
|
-
|
|
453
|
+
readonly AdditionalData: IDictionary<System_Internal.String, unknown>;
|
|
454
|
+
Alg: string;
|
|
455
|
+
Crv: string;
|
|
456
456
|
D: string;
|
|
457
457
|
DP: string;
|
|
458
458
|
DQ: string;
|
|
459
459
|
E: string;
|
|
460
|
-
readonly
|
|
460
|
+
readonly HasPrivateKey: boolean;
|
|
461
461
|
K: string;
|
|
462
|
-
|
|
463
|
-
readonly
|
|
464
|
-
readonly
|
|
465
|
-
|
|
466
|
-
|
|
462
|
+
KeyId: string;
|
|
463
|
+
readonly KeyOps: IList<System_Internal.String>;
|
|
464
|
+
readonly KeySize: int;
|
|
465
|
+
Kid: string;
|
|
466
|
+
Kty: string;
|
|
467
467
|
N: string;
|
|
468
|
-
readonly
|
|
468
|
+
readonly Oth: IList<System_Internal.String>;
|
|
469
469
|
P: string;
|
|
470
470
|
Q: string;
|
|
471
471
|
QI: string;
|
|
472
|
-
|
|
472
|
+
Use: string;
|
|
473
473
|
X: string;
|
|
474
|
-
readonly
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
474
|
+
readonly X5c: IList<System_Internal.String>;
|
|
475
|
+
X5t: string;
|
|
476
|
+
X5tS256: string;
|
|
477
|
+
X5u: string;
|
|
478
478
|
Y: string;
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
479
|
+
CanComputeJwkThumbprint(): boolean;
|
|
480
|
+
ComputeJwkThumbprint(): byte[];
|
|
481
|
+
ToString(): string | undefined;
|
|
482
482
|
}
|
|
483
483
|
|
|
484
484
|
|
|
485
485
|
export const JsonWebKey: {
|
|
486
486
|
new(): JsonWebKey;
|
|
487
487
|
new(json: string): JsonWebKey;
|
|
488
|
-
|
|
488
|
+
Create(json: string): JsonWebKey;
|
|
489
489
|
};
|
|
490
490
|
|
|
491
491
|
|
|
@@ -497,42 +497,42 @@ export interface JsonWebKeyConverter$instance {
|
|
|
497
497
|
|
|
498
498
|
export const JsonWebKeyConverter: {
|
|
499
499
|
new(): JsonWebKeyConverter;
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
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;
|
|
506
506
|
};
|
|
507
507
|
|
|
508
508
|
|
|
509
509
|
export type JsonWebKeyConverter = JsonWebKeyConverter$instance;
|
|
510
510
|
|
|
511
511
|
export interface JsonWebKeySet$instance {
|
|
512
|
-
readonly
|
|
513
|
-
readonly
|
|
514
|
-
|
|
515
|
-
|
|
512
|
+
readonly AdditionalData: IDictionary<System_Internal.String, unknown>;
|
|
513
|
+
readonly Keys: IList<JsonWebKey>;
|
|
514
|
+
SkipUnresolvedJsonWebKeys: boolean;
|
|
515
|
+
GetSigningKeys(): IList<SecurityKey>;
|
|
516
516
|
}
|
|
517
517
|
|
|
518
518
|
|
|
519
519
|
export const JsonWebKeySet: {
|
|
520
520
|
new(): JsonWebKeySet;
|
|
521
521
|
new(json: string): JsonWebKeySet;
|
|
522
|
-
|
|
523
|
-
|
|
522
|
+
DefaultSkipUnresolvedJsonWebKeys: boolean;
|
|
523
|
+
Create(json: string): JsonWebKeySet;
|
|
524
524
|
};
|
|
525
525
|
|
|
526
526
|
|
|
527
527
|
export type JsonWebKeySet = JsonWebKeySet$instance;
|
|
528
528
|
|
|
529
529
|
export interface KeyWrapProvider$instance {
|
|
530
|
-
readonly
|
|
531
|
-
|
|
532
|
-
readonly
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
530
|
+
readonly Algorithm: string;
|
|
531
|
+
Context: string;
|
|
532
|
+
readonly Key: SecurityKey;
|
|
533
|
+
Dispose(): void;
|
|
534
|
+
UnwrapKey(keyBytes: byte[]): byte[];
|
|
535
|
+
WrapKey(keyBytes: byte[]): byte[];
|
|
536
536
|
}
|
|
537
537
|
|
|
538
538
|
|
|
@@ -543,11 +543,11 @@ export const KeyWrapProvider: {
|
|
|
543
543
|
export type KeyWrapProvider = KeyWrapProvider$instance;
|
|
544
544
|
|
|
545
545
|
export interface RsaKeyWrapProvider$instance extends KeyWrapProvider {
|
|
546
|
-
readonly
|
|
547
|
-
|
|
548
|
-
readonly
|
|
549
|
-
|
|
550
|
-
|
|
546
|
+
readonly Algorithm: string;
|
|
547
|
+
Context: string;
|
|
548
|
+
readonly Key: SecurityKey;
|
|
549
|
+
UnwrapKey(keyBytes: byte[]): byte[];
|
|
550
|
+
WrapKey(keyBytes: byte[]): byte[];
|
|
551
551
|
}
|
|
552
552
|
|
|
553
553
|
|
|
@@ -559,13 +559,13 @@ export const RsaKeyWrapProvider: {
|
|
|
559
559
|
export type RsaKeyWrapProvider = RsaKeyWrapProvider$instance;
|
|
560
560
|
|
|
561
561
|
export interface RsaSecurityKey$instance extends AsymmetricSecurityKey {
|
|
562
|
-
readonly
|
|
563
|
-
readonly
|
|
564
|
-
readonly
|
|
565
|
-
readonly
|
|
566
|
-
readonly
|
|
567
|
-
|
|
568
|
-
|
|
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[];
|
|
569
569
|
}
|
|
570
570
|
|
|
571
571
|
|
|
@@ -578,13 +578,13 @@ export const RsaSecurityKey: {
|
|
|
578
578
|
export type RsaSecurityKey = RsaSecurityKey$instance;
|
|
579
579
|
|
|
580
580
|
export interface SecurityKey$instance {
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
readonly
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
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;
|
|
588
588
|
}
|
|
589
589
|
|
|
590
590
|
|
|
@@ -607,13 +607,13 @@ export const SecurityKeyIdentifierClause: {
|
|
|
607
607
|
export type SecurityKeyIdentifierClause = SecurityKeyIdentifierClause$instance;
|
|
608
608
|
|
|
609
609
|
export interface SecurityToken$instance {
|
|
610
|
-
readonly
|
|
611
|
-
readonly
|
|
612
|
-
readonly
|
|
613
|
-
|
|
614
|
-
readonly
|
|
615
|
-
readonly
|
|
616
|
-
|
|
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;
|
|
617
617
|
}
|
|
618
618
|
|
|
619
619
|
|
|
@@ -683,20 +683,20 @@ export const SecurityTokenDecryptionFailedException: {
|
|
|
683
683
|
export type SecurityTokenDecryptionFailedException = SecurityTokenDecryptionFailedException$instance;
|
|
684
684
|
|
|
685
685
|
export interface SecurityTokenDescriptor$instance {
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
get
|
|
698
|
-
set
|
|
699
|
-
|
|
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;
|
|
700
700
|
}
|
|
701
701
|
|
|
702
702
|
|
|
@@ -734,7 +734,7 @@ export const SecurityTokenEncryptionKeyNotFoundException: {
|
|
|
734
734
|
export type SecurityTokenEncryptionKeyNotFoundException = SecurityTokenEncryptionKeyNotFoundException$instance;
|
|
735
735
|
|
|
736
736
|
export interface SecurityTokenException$instance extends Exception {
|
|
737
|
-
|
|
737
|
+
GetObjectData(info: SerializationInfo, context: StreamingContext): void;
|
|
738
738
|
}
|
|
739
739
|
|
|
740
740
|
|
|
@@ -748,8 +748,8 @@ export const SecurityTokenException: {
|
|
|
748
748
|
export type SecurityTokenException = SecurityTokenException$instance;
|
|
749
749
|
|
|
750
750
|
export interface SecurityTokenExpiredException$instance extends SecurityTokenValidationException {
|
|
751
|
-
|
|
752
|
-
|
|
751
|
+
Expires: DateTime;
|
|
752
|
+
GetObjectData(info: SerializationInfo, context: StreamingContext): void;
|
|
753
753
|
}
|
|
754
754
|
|
|
755
755
|
|
|
@@ -763,18 +763,18 @@ export const SecurityTokenExpiredException: {
|
|
|
763
763
|
export type SecurityTokenExpiredException = SecurityTokenExpiredException$instance;
|
|
764
764
|
|
|
765
765
|
export interface SecurityTokenHandler$instance extends TokenHandler {
|
|
766
|
-
readonly
|
|
767
|
-
readonly
|
|
768
|
-
readonly
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
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;
|
|
778
778
|
}
|
|
779
779
|
|
|
780
780
|
|
|
@@ -792,8 +792,8 @@ export type SecurityTokenHandler = SecurityTokenHandler$instance & __SecurityTok
|
|
|
792
792
|
|
|
793
793
|
|
|
794
794
|
export interface SecurityTokenInvalidAlgorithmException$instance extends SecurityTokenValidationException {
|
|
795
|
-
|
|
796
|
-
|
|
795
|
+
InvalidAlgorithm: string;
|
|
796
|
+
GetObjectData(info: SerializationInfo, context: StreamingContext): void;
|
|
797
797
|
}
|
|
798
798
|
|
|
799
799
|
|
|
@@ -807,8 +807,8 @@ export const SecurityTokenInvalidAlgorithmException: {
|
|
|
807
807
|
export type SecurityTokenInvalidAlgorithmException = SecurityTokenInvalidAlgorithmException$instance;
|
|
808
808
|
|
|
809
809
|
export interface SecurityTokenInvalidAudienceException$instance extends SecurityTokenValidationException {
|
|
810
|
-
|
|
811
|
-
|
|
810
|
+
InvalidAudience: string;
|
|
811
|
+
GetObjectData(info: SerializationInfo, context: StreamingContext): void;
|
|
812
812
|
}
|
|
813
813
|
|
|
814
814
|
|
|
@@ -822,8 +822,8 @@ export const SecurityTokenInvalidAudienceException: {
|
|
|
822
822
|
export type SecurityTokenInvalidAudienceException = SecurityTokenInvalidAudienceException$instance;
|
|
823
823
|
|
|
824
824
|
export interface SecurityTokenInvalidIssuerException$instance extends SecurityTokenValidationException {
|
|
825
|
-
|
|
826
|
-
|
|
825
|
+
InvalidIssuer: string;
|
|
826
|
+
GetObjectData(info: SerializationInfo, context: StreamingContext): void;
|
|
827
827
|
}
|
|
828
828
|
|
|
829
829
|
|
|
@@ -837,9 +837,9 @@ export const SecurityTokenInvalidIssuerException: {
|
|
|
837
837
|
export type SecurityTokenInvalidIssuerException = SecurityTokenInvalidIssuerException$instance;
|
|
838
838
|
|
|
839
839
|
export interface SecurityTokenInvalidLifetimeException$instance extends SecurityTokenValidationException {
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
840
|
+
Expires: Nullable<DateTime>;
|
|
841
|
+
NotBefore: Nullable<DateTime>;
|
|
842
|
+
GetObjectData(info: SerializationInfo, context: StreamingContext): void;
|
|
843
843
|
}
|
|
844
844
|
|
|
845
845
|
|
|
@@ -866,7 +866,7 @@ export const SecurityTokenInvalidSignatureException: {
|
|
|
866
866
|
export type SecurityTokenInvalidSignatureException = SecurityTokenInvalidSignatureException$instance;
|
|
867
867
|
|
|
868
868
|
export interface SecurityTokenInvalidSigningKeyException$instance extends SecurityTokenValidationException {
|
|
869
|
-
|
|
869
|
+
SigningKey: SecurityKey;
|
|
870
870
|
}
|
|
871
871
|
|
|
872
872
|
|
|
@@ -880,8 +880,8 @@ export const SecurityTokenInvalidSigningKeyException: {
|
|
|
880
880
|
export type SecurityTokenInvalidSigningKeyException = SecurityTokenInvalidSigningKeyException$instance;
|
|
881
881
|
|
|
882
882
|
export interface SecurityTokenInvalidTypeException$instance extends SecurityTokenValidationException {
|
|
883
|
-
|
|
884
|
-
|
|
883
|
+
InvalidType: string;
|
|
884
|
+
GetObjectData(info: SerializationInfo, context: StreamingContext): void;
|
|
885
885
|
}
|
|
886
886
|
|
|
887
887
|
|
|
@@ -934,8 +934,8 @@ export const SecurityTokenNoExpirationException: {
|
|
|
934
934
|
export type SecurityTokenNoExpirationException = SecurityTokenNoExpirationException$instance;
|
|
935
935
|
|
|
936
936
|
export interface SecurityTokenNotYetValidException$instance extends SecurityTokenValidationException {
|
|
937
|
-
|
|
938
|
-
|
|
937
|
+
NotBefore: DateTime;
|
|
938
|
+
GetObjectData(info: SerializationInfo, context: StreamingContext): void;
|
|
939
939
|
}
|
|
940
940
|
|
|
941
941
|
|
|
@@ -988,8 +988,8 @@ export const SecurityTokenSignatureKeyNotFoundException: {
|
|
|
988
988
|
export type SecurityTokenSignatureKeyNotFoundException = SecurityTokenSignatureKeyNotFoundException$instance;
|
|
989
989
|
|
|
990
990
|
export interface SecurityTokenUnableToValidateException$instance extends SecurityTokenInvalidSignatureException {
|
|
991
|
-
|
|
992
|
-
|
|
991
|
+
ValidationFailure: ValidationFailure;
|
|
992
|
+
GetObjectData(info: SerializationInfo, context: StreamingContext): void;
|
|
993
993
|
}
|
|
994
994
|
|
|
995
995
|
|
|
@@ -1017,17 +1017,17 @@ export const SecurityTokenValidationException: {
|
|
|
1017
1017
|
export type SecurityTokenValidationException = SecurityTokenValidationException$instance;
|
|
1018
1018
|
|
|
1019
1019
|
export interface SignatureProvider$instance {
|
|
1020
|
-
readonly
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
readonly
|
|
1024
|
-
readonly
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
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;
|
|
1031
1031
|
}
|
|
1032
1032
|
|
|
1033
1033
|
|
|
@@ -1038,11 +1038,11 @@ export const SignatureProvider: {
|
|
|
1038
1038
|
export type SignatureProvider = SignatureProvider$instance;
|
|
1039
1039
|
|
|
1040
1040
|
export interface SigningCredentials$instance {
|
|
1041
|
-
readonly
|
|
1042
|
-
|
|
1043
|
-
readonly
|
|
1044
|
-
readonly
|
|
1045
|
-
readonly
|
|
1041
|
+
readonly Algorithm: string;
|
|
1042
|
+
CryptoProviderFactory: CryptoProviderFactory;
|
|
1043
|
+
readonly Digest: string;
|
|
1044
|
+
readonly Key: SecurityKey;
|
|
1045
|
+
readonly Kid: string;
|
|
1046
1046
|
}
|
|
1047
1047
|
|
|
1048
1048
|
|
|
@@ -1055,11 +1055,11 @@ export const SigningCredentials: {
|
|
|
1055
1055
|
export type SigningCredentials = SigningCredentials$instance;
|
|
1056
1056
|
|
|
1057
1057
|
export interface SymmetricKeyWrapProvider$instance extends KeyWrapProvider {
|
|
1058
|
-
readonly
|
|
1059
|
-
|
|
1060
|
-
readonly
|
|
1061
|
-
|
|
1062
|
-
|
|
1058
|
+
readonly Algorithm: string;
|
|
1059
|
+
Context: string;
|
|
1060
|
+
readonly Key: SecurityKey;
|
|
1061
|
+
UnwrapKey(keyBytes: byte[]): byte[];
|
|
1062
|
+
WrapKey(keyBytes: byte[]): byte[];
|
|
1063
1063
|
}
|
|
1064
1064
|
|
|
1065
1065
|
|
|
@@ -1071,10 +1071,10 @@ export const SymmetricKeyWrapProvider: {
|
|
|
1071
1071
|
export type SymmetricKeyWrapProvider = SymmetricKeyWrapProvider$instance;
|
|
1072
1072
|
|
|
1073
1073
|
export interface SymmetricSecurityKey$instance extends SecurityKey {
|
|
1074
|
-
readonly
|
|
1075
|
-
readonly
|
|
1076
|
-
|
|
1077
|
-
|
|
1074
|
+
readonly Key: byte[];
|
|
1075
|
+
readonly KeySize: int;
|
|
1076
|
+
CanComputeJwkThumbprint(): boolean;
|
|
1077
|
+
ComputeJwkThumbprint(): byte[];
|
|
1078
1078
|
}
|
|
1079
1079
|
|
|
1080
1080
|
|
|
@@ -1086,21 +1086,21 @@ export const SymmetricSecurityKey: {
|
|
|
1086
1086
|
export type SymmetricSecurityKey = SymmetricSecurityKey$instance;
|
|
1087
1087
|
|
|
1088
1088
|
export interface SymmetricSignatureProvider$instance extends SignatureProvider {
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
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;
|
|
1097
1097
|
}
|
|
1098
1098
|
|
|
1099
1099
|
|
|
1100
1100
|
export const SymmetricSignatureProvider: {
|
|
1101
1101
|
new(key: SecurityKey, algorithm: string): SymmetricSignatureProvider;
|
|
1102
1102
|
new(key: SecurityKey, algorithm: string, willCreateSignatures: boolean): SymmetricSignatureProvider;
|
|
1103
|
-
readonly
|
|
1103
|
+
readonly DefaultMinimumSymmetricKeySizeInBits: int;
|
|
1104
1104
|
};
|
|
1105
1105
|
|
|
1106
1106
|
|
|
@@ -1119,107 +1119,107 @@ export const TokenContext: {
|
|
|
1119
1119
|
export type TokenContext = TokenContext$instance;
|
|
1120
1120
|
|
|
1121
1121
|
export interface TokenHandler$instance {
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
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>;
|
|
1128
1128
|
}
|
|
1129
1129
|
|
|
1130
1130
|
|
|
1131
1131
|
export const TokenHandler: {
|
|
1132
|
-
readonly
|
|
1132
|
+
readonly DefaultTokenLifetimeInMinutes: int;
|
|
1133
1133
|
};
|
|
1134
1134
|
|
|
1135
1135
|
|
|
1136
1136
|
export type TokenHandler = TokenHandler$instance;
|
|
1137
1137
|
|
|
1138
1138
|
export interface TokenValidationParameters$instance {
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
readonly
|
|
1150
|
-
readonly
|
|
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
|
-
|
|
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;
|
|
1199
1199
|
}
|
|
1200
1200
|
|
|
1201
1201
|
|
|
1202
1202
|
export const TokenValidationParameters: {
|
|
1203
1203
|
new(): TokenValidationParameters;
|
|
1204
|
-
readonly
|
|
1205
|
-
readonly
|
|
1206
|
-
readonly
|
|
1204
|
+
readonly DefaultAuthenticationType: string;
|
|
1205
|
+
readonly DefaultClockSkew: TimeSpan;
|
|
1206
|
+
readonly DefaultMaximumTokenSizeInBytes: int;
|
|
1207
1207
|
};
|
|
1208
1208
|
|
|
1209
1209
|
|
|
1210
1210
|
export type TokenValidationParameters = TokenValidationParameters$instance;
|
|
1211
1211
|
|
|
1212
1212
|
export interface TokenValidationResult$instance {
|
|
1213
|
-
readonly
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
readonly
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
readonly
|
|
1222
|
-
|
|
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;
|
|
1223
1223
|
}
|
|
1224
1224
|
|
|
1225
1225
|
|
|
@@ -1231,7 +1231,7 @@ export const TokenValidationResult: {
|
|
|
1231
1231
|
export type TokenValidationResult = TokenValidationResult$instance;
|
|
1232
1232
|
|
|
1233
1233
|
export interface X509EncryptingCredentials$instance extends EncryptingCredentials {
|
|
1234
|
-
readonly
|
|
1234
|
+
readonly Certificate: X509Certificate2 | undefined;
|
|
1235
1235
|
}
|
|
1236
1236
|
|
|
1237
1237
|
|
|
@@ -1244,17 +1244,17 @@ export const X509EncryptingCredentials: {
|
|
|
1244
1244
|
export type X509EncryptingCredentials = X509EncryptingCredentials$instance;
|
|
1245
1245
|
|
|
1246
1246
|
export interface X509SecurityKey$instance extends AsymmetricSecurityKey {
|
|
1247
|
-
readonly
|
|
1248
|
-
readonly
|
|
1249
|
-
readonly
|
|
1250
|
-
readonly
|
|
1251
|
-
readonly
|
|
1252
|
-
readonly
|
|
1253
|
-
readonly
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
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;
|
|
1258
1258
|
}
|
|
1259
1259
|
|
|
1260
1260
|
|
|
@@ -1267,7 +1267,7 @@ export const X509SecurityKey: {
|
|
|
1267
1267
|
export type X509SecurityKey = X509SecurityKey$instance;
|
|
1268
1268
|
|
|
1269
1269
|
export interface X509SigningCredentials$instance extends SigningCredentials {
|
|
1270
|
-
readonly
|
|
1270
|
+
readonly Certificate: X509Certificate2 | undefined;
|
|
1271
1271
|
}
|
|
1272
1272
|
|
|
1273
1273
|
|
|
@@ -1280,48 +1280,48 @@ export const X509SigningCredentials: {
|
|
|
1280
1280
|
export type X509SigningCredentials = X509SigningCredentials$instance;
|
|
1281
1281
|
|
|
1282
1282
|
export abstract class Base64UrlEncoder$instance {
|
|
1283
|
-
static
|
|
1284
|
-
static
|
|
1285
|
-
static
|
|
1286
|
-
static
|
|
1287
|
-
static
|
|
1288
|
-
static
|
|
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;
|
|
1289
1289
|
}
|
|
1290
1290
|
|
|
1291
1291
|
|
|
1292
1292
|
export type Base64UrlEncoder = Base64UrlEncoder$instance;
|
|
1293
1293
|
|
|
1294
1294
|
export abstract class CollectionUtilities$instance {
|
|
1295
|
-
static
|
|
1295
|
+
static IsNullOrEmpty<T>(enumerable: IEnumerable<T>): boolean;
|
|
1296
1296
|
}
|
|
1297
1297
|
|
|
1298
1298
|
|
|
1299
1299
|
export type CollectionUtilities = CollectionUtilities$instance;
|
|
1300
1300
|
|
|
1301
1301
|
export abstract class DateTimeUtil$instance {
|
|
1302
|
-
static
|
|
1303
|
-
static
|
|
1304
|
-
static
|
|
1305
|
-
static
|
|
1306
|
-
static
|
|
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>;
|
|
1307
1307
|
}
|
|
1308
1308
|
|
|
1309
1309
|
|
|
1310
1310
|
export type DateTimeUtil = DateTimeUtil$instance;
|
|
1311
1311
|
|
|
1312
1312
|
export abstract class EpochTime$instance {
|
|
1313
|
-
static readonly
|
|
1314
|
-
static
|
|
1315
|
-
static
|
|
1313
|
+
static readonly UnixEpoch: DateTime;
|
|
1314
|
+
static DateTime(secondsSinceUnixEpoch: long): DateTime;
|
|
1315
|
+
static GetIntDate(datetime: DateTime): long;
|
|
1316
1316
|
}
|
|
1317
1317
|
|
|
1318
1318
|
|
|
1319
1319
|
export type EpochTime = EpochTime$instance;
|
|
1320
1320
|
|
|
1321
1321
|
export abstract class JsonWebAlgorithmsKeyTypes$instance {
|
|
1322
|
-
static readonly
|
|
1322
|
+
static readonly EllipticCurve: string;
|
|
1323
1323
|
static readonly RSA: string;
|
|
1324
|
-
static readonly
|
|
1324
|
+
static readonly Octet: string;
|
|
1325
1325
|
}
|
|
1326
1326
|
|
|
1327
1327
|
|
|
@@ -1338,28 +1338,28 @@ export abstract class JsonWebKeyECTypes$instance {
|
|
|
1338
1338
|
export type JsonWebKeyECTypes = JsonWebKeyECTypes$instance;
|
|
1339
1339
|
|
|
1340
1340
|
export abstract class JsonWebKeyParameterNames$instance {
|
|
1341
|
-
static readonly
|
|
1342
|
-
static readonly
|
|
1341
|
+
static readonly Alg: string;
|
|
1342
|
+
static readonly Crv: string;
|
|
1343
1343
|
static readonly D: string;
|
|
1344
1344
|
static readonly DP: string;
|
|
1345
1345
|
static readonly DQ: string;
|
|
1346
1346
|
static readonly E: string;
|
|
1347
1347
|
static readonly K: string;
|
|
1348
|
-
static readonly
|
|
1349
|
-
static readonly
|
|
1350
|
-
static readonly
|
|
1351
|
-
static readonly
|
|
1348
|
+
static readonly KeyOps: string;
|
|
1349
|
+
static readonly Keys: string;
|
|
1350
|
+
static readonly Kid: string;
|
|
1351
|
+
static readonly Kty: string;
|
|
1352
1352
|
static readonly N: string;
|
|
1353
|
-
static readonly
|
|
1353
|
+
static readonly Oth: string;
|
|
1354
1354
|
static readonly P: string;
|
|
1355
1355
|
static readonly Q: string;
|
|
1356
1356
|
static readonly QI: string;
|
|
1357
|
-
static readonly
|
|
1357
|
+
static readonly Use: string;
|
|
1358
1358
|
static readonly X: string;
|
|
1359
|
-
static readonly
|
|
1360
|
-
static readonly
|
|
1361
|
-
static readonly
|
|
1362
|
-
static readonly
|
|
1359
|
+
static readonly X5c: string;
|
|
1360
|
+
static readonly X5t: string;
|
|
1361
|
+
static readonly X5tS256: string;
|
|
1362
|
+
static readonly X5u: string;
|
|
1363
1363
|
static readonly Y: string;
|
|
1364
1364
|
}
|
|
1365
1365
|
|
|
@@ -1367,117 +1367,117 @@ export abstract class JsonWebKeyParameterNames$instance {
|
|
|
1367
1367
|
export type JsonWebKeyParameterNames = JsonWebKeyParameterNames$instance;
|
|
1368
1368
|
|
|
1369
1369
|
export abstract class JsonWebKeySetParameterNames$instance {
|
|
1370
|
-
static readonly
|
|
1370
|
+
static readonly Keys: string;
|
|
1371
1371
|
}
|
|
1372
1372
|
|
|
1373
1373
|
|
|
1374
1374
|
export type JsonWebKeySetParameterNames = JsonWebKeySetParameterNames$instance;
|
|
1375
1375
|
|
|
1376
1376
|
export abstract class JsonWebKeyUseNames$instance {
|
|
1377
|
-
static readonly
|
|
1378
|
-
static readonly
|
|
1377
|
+
static readonly Sig: string;
|
|
1378
|
+
static readonly Enc: string;
|
|
1379
1379
|
}
|
|
1380
1380
|
|
|
1381
1381
|
|
|
1382
1382
|
export type JsonWebKeyUseNames = JsonWebKeyUseNames$instance;
|
|
1383
1383
|
|
|
1384
1384
|
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
|
|
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;
|
|
1444
1444
|
}
|
|
1445
1445
|
|
|
1446
1446
|
|
|
1447
1447
|
export type SecurityAlgorithms = SecurityAlgorithms$instance;
|
|
1448
1448
|
|
|
1449
1449
|
export abstract class UniqueId$instance {
|
|
1450
|
-
static
|
|
1451
|
-
static
|
|
1452
|
-
static
|
|
1453
|
-
static
|
|
1454
|
-
static
|
|
1450
|
+
static CreateRandomId(): string;
|
|
1451
|
+
static CreateRandomId(prefix: string): string;
|
|
1452
|
+
static CreateRandomUri(): Uri;
|
|
1453
|
+
static CreateUniqueId(): string;
|
|
1454
|
+
static CreateUniqueId(prefix: string): string;
|
|
1455
1455
|
}
|
|
1456
1456
|
|
|
1457
1457
|
|
|
1458
1458
|
export type UniqueId = UniqueId$instance;
|
|
1459
1459
|
|
|
1460
1460
|
export abstract class Utility$instance {
|
|
1461
|
-
static readonly
|
|
1462
|
-
static readonly
|
|
1463
|
-
static
|
|
1464
|
-
static
|
|
1465
|
-
static
|
|
1466
|
-
static
|
|
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;
|
|
1467
1467
|
}
|
|
1468
1468
|
|
|
1469
1469
|
|
|
1470
1470
|
export type Utility = Utility$instance;
|
|
1471
1471
|
|
|
1472
1472
|
export abstract class Validators$instance {
|
|
1473
|
-
static
|
|
1474
|
-
static
|
|
1475
|
-
static
|
|
1476
|
-
static
|
|
1477
|
-
static
|
|
1478
|
-
static
|
|
1479
|
-
static
|
|
1480
|
-
static
|
|
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;
|
|
1481
1481
|
}
|
|
1482
1482
|
|
|
1483
1483
|
|