cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: [CXF-6317] Updating authorizing interceptors to use unique ids bby default
Date Thu, 02 Apr 2015 11:43:23 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes 8634da69f -> 2643707b3


[CXF-6317] Updating authorizing interceptors to use unique ids bby default


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/2643707b
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/2643707b
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/2643707b

Branch: refs/heads/3.0.x-fixes
Commit: 2643707b3d7826e60596adcc2af625b89a22398d
Parents: 8634da6
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Thu Apr 2 12:40:37 2015 +0100
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Thu Apr 2 12:43:04 2015 +0100

----------------------------------------------------------------------
 .../security/AbstractAuthorizingInInterceptor.java            | 6 ++++--
 .../interceptor/security/SecureAnnotationsInterceptor.java    | 7 +++++++
 .../interceptor/security/SimpleAuthorizingInterceptor.java    | 7 +++++++
 3 files changed, 18 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/2643707b/core/src/main/java/org/apache/cxf/interceptor/security/AbstractAuthorizingInInterceptor.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/cxf/interceptor/security/AbstractAuthorizingInInterceptor.java
b/core/src/main/java/org/apache/cxf/interceptor/security/AbstractAuthorizingInInterceptor.java
index d4f22f1..640edff 100644
--- a/core/src/main/java/org/apache/cxf/interceptor/security/AbstractAuthorizingInInterceptor.java
+++ b/core/src/main/java/org/apache/cxf/interceptor/security/AbstractAuthorizingInInterceptor.java
@@ -41,9 +41,11 @@ public abstract class AbstractAuthorizingInInterceptor extends AbstractPhaseInte
     private boolean allowAnonymousUsers = true;
     
     public AbstractAuthorizingInInterceptor() {
-        super(Phase.PRE_INVOKE);
+        this(true);
+    }
+    public AbstractAuthorizingInInterceptor(boolean uniqueId) {
+        super(null, Phase.PRE_INVOKE, uniqueId);
     }
-    
     public void handleMessage(Message message) throws Fault {
         Method method = getTargetMethod(message);
         SecurityContext sc = message.get(SecurityContext.class);

http://git-wip-us.apache.org/repos/asf/cxf/blob/2643707b/core/src/main/java/org/apache/cxf/interceptor/security/SecureAnnotationsInterceptor.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/cxf/interceptor/security/SecureAnnotationsInterceptor.java
b/core/src/main/java/org/apache/cxf/interceptor/security/SecureAnnotationsInterceptor.java
index f7cba43..00e3277 100644
--- a/core/src/main/java/org/apache/cxf/interceptor/security/SecureAnnotationsInterceptor.java
+++ b/core/src/main/java/org/apache/cxf/interceptor/security/SecureAnnotationsInterceptor.java
@@ -48,6 +48,13 @@ public class SecureAnnotationsInterceptor extends SimpleAuthorizingInterceptor
{
     
     private String annotationClassName = DEFAULT_ANNOTATION_CLASS_NAME;
     
+    public SecureAnnotationsInterceptor() {
+        this(true);
+    }
+    public SecureAnnotationsInterceptor(boolean uniqueId) {
+        super(uniqueId);
+    }
+    
     public void setAnnotationClassName(String name) {
         try {
             ClassLoaderUtils.loadClass(name, SecureAnnotationsInterceptor.class);

http://git-wip-us.apache.org/repos/asf/cxf/blob/2643707b/core/src/main/java/org/apache/cxf/interceptor/security/SimpleAuthorizingInterceptor.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/cxf/interceptor/security/SimpleAuthorizingInterceptor.java
b/core/src/main/java/org/apache/cxf/interceptor/security/SimpleAuthorizingInterceptor.java
index b6c3c33..a3e6079 100644
--- a/core/src/main/java/org/apache/cxf/interceptor/security/SimpleAuthorizingInterceptor.java
+++ b/core/src/main/java/org/apache/cxf/interceptor/security/SimpleAuthorizingInterceptor.java
@@ -36,6 +36,13 @@ public class SimpleAuthorizingInterceptor extends AbstractAuthorizingInIntercept
     protected List<String> globalRoles = Collections.emptyList();
     private boolean checkConfiguredRolesOnly;
     
+    public SimpleAuthorizingInterceptor() {
+        this(true);
+    }
+    public SimpleAuthorizingInterceptor(boolean uniqueId) {
+        super(uniqueId);
+    }
+    
     @Override 
     protected boolean isUserInRole(SecurityContext sc, List<String> roles, boolean
deny) {
         if (!checkConfiguredRolesOnly && !super.isUserInRole(sc, roles, deny)) {


Mime
View raw message