public boolean authorize(ComponentInvocation inv, Method m) throws Exception { Exception ie = null; if (inv instanceof EJBInvocation) { return ((EJBInvocation)inv).authorizeWebService(m); } return true; }
public boolean authorize(ComponentInvocation inv, Method m) throws Exception { Exception ie = null; if (inv instanceof EJBInvocation) { return ((EJBInvocation)inv).authorizeWebService(m); } return true; }
public boolean handleRequest(MessageContext context) { EJBInvocation inv = null; try { WebServiceContractImpl wscImpl = WebServiceContractImpl.getInstance(); InvocationManager invManager = wscImpl.getInvocationManager(); inv = (EJBInvocation) invManager.getCurrentInvocation(); Method method = wsUtil.getInvMethod( (com.sun.xml.rpc.spi.runtime.Tie)inv.getWebServiceTie(), context); inv.setWebServiceMethod(method); if ( !inv.authorizeWebService(method) ) { throw new Exception( format( rb.getString ("client.unauthorized") , method.toString())); } } catch(Exception e) { wsUtil.throwSOAPFaultException(e.getMessage(), context); } return true; }