cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: Removing the leftover code in OAuth2 jwt reader
Date Wed, 11 Nov 2015 14:40:20 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes 13eeb0716 -> 030fd7f4d


Removing the leftover code in OAuth2 jwt reader


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

Branch: refs/heads/3.1.x-fixes
Commit: 030fd7f4d1225e17d2cb91f58b9b8a2625bc5779
Parents: 13eeb07
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Wed Nov 11 14:38:59 2015 +0000
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Wed Nov 11 14:40:05 2015 +0000

----------------------------------------------------------------------
 .../security/oauth2/provider/AbstractOAuthJoseJwtConsumer.java | 6 ------
 1 file changed, 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/030fd7f4/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/provider/AbstractOAuthJoseJwtConsumer.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/provider/AbstractOAuthJoseJwtConsumer.java
b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/provider/AbstractOAuthJoseJwtConsumer.java
index b69d934..42a66de 100644
--- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/provider/AbstractOAuthJoseJwtConsumer.java
+++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/provider/AbstractOAuthJoseJwtConsumer.java
@@ -59,15 +59,9 @@ public abstract class AbstractOAuthJoseJwtConsumer extends AbstractJoseJwtConsum
     }
 
     public void setDecryptWithClientSecret(boolean decryptWithClientSecret) {
-        if (verifyWithClientSecret) {
-            throw new SecurityException();
-        }
         this.decryptWithClientSecret = verifyWithClientSecret;
     }
     public void setVerifyWithClientSecret(boolean verifyWithClientSecret) {
-        if (verifyWithClientSecret) {
-            throw new SecurityException();
-        }
         this.verifyWithClientSecret = verifyWithClientSecret;
     }
 }


Mime
View raw message