Skip to content

Commit cae4dfa

Browse files
committed
Revert error type.
1 parent 603b36d commit cae4dfa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Microsoft.IdentityModel.Tokens/Validation/Results/Details/ValidationError.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ internal Exception CreateException(Type exceptionType, Exception? innerException
161161
exception = new SecurityTokenInvalidIssuerException(MessageDetail.Message, innerException);
162162
else if (exceptionType == typeof(SecurityTokenSignatureKeyNotFoundException))
163163
exception = new SecurityTokenSignatureKeyNotFoundException(MessageDetail.Message, innerException);
164-
else if (exceptionType == typeof(SecurityTokenEncryptionKeyNotFoundException))
165-
exception = new SecurityTokenEncryptionKeyNotFoundException(MessageDetail.Message, innerException);
164+
else if (exceptionType == typeof(SecurityTokenDecryptionFailedException))
165+
exception = new SecurityTokenDecryptionFailedException(MessageDetail.Message, innerException);
166166
else if (exceptionType == typeof(SecurityTokenMalformedException))
167167
exception = new SecurityTokenMalformedException(MessageDetail.Message, innerException);
168168
else if (exceptionType == typeof(SecurityTokenInvalidSignatureException))

0 commit comments

Comments
 (0)