Преглед на файлове

Throw exception that was created but not thrown

Fixes gh-5462
Thomas Vitale преди 6 години
родител
ревизия
d88c2c19f0
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      web/src/main/java/org/springframework/security/web/authentication/www/DigestAuthenticationFilter.java

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

@@ -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}"));