Added check for multiple RememberMeServices beans.

This commit is contained in:
Luke Taylor 2007-12-23 00:18:14 +00:00
parent debfbe47cf
commit a38ed3cfde
1 changed files with 2 additions and 0 deletions

View File

@ -75,6 +75,8 @@ public class HttpSecurityConfigPostProcessor implements BeanFactoryPostProcessor
if (beans.size() > 0) {
rememberMeServices = (RememberMeServices) beans.values().toArray()[0];
} else {
throw new SecurityConfigurationException("More than one RememberMeServices bean found.");
}
// Address AbstractProcessingFilter instances