cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1528005 - in /cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/security: JAASAuthenticationFilter.java SimpleAuthorizingFilter.java
Date Tue, 01 Oct 2013 09:38:51 GMT
Author: sergeyb
Date: Tue Oct  1 09:38:50 2013
New Revision: 1528005

URL: http://svn.apache.org/r1528005
Log:
Attaching standard Priority value to jaxrs security filters

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/security/JAASAuthenticationFilter.java
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/security/SimpleAuthorizingFilter.java

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/security/JAASAuthenticationFilter.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/security/JAASAuthenticationFilter.java?rev=1528005&r1=1528004&r2=1528005&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/security/JAASAuthenticationFilter.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/security/JAASAuthenticationFilter.java
Tue Oct  1 09:38:50 2013
@@ -22,8 +22,10 @@ import java.net.URI;
 import java.util.Arrays;
 import java.util.List;
 
+import javax.annotation.Priority;
 import javax.security.auth.callback.CallbackHandler;
 import javax.security.auth.login.Configuration;
+import javax.ws.rs.Priorities;
 import javax.ws.rs.container.ContainerRequestContext;
 import javax.ws.rs.container.ContainerRequestFilter;
 import javax.ws.rs.container.PreMatching;
@@ -43,6 +45,7 @@ import org.apache.cxf.jaxrs.utils.JAXRSU
 import org.apache.cxf.message.Message;
 
 @PreMatching
+@Priority(Priorities.AUTHENTICATION)
 public class JAASAuthenticationFilter implements ContainerRequestFilter {
 
     private static final List<MediaType> HTML_MEDIA_TYPES = 

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/security/SimpleAuthorizingFilter.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/security/SimpleAuthorizingFilter.java?rev=1528005&r1=1528004&r2=1528005&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/security/SimpleAuthorizingFilter.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/security/SimpleAuthorizingFilter.java
Tue Oct  1 09:38:50 2013
@@ -18,6 +18,8 @@
  */
 package org.apache.cxf.jaxrs.security;
 
+import javax.annotation.Priority;
+import javax.ws.rs.Priorities;
 import javax.ws.rs.container.ContainerRequestContext;
 import javax.ws.rs.container.ContainerRequestFilter;
 import javax.ws.rs.core.Response;
@@ -26,6 +28,7 @@ import org.apache.cxf.interceptor.securi
 import org.apache.cxf.interceptor.security.AccessDeniedException;
 import org.apache.cxf.jaxrs.utils.JAXRSUtils;
 
+@Priority(Priorities.AUTHORIZATION)
 public class SimpleAuthorizingFilter implements ContainerRequestFilter {
 
     private AbstractAuthorizingInInterceptor interceptor;



Mime
View raw message