Throw exception that was created but not thrown

Fixes gh-5462
This commit is contained in:
Thomas Vitale 2019-03-10 19:54:27 +01:00 committed by Josh Cummings
parent b252371de7
commit d88c2c19f0
No known key found for this signature in database
GPG Key ID: 49EF60DD7FF83443

View File

@ -431,7 +431,7 @@ public class DigestAuthenticationFilter extends GenericFilterBean
.md5Hex(this.nonceExpiryTime + ":" + entryPointKey);
if (!expectedNonceSignature.equals(nonceTokens[1])) {
new BadCredentialsException(DigestAuthenticationFilter.this.messages
throw new BadCredentialsException(DigestAuthenticationFilter.this.messages
.getMessage("DigestAuthenticationFilter.nonceCompromised",
new Object[] { nonceAsPlainText },
"Nonce token compromised {0}"));