You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Microsoft.IdentityModel.Tokens/LogMessages.cs
+33-33Lines changed: 33 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ internal static class LogMessages
37
37
{
38
38
#pragma warning disable 1591
39
39
// general
40
-
publicconststringIDX10000="IDX10000: The parameter '{0}' cannot be a 'null' or an empty object.";
40
+
// public const string IDX10000 = "IDX10000:";
41
41
42
42
// properties, configuration
43
43
publicconststringIDX10101="IDX10101: MaximumTokenSizeInBytes must be greater than zero. value: '{0}'";
@@ -78,7 +78,7 @@ internal static class LogMessages
78
78
publicconststringIDX10244="IDX10244: Issuer is null or empty. Using runtime default for creating claims '{0}'.";
79
79
publicconststringIDX10245="IDX10245: Creating claims identity from the validated token: '{0}'.";
80
80
publicconststringIDX10246="IDX10246: ValidateTokenReplay property on ValidationParameters is set to false. Exiting without validating the token replay.";
81
-
publicconststringIDX10247="IDX10247: The current issuer value in ValidateIssuers property on ValidationParameters is null or emptry, skipping it for issuer validation.";
81
+
// public const string IDX10247 = "IDX10247:";
82
82
publicconststringIDX10248="IDX10248: X509SecurityKey validation failed. The associated certificate is not yet valid. ValidFrom (UTC): '{0}', Current time (UTC): '{1}'.";
83
83
publicconststringIDX10249="IDX10249: X509SecurityKey validation failed. The associated certificate has expired. ValidTo (UTC): '{0}', Current time (UTC): '{1}'.";
84
84
publicconststringIDX10250="IDX10250: The associated certificate is valid. ValidFrom (UTC): '{0}', Current time (UTC): '{1}'.";
@@ -91,27 +91,27 @@ internal static class LogMessages
91
91
publicconststringIDX10504="IDX10504: Unable to validate signature, token does not have a signature: '{0}'.";
92
92
publicconststringIDX10505="IDX10505: Signature validation failed. The user defined 'Delegate' specified on TokenValidationParameters returned null when validating token: '{0}'.";
93
93
publicconststringIDX10506="IDX10506: Signature validation failed. The user defined 'Delegate' specified on TokenValidationParameters did not return a '{0}', but returned a '{1}' when validating token: '{2}'.";
94
-
publicconststringIDX10507="IDX10507: Signature validation failed. ValidateSignature returned null when validating token: '{0}'.";
94
+
// public const string IDX10507 = "IDX10507:";
95
95
publicconststringIDX10508="IDX10508: Signature validation failed. Signature is improperly formatted.";
96
96
publicconststringIDX10509="IDX10509: Signature validation failed. The user defined 'Delegate' specified in TokenValidationParameters did not return a '{0}', but returned a '{1}' when reading token: '{2}'.";
97
97
publicconststringIDX10510="IDX10510: Signature validation failed. The user defined 'Delegate' specified in TokenValidationParameters returned null when reading token: '{0}'.";
publicconststringIDX10605="IDX10605: Decryption failed. Only 'dir' is currently supported. JWE alg is: '{0}'.";
106
-
publicconststringIDX10606="IDX10606: Decryption failed. To decrypt a JWE there must be 5 parts. 'tokenParts' is of length: '{0}'.";
104
+
// public const string IDX10604 = "IDX10604:";
105
+
// public const string IDX10605 = "IDX10605:";
106
+
// public const string IDX10606 = "IDX10606:";
107
107
publicconststringIDX10607="IDX10607: Decryption skipping key: '{0}', both validationParameters.CryptoProviderFactory and key.CryptoProviderFactory are null.";
108
-
publicconststringIDX10608="IDX10608: Decryption skipping key: '{0}', it is not a '{1}'.";
108
+
// public const string IDX10608 = "IDX10608:";
109
109
publicconststringIDX10609="IDX10609: Decryption failed. No Keys tried: token: '{0}'.";
110
110
publicconststringIDX10610="IDX10610: Decryption failed. Could not create decryption provider. Key: '{0}', Algorithm: '{1}'.";
111
111
publicconststringIDX10611="IDX10611: Decryption failed. Encryption is not supported for: Algorithm: '{0}', SecurityKey: '{1}'.";
112
112
publicconststringIDX10612="IDX10612: Decryption failed. Header.Enc is null or empty, it must be specified.";
113
-
//public const string IDX10613 = "IDX10613: Decryption failed. JwtHeader (tokenParts[0]) is null or empty.";
publicconststringIDX10617="IDX10617: Encryption failed. Keywrap is only supported for: '{0}', '{1}' and '{2}'. The content encryption specified is: '{3}'.";
@@ -122,38 +122,38 @@ internal static class LogMessages
122
122
123
123
// Crypto Errors
124
124
publicconststringIDX10621="IDX10621: '{0}' supports: '{1}' of types: '{2}' or '{3}'. SecurityKey received was of type '{4}'.";
125
-
publicconststringIDX10622="IDX10622: The algorithm: '{0}' requires the SecurityKey.KeySize to be greater than '{1}' bits. KeySize reported: '{2}'.";
126
-
publicconststringIDX10623="IDX10623: Cannot sign data because the KeyedHashAlgorithm is null.";
127
-
publicconststringIDX10624="IDX10624: Cannot verify data because the KeyedHashAlgorithm is null.";
128
-
publicconststringIDX10627="IDX10627: Cannot set the MinimumAsymmetricKeySizeInBitsForVerifying to less than '{0}'.";
125
+
// public const string IDX10622 = "IDX10622:";
126
+
// public const string IDX10623 = "IDX10623:";
127
+
// public const string IDX10624 = "IDX10624:";
128
+
// public const string IDX10627 = "IDX10627:";
129
129
publicconststringIDX10628="IDX10628: Cannot set the MinimumSymmetricKeySizeInBits to less than '{0}'.";
130
130
publicconststringIDX10630="IDX10630: The '{0}' for signing cannot be smaller than '{1}' bits. KeySize: '{2}'.";
131
131
publicconststringIDX10631="IDX10631: The '{0}' for verifying cannot be smaller than '{1}' bits. KeySize: '{2}'.";
132
132
publicconststringIDX10634="IDX10634: Unable to create the SignatureProvider.\nAlgorithm: '{0}', SecurityKey: '{1}'\n is not supported.";
133
-
publicconststringIDX10635="IDX10635: Unable to create signature. '{0}' returned a null '{1}'. SecurityKey: '{2}', Algorithm: '{3}'";
133
+
// public const string IDX10635 = "IDX10635:";
134
134
publicconststringIDX10636="IDX10636: CryptoProviderFactory.CreateForVerifying returned null for key: '{0}', signatureAlgorithm: '{1}'.";
135
135
publicconststringIDX10638="IDX10638: Cannot create the SignatureProvider, 'key.HasPrivateKey' is false, cannot create signatures. Key: {0}.";
136
136
publicconststringIDX10640="IDX10640: Algorithm is not supported: '{0}'.";
137
-
publicconststringIDX10641="IDX10641: Key is not supported: '{0}'.";
137
+
// public const string IDX10641 = "IDX10641:";
138
138
publicconststringIDX10642="IDX10642: Creating signature using the input: '{0}'.";
139
139
publicconststringIDX10643="IDX10643: Comparing the signature created over the input with the token signature: '{0}'.";
publicconststringIDX10645="IDX10645: Elliptical Curve not supported for curveId: '{0}'";
142
142
publicconststringIDX10646="IDX10646: A CustomCryptoProvider was set and returned 'true' for IsSupportedAlgorithm(Algorithm: '{0}', Key: '{1}'), but Create.(algorithm, args) as '{2}' == NULL.";
143
143
publicconststringIDX10647="IDX10647: A CustomCryptoProvider was set and returned 'true' for IsSupportedAlgorithm(Algorithm: '{0}'), but Create.(algorithm, args) as '{1}' == NULL.";
144
-
publicconststringIDX10648="IDX10648: The SecurityKey provided for AuthenticatedEncryption must be a SymmetricSecurityKey. Type is: '{0}'.";
144
+
// public const string IDX10648 = "IDX10648:";
145
145
publicconststringIDX10649="IDX10649: Failed to create a SymmetricSignatureProvider for the algorithm '{0}'.";
146
146
publicconststringIDX10650="IDX10650: Failed to verify ciphertext with aad '{0}'; iv '{1}'; and authenticationTag '{2}'.";
147
-
publicconststringIDX10651="IDX10651: The key length for the algorithm '{0]' cannot be less than '{1}'.";
147
+
// public const string IDX10651 = "IDX10651:";
148
148
publicconststringIDX10652="IDX10652: The algorithm '{0}' is not supported.";
149
149
publicconststringIDX10653="IDX10653: The encryption algorithm '{0}' requires a key size of at least '{1}' bits. Key '{2}', is of size: '{3}'.";
publicconststringIDX10655="IDX10655: 'length' must be greater than 1: '{0}'";
152
-
publicconststringIDX10656="IDX10656: 'length' cannot be greater than signature.Length. length: '{0}', signature.Length: '{1}'.";
152
+
// public const string IDX10656 = "IDX10656:";
153
153
publicconststringIDX10657="IDX10657: The SecurityKey provided for the symmetric key wrap algorithm cannot be converted to byte array. Type is: '{0}'.";
154
154
publicconststringIDX10658="IDX10658: WrapKey failed, exception from cryptographic operation: '{0}'";
155
155
publicconststringIDX10659="IDX10659: UnwrapKey failed, exception from cryptographic operation: '{0}'";
156
-
publicconststringIDX10660="IDX10660: The Key: '{0}' and algorithm: '{1}' pair are not supported.";
156
+
// public const string IDX10660 = "IDX10660:";
157
157
publicconststringIDX10661="IDX10661: Unable to create the KeyWrapProvider.\nKeyWrapAlgorithm: '{0}', SecurityKey: '{1}'\n is not supported.";
158
158
publicconststringIDX10662="IDX10662: The KeyWrap algorithm '{0}' requires a key size of '{1}' bits. Key '{2}', is of size:'{3}'.";
159
159
publicconststringIDX10663="IDX10663: Failed to create symmetric algorithm with SecurityKey: '{0}', KeyWrapAlgorithm: '{1}'.";
@@ -163,20 +163,20 @@ internal static class LogMessages
163
163
publicconststringIDX10667="IDX10667: Unable to obtain required byte array for KeyHashAlgorithm from SecurityKey: '{0}'.";
164
164
publicconststringIDX10668="IDX10668: Unable to create '{0}', algorithm '{1}'; key: '{2}' is not supported.";
165
165
publicconststringIDX10669="IDX10669: Failed to create symmetric algorithm.";
166
-
publicconststringIDX10670="IDX10670: The lengths of the two byte arrays do not match. The first one has: '{0}' bytes, the second one has: '{1}' bytes.";
167
-
publicconststringIDX10671="IDX10671: The ECDsa Key: '{0}' must be '{1}' bits. KeySize: '{2}'.";
168
-
publicconststringIDX10672="IDX10672: GetKeyedHashAlgorithm returned null, key: {0}, algorithm {1}.";
169
-
publicconststringIDX10673="IDX10673: CryptoProviderFactory.GetHashAlgorithm returned null, factory: {0}, algorithm: {1}.";
166
+
// public const string IDX10670 = "IDX10670:";
167
+
// public const string IDX10671 = "IDX10671:";
168
+
// public const string IDX10672 = "IDX10672:";
169
+
// public const string IDX10673 = "IDX10673:";
170
170
publicconststringIDX10674="IDX10674: JsonWebKeyConverter does not support SecurityKey of type: {0}";
171
171
publicconststringIDX10675="IDX10675: The byte count of '{0}' must be less than or equal to '{1}', but was {2}.";
publicconststringIDX10678="IDX10678: Unable to Sign, provider is not available, Algorithm, Key: '{0}', '{1}'.";
174
+
// public const string IDX10678 = "IDX10678:";
175
175
publicconststringIDX10679="IDX10679: Failed to decompress using algorithm '{0}'.";
176
176
publicconststringIDX10680="IDX10680: Failed to compress using algorithm '{0}'.";
177
-
publicconststringIDX10681="IDX10681: Unable to create the CompressionProvider.\nAlgorithm: '{0}' is not supported.";
177
+
// public const string IDX10681 = "IDX10681:";
178
178
publicconststringIDX10682="IDX10682: Compression algorithm '{0}' is not supported.";
179
-
publicconststringIDX10683="IDX10683: Unable to create a AsymmetricSignatureProvider Algorithm: '{0}', Key: '{1}'.";
179
+
// public const string IDX10683 = "IDX10683:";
180
180
publicconststringIDX10684="IDX10684: Unable to create a AsymmetricAdapter, Algorithm: '{0}', Key: '{1}'.";
181
181
publicconststringIDX10685="IDX10685: Unable to Sign, Internal SignFunction is not available.";
182
182
publicconststringIDX10686="IDX10686: Unable to Verify, Internal VerifyFunction is not available.";
@@ -188,14 +188,14 @@ internal static class LogMessages
188
188
189
189
// security keys
190
190
publicconststringIDX10700="IDX10700: Invalid RsaParameters: '{0}'. Both modulus and exponent should be present";
191
-
publicconststringIDX10701="IDX10701: Invalid JsonWebKey rsa keying material: '{0}'. Both modulus and exponent should be present";
192
-
publicconststringIDX10702="IDX10702: One or more private RSA key parts are null in the JsonWebKey: '{0}'";
191
+
// public const string IDX10701 = "IDX10701:";
192
+
// public const string IDX10702 = "IDX10702:";
193
193
publicconststringIDX10703="IDX10703: Cannot create symmetric security key. Key length is zero.";
194
194
195
195
// Json specific errors
196
196
publicconststringIDX10801="IDX10801: Unable to create an RSA public key from the Exponent and Modulus found in the JsonWebKey: E: '{0}', N: '{1}'. See inner exception for additional details.";
197
197
publicconststringIDX10802="IDX10802: Unable to create an X509Certificate2 from the X509Data: '{0}'. See inner exception for additional details.";
198
-
publicconststringIDX10804="IDX10804: Unable to retrieve document from: '{0}'.";
198
+
// public const string IDX10804 = "IDX10804:";
199
199
publicconststringIDX10805="IDX10805: Error deserializing json: '{0}' into '{1}'.";
200
200
publicconststringIDX10806="IDX10806: Deserializing json: '{0}' into '{1}'.";
0 commit comments