Author: sergeyb
Date: Fri Jan 24 15:46:47 2014
New Revision: 1561042
URL: http://svn.apache.org/r1561042
Log:
[CXF-5417] Replacing Runtime exceptions with OAuth2 ones
Modified:
cxf/trunk/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/ModelEncryptionSupport.java
Modified:
cxf/trunk/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/ModelEncryptionSupport.java
URL:
http://svn.apache.org/viewvc/cxf/trunk/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/ModelEncryptionSupport.java?rev=1561042&r1=1561041&r2=1561042&view=diff
==============================================================================
---
cxf/trunk/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/ModelEncryptionSupport.java
(original)
+++
cxf/trunk/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/ModelEncryptionSupport.java
Fri Jan 24 15:46:47 2014
@@ -141,7 +141,7 @@ public final class ModelEncryptionSuppor
String decryptedSequence =
EncryptionUtils.decryptSequence(encodedData, secretKey, props);
return recreateAccessToken(provider, encodedData,
decryptedSequence);
} catch (Exception ex) {
- throw new RuntimeException(ex);
+ throw new OAuthServiceException(ex);
}
}
@@ -173,7 +173,7 @@ public final class ModelEncryptionSuppor
String decryptedSequence =
EncryptionUtils.decryptSequence(encodedData, key, props);
return recreateRefreshToken(provider, encodedData,
decryptedSequence);
} catch (Exception ex) {
- throw new RuntimeException(ex);
+ throw new OAuthServiceException(ex);
}
}
@@ -205,7 +205,7 @@ public final class ModelEncryptionSuppor
String decryptedSequence =
EncryptionUtils.decryptSequence(encodedData, key, props);
return recreateCodeGrant(provider, decryptedSequence);
} catch (Exception ex) {
- throw new RuntimeException(ex);
+ throw new OAuthServiceException(ex);
}
}