Skip to content

Commit d88c2c1

Browse files
ThomasVitalejzheaux
authored andcommitted
Throw exception that was created but not thrown
Fixes gh-5462
1 parent b252371 commit d88c2c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/main/java/org/springframework/security/web/authentication/www/DigestAuthenticationFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ void validateAndDecode(String entryPointKey, String expectedRealm)
431431
.md5Hex(this.nonceExpiryTime + ":" + entryPointKey);
432432

433433
if (!expectedNonceSignature.equals(nonceTokens[1])) {
434-
new BadCredentialsException(DigestAuthenticationFilter.this.messages
434+
throw new BadCredentialsException(DigestAuthenticationFilter.this.messages
435435
.getMessage("DigestAuthenticationFilter.nonceCompromised",
436436
new Object[] { nonceAsPlainText },
437437
"Nonce token compromised {0}"));

0 commit comments

Comments
 (0)