Hi All,
I'm trying to use the SimpleAuthorizingFilter with my JAXRS application
that uses CXF libs. I'm using the SecuredObject mechanism
to retrieve allowed roles.
However during the runtime, the method,
AbstractAuthorizingInInterceptor#getTargetMethod(Message m)
unable to resolve to target method.
during the execution, both 'bop' and 'method' variables resolves to null ...
*BindingOperationInfo bop = m.getExchange().get(BindingOperationInfo.class);
*
* if (bop != null) {*
* MethodDispatcher md = (MethodDispatcher) *
*
m.getExchange().get(Service.class).get(MethodDispatcher.class.getName());*
* return md.getMethod(bop);*
* } *
* Method method = (Method)m.get("org.apache.cxf.resource.method");*
I believe in the above code we are trying to find the target method that is
going to get invoked in-order to do authorization.
Why my application does not resolve the target method ? Am i missing some
trivial step ?
Who is setting the '*"org.apache.cxf.resource.method"*' property in the
message ?
Appreciate your suggestions/answers..
thanks,
--Pradeep