cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1311716 - /cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/security/JAASAuthenticationFilter.java
Date Tue, 10 Apr 2012 13:30:39 GMT
Author: sergeyb
Date: Tue Apr 10 13:30:38 2012
New Revision: 1311716

URL: http://svn.apache.org/viewvc?rev=1311716&view=rev
Log:
Minor update to JAASAuthenticationFilter to convert SecurityException to 401

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/security/JAASAuthenticationFilter.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=1311716&r1=1311715&r2=1311716&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 Apr 10 13:30:38 2012
@@ -86,10 +86,12 @@ public class JAASAuthenticationFilter im
             return null;
         } catch (AuthenticationException ex) {
             return handleAuthenticationException(ex, m);
+        } catch (SecurityException ex) {
+            return handleAuthenticationException(ex, m);
         }
     }
 
-    protected Response handleAuthenticationException(AuthenticationException ex, Message
m) {
+    protected Response handleAuthenticationException(SecurityException ex, Message m) {
         HttpHeaders headers = new HttpHeadersImpl(m);
         if (redirectURI != null && isRedirectPossible(headers)) {
             



Mime
View raw message