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
* If only the certificate is provided, key wrap encryption algorithm
and data encryption algorithm will be set by default to RsaOaepKeyWrap
and A128CBC-HS256, respectively.
* Add internal const strings DefaultAsymmetricKeyWrapAlgorithm and
DefaultSymmetricAlgorithm to indicate the default algorithms used for
encryption
* Add new ctor to EncryptingCredentials to allow users to pass
only a 'shared' symmetric key which will be used to encrypt data, but
it will not be serialized to a SAML token.
* Add protected ctor to EncryptingCredentials to check if a certificate
passed to X509EncryptedCredentials is null. Provides cleaner stack
trace in case of an exception caused by a null cert.
* Refactor EncryptingCredentials so null/empty checks are moved
to setters
Resolves: #995
See also: #734
/// Users can override the default <see cref="CryptoProviderFactory"/> with this property. This factory will be used for creating encryition providers.
120
+
/// Users can override the default <see cref="CryptoProviderFactory"/> with this property. This factory will be used for creating encryption providers.
Copy file name to clipboardexpand all lines: src/Microsoft.IdentityModel.Tokens/LogMessages.cs
+1
Original file line number
Diff line number
Diff line change
@@ -178,6 +178,7 @@ internal static class LogMessages
178
178
publicconststringIDX10701="IDX10701: Invalid JsonWebKey rsa keying material: '{0}'. Both modulus and exponent should be present";
179
179
publicconststringIDX10702="IDX10702: One or more private RSA key parts are null in the JsonWebKey: '{0}'";
180
180
publicconststringIDX10703="IDX10703: Cannot create symmetric security key. Key length is zero.";
181
+
publicconststringIDX10704="IDX10704: The SecurityKey provided is not a SymmetricSecurityKey.";
181
182
182
183
// Json specific errors
183
184
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.";
0 commit comments