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 <[email protected]> Authored: Wed Nov 11 14:38:59 2015 +0000 Committer: Sergey Beryozkin <[email protected]> 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; } }
