You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2016/06/22 09:14:42 UTC
commons-crypto git commit: Fix the name to make it clearer
Repository: commons-crypto
Updated Branches:
refs/heads/master bbc4aaa06 -> 169c76e9f
Fix the name to make it clearer
Project: http://git-wip-us.apache.org/repos/asf/commons-crypto/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-crypto/commit/169c76e9
Tree: http://git-wip-us.apache.org/repos/asf/commons-crypto/tree/169c76e9
Diff: http://git-wip-us.apache.org/repos/asf/commons-crypto/diff/169c76e9
Branch: refs/heads/master
Commit: 169c76e9f6c63adb4b92aec0c053e94c0ad248dc
Parents: bbc4aaa
Author: Sebb <se...@apache.org>
Authored: Wed Jun 22 10:14:38 2016 +0100
Committer: Sebb <se...@apache.org>
Committed: Wed Jun 22 10:14:38 2016 +0100
----------------------------------------------------------------------
.../java/org/apache/commons/crypto/cipher/CryptoCipherFactory.java | 2 +-
.../java/org/apache/commons/crypto/random/CryptoRandomFactory.java | 2 +-
src/main/java/org/apache/commons/crypto/utils/Utils.java | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/169c76e9/src/main/java/org/apache/commons/crypto/cipher/CryptoCipherFactory.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/crypto/cipher/CryptoCipherFactory.java b/src/main/java/org/apache/commons/crypto/cipher/CryptoCipherFactory.java
index 3509162..307c90a 100644
--- a/src/main/java/org/apache/commons/crypto/cipher/CryptoCipherFactory.java
+++ b/src/main/java/org/apache/commons/crypto/cipher/CryptoCipherFactory.java
@@ -69,7 +69,7 @@ public class CryptoCipherFactory {
if (cipher != null) {
return cipher;
- } else if (Utils.isFallbackEnable(props)) {
+ } else if (Utils.isFallbackEnabled(props)) {
return new JceCipher(props,transformation);
} else {
errorMessage.append(" is not available or transformation " +
http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/169c76e9/src/main/java/org/apache/commons/crypto/random/CryptoRandomFactory.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/crypto/random/CryptoRandomFactory.java b/src/main/java/org/apache/commons/crypto/random/CryptoRandomFactory.java
index a97a853..a9d0ce2 100644
--- a/src/main/java/org/apache/commons/crypto/random/CryptoRandomFactory.java
+++ b/src/main/java/org/apache/commons/crypto/random/CryptoRandomFactory.java
@@ -83,7 +83,7 @@ public class CryptoRandomFactory {
if (random != null) {
return random;
- } else if (Utils.isFallbackEnable(props)) {
+ } else if (Utils.isFallbackEnabled(props)) {
return new JavaCryptoRandom(props);
} else {
throw new GeneralSecurityException(errorMessage.toString());
http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/169c76e9/src/main/java/org/apache/commons/crypto/utils/Utils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/crypto/utils/Utils.java b/src/main/java/org/apache/commons/crypto/utils/Utils.java
index f1c43ad..8886377 100644
--- a/src/main/java/org/apache/commons/crypto/utils/Utils.java
+++ b/src/main/java/org/apache/commons/crypto/utils/Utils.java
@@ -379,7 +379,7 @@ public final class Utils {
* properties.
* @return true if Fallback is enabled when native failed.
*/
- public static boolean isFallbackEnable(Properties props) {
+ public static boolean isFallbackEnabled(Properties props) {
String enableFallback = props.getProperty(ConfigurationKeys.
COMMONS_CRYPTO_ENABLE_FALLBACK_ON_NATIVE_FAILED_KEY);
if (enableFallback == null || enableFallback.isEmpty()) {