Return-Path: Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: (qmail 52423 invoked from network); 7 Dec 2010 23:02:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Dec 2010 23:02:20 -0000 Received: (qmail 35612 invoked by uid 500); 7 Dec 2010 23:02:19 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 35569 invoked by uid 500); 7 Dec 2010 23:02:19 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 35562 invoked by uid 99); 7 Dec 2010 23:02:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Dec 2010 23:02:19 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Dec 2010 23:02:19 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id E82A623889B1; Tue, 7 Dec 2010 23:01:58 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1043226 - in /cxf/branches/2.3.x-fixes: ./ rt/core/src/main/java/org/apache/cxf/interceptor/security/ rt/core/src/test/java/org/apache/cxf/interceptor/security/ Date: Tue, 07 Dec 2010 23:01:58 -0000 To: commits@cxf.apache.org From: sergeyb@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101207230158.E82A623889B1@eris.apache.org> Author: sergeyb Date: Tue Dec 7 23:01:58 2010 New Revision: 1043226 URL: http://svn.apache.org/viewvc?rev=1043226&view=rev Log: Merged revisions 1043225 via svnmerge from https://svn.apache.org/repos/asf/cxf/trunk ........ r1043225 | sergeyb | 2010-12-07 22:55:18 +0000 (Tue, 07 Dec 2010) | 1 line [CXF-3172] Adding SecureAnnotationsInterceptor ........ Added: cxf/branches/2.3.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/security/SecureAnnotationsInterceptor.java - copied unchanged from r1043225, cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/security/SecureAnnotationsInterceptor.java cxf/branches/2.3.x-fixes/rt/core/src/test/java/org/apache/cxf/interceptor/security/SecureAnnotationsInterceptorTest.java - copied unchanged from r1043225, cxf/trunk/rt/core/src/test/java/org/apache/cxf/interceptor/security/SecureAnnotationsInterceptorTest.java Modified: cxf/branches/2.3.x-fixes/ (props changed) cxf/branches/2.3.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/security/AbstractAuthorizingInInterceptor.java Propchange: cxf/branches/2.3.x-fixes/ ------------------------------------------------------------------------------ --- svn:mergeinfo (original) +++ svn:mergeinfo Tue Dec 7 23:01:58 2010 @@ -1 +1 @@ -/cxf/trunk:1041183,1041790,1041993,1042346,1042571,1042724,1042805,1042821 +/cxf/trunk:1041183,1041790,1041993,1042346,1042571,1042724,1042805,1042821,1043225 Propchange: cxf/branches/2.3.x-fixes/ ------------------------------------------------------------------------------ Binary property 'svnmerge-integrated' - no diff available. Modified: cxf/branches/2.3.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/security/AbstractAuthorizingInInterceptor.java URL: http://svn.apache.org/viewvc/cxf/branches/2.3.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/security/AbstractAuthorizingInInterceptor.java?rev=1043226&r1=1043225&r2=1043226&view=diff ============================================================================== --- cxf/branches/2.3.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/security/AbstractAuthorizingInInterceptor.java (original) +++ cxf/branches/2.3.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/security/AbstractAuthorizingInInterceptor.java Tue Dec 7 23:01:58 2010 @@ -55,11 +55,18 @@ public abstract class AbstractAuthorizin throw new AccessDeniedException("Unauthorized"); } - private Method getTargetMethod(Message m) { + protected Method getTargetMethod(Message m) { BindingOperationInfo bop = m.getExchange().get(BindingOperationInfo.class); - MethodDispatcher md = (MethodDispatcher) - m.getExchange().get(Service.class).get(MethodDispatcher.class.getName()); - return md.getMethod(bop); + 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"); + if (method != null) { + return method; + } + throw new AccessDeniedException("Method is not available : Unauthorized"); } protected boolean authorize(SecurityContext sc, Method method) {