Repository: cxf Updated Branches: refs/heads/master 3b302262c -> a32bb0bc9
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/a32bb0bc Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/a32bb0bc Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/a32bb0bc Branch: refs/heads/master Commit: a32bb0bc9538a74e6d9236287da9180c1f8ab3a7 Parents: 3b30226 Author: Sergey Beryozkin <[email protected]> Authored: Wed Nov 11 14:38:59 2015 +0000 Committer: Sergey Beryozkin <[email protected]> Committed: Wed Nov 11 14:38:59 2015 +0000 ---------------------------------------------------------------------- .../security/oauth2/provider/AbstractOAuthJoseJwtConsumer.java | 6 ------ 1 file changed, 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/a32bb0bc/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; } }
