From e50b587d600f14320fe5915b821b6efd246dbf2a Mon Sep 17 00:00:00 2001 From: Adrien be Date: Tue, 8 Oct 2013 16:37:31 +0200 Subject: [PATCH] SEC-2360: AbstractRememberMeServices provide message for Assert on key fieldd --- .../authentication/rememberme/AbstractRememberMeServices.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/main/java/org/springframework/security/web/authentication/rememberme/AbstractRememberMeServices.java b/web/src/main/java/org/springframework/security/web/authentication/rememberme/AbstractRememberMeServices.java index 5dd1d3745d..2087c06924 100644 --- a/web/src/main/java/org/springframework/security/web/authentication/rememberme/AbstractRememberMeServices.java +++ b/web/src/main/java/org/springframework/security/web/authentication/rememberme/AbstractRememberMeServices.java @@ -81,7 +81,7 @@ public abstract class AbstractRememberMeServices implements RememberMeServices, } public void afterPropertiesSet() throws Exception { - Assert.hasLength(key); + Assert.hasLength(key, "key cannot be empty or null"); Assert.notNull(userDetailsService, "A UserDetailsService is required"); }