From 568211b77f7f8961aca546cb30f523568702a8be Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Mon, 21 Jan 2008 15:00:16 +0000 Subject: [PATCH] SEC-638: Fixed problem caused by using Spring 2.5.1 method from ReflectionUtils which isn't available in 2.0.6. --- .../security/providers/dao/salt/ReflectionSaltSource.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/springframework/security/providers/dao/salt/ReflectionSaltSource.java b/core/src/main/java/org/springframework/security/providers/dao/salt/ReflectionSaltSource.java index 75dcc887bf..365a099339 100644 --- a/core/src/main/java/org/springframework/security/providers/dao/salt/ReflectionSaltSource.java +++ b/core/src/main/java/org/springframework/security/providers/dao/salt/ReflectionSaltSource.java @@ -67,7 +67,7 @@ public class ReflectionSaltSource implements SaltSource, InitializingBean { public Object getSalt(UserDetails user) { Method saltMethod = findSaltMethod(user); - try { + try { return saltMethod.invoke(user, new Object[] {}); } catch (Exception exception) { throw new AuthenticationServiceException(exception.getMessage(), exception); @@ -75,7 +75,7 @@ public class ReflectionSaltSource implements SaltSource, InitializingBean { } private Method findSaltMethod(UserDetails user) { - Method saltMethod = ReflectionUtils.findMethod(user.getClass(), userPropertyToUse); + Method saltMethod = ReflectionUtils.findMethod(user.getClass(), userPropertyToUse, new Class[0]); if (saltMethod == null) { PropertyDescriptor pd = BeanUtils.getPropertyDescriptor(user.getClass(), userPropertyToUse);