Repository: cxf Updated Branches: refs/heads/3.0.x-fixes 946270c56 -> 5fdeaa495
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/5fdeaa49 Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/5fdeaa49 Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/5fdeaa49 Branch: refs/heads/3.0.x-fixes Commit: 5fdeaa4959fe4e1f8b175f25128b5e68da90a2c5 Parents: 946270c Author: Sergey Beryozkin <[email protected]> Authored: Wed Nov 11 14:38:59 2015 +0000 Committer: Sergey Beryozkin <[email protected]> Committed: Wed Nov 11 14:40:44 2015 +0000 ---------------------------------------------------------------------- .../security/oauth2/provider/AbstractOAuthJoseJwtConsumer.java | 6 ------ 1 file changed, 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/5fdeaa49/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; } }
