* @see #hasAccessToSecuredObject(Object)
*/
public boolean hasAccessToSecuredMethod(Object securedObject, String methodName, Class<?>... methodParameterTypes) {
try {
final Method method = securedObject.getClass().getMethod(methodName, methodParameterTypes);
final Secured secured = AnnotationUtils.findAnnotation(method, Secured.class);
Assert.notNull(secured, "securedObject did not have @Secured annotation");
return hasAccessToObject(securedObject, secured.value());
} catch (NoSuchMethodException ex) {
throw new IllegalArgumentException("Method " + methodName + " does not exist", ex);
}
}