cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: [CXF-6558] Minor update
Date Wed, 26 Aug 2015 10:37:01 GMT
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 <sberyozkin@gmail.com>
Authored: Wed Aug 26 11:35:34 2015 +0100
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
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);
         }
     }
 


Mime
View raw message