Repository: cxf Updated Branches: refs/heads/3.0.x-fixes 41b67a545 -> 3fb7debb0
[CXF-6558] Minor update Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/3fb7debb Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/3fb7debb Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/3fb7debb Branch: refs/heads/3.0.x-fixes Commit: 3fb7debb0a4cc8ba4f1599481c892a0c3745f067 Parents: 41b67a5 Author: Sergey Beryozkin <[email protected]> Authored: Wed Aug 26 11:35:34 2015 +0100 Committer: Sergey Beryozkin <[email protected]> Committed: Wed Aug 26 11:36:41 2015 +0100 ---------------------------------------------------------------------- .../oauth2/provider/DefaultEncryptingOAuthDataProvider.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/3fb7debb/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/provider/DefaultEncryptingOAuthDataProvider.java ---------------------------------------------------------------------- diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/provider/DefaultEncryptingOAuthDataProvider.java b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/provider/DefaultEncryptingOAuthDataProvider.java index 5c00892..eae9120 100644 --- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/provider/DefaultEncryptingOAuthDataProvider.java +++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/provider/DefaultEncryptingOAuthDataProvider.java @@ -30,6 +30,7 @@ import javax.crypto.SecretKey; import org.apache.cxf.rs.security.oauth2.common.Client; import org.apache.cxf.rs.security.oauth2.common.ServerAccessToken; import org.apache.cxf.rs.security.oauth2.tokens.refresh.RefreshToken; +import org.apache.cxf.rs.security.oauth2.utils.OAuthConstants; import org.apache.cxf.rs.security.oauth2.utils.crypto.ModelEncryptionSupport; import org.apache.cxf.rt.security.crypto.CryptoUtils; import org.apache.cxf.rt.security.crypto.KeyProperties; @@ -80,7 +81,7 @@ public class DefaultEncryptingOAuthDataProvider extends AbstractOAuthDataProvide try { return ModelEncryptionSupport.decryptAccessToken(this, accessToken, key); } catch (SecurityException ex) { - throw new OAuthServiceException(ex); + throw new OAuthServiceException(OAuthConstants.ACCESS_DENIED, ex); } }
