SEC-643: Fix to allow namespace configuration without remember-me authentication.

This commit is contained in:
Luke Taylor 2008-01-22 18:32:18 +00:00
parent 7854e36029
commit b9561cc4e0
1 changed files with 6 additions and 1 deletions

View File

@ -66,7 +66,12 @@ public class HttpSecurityConfigPostProcessor implements BeanFactoryPostProcessor
RememberMeServices rememberMeServices = null;
if (beans.size() > 0) {
if(beans.size() == 0) {
logger.debug("No RememberMeServices configured");
return;
}
if (beans.size() == 1) {
rememberMeServices = (RememberMeServices) beans.values().toArray()[0];
} else {
throw new SecurityConfigurationException("More than one RememberMeServices bean found.");