mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-01 09:42:13 +00:00
Throw exception that was created but not thrown
Fixes gh-5462
This commit is contained in:
parent
b252371de7
commit
d88c2c19f0
@ -431,7 +431,7 @@ public class DigestAuthenticationFilter extends GenericFilterBean
|
|||||||
.md5Hex(this.nonceExpiryTime + ":" + entryPointKey);
|
.md5Hex(this.nonceExpiryTime + ":" + entryPointKey);
|
||||||
|
|
||||||
if (!expectedNonceSignature.equals(nonceTokens[1])) {
|
if (!expectedNonceSignature.equals(nonceTokens[1])) {
|
||||||
new BadCredentialsException(DigestAuthenticationFilter.this.messages
|
throw new BadCredentialsException(DigestAuthenticationFilter.this.messages
|
||||||
.getMessage("DigestAuthenticationFilter.nonceCompromised",
|
.getMessage("DigestAuthenticationFilter.nonceCompromised",
|
||||||
new Object[] { nonceAsPlainText },
|
new Object[] { nonceAsPlainText },
|
||||||
"Nonce token compromised {0}"));
|
"Nonce token compromised {0}"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user