Remove unused code
diff --git a/java/org/apache/catalina/tribes/group/interceptors/EncryptInterceptor.java b/java/org/apache/catalina/tribes/group/interceptors/EncryptInterceptor.java
index 65d9933..d98b5d8 100644
--- a/java/org/apache/catalina/tribes/group/interceptors/EncryptInterceptor.java
+++ b/java/org/apache/catalina/tribes/group/interceptors/EncryptInterceptor.java
@@ -349,9 +349,6 @@
return new BaseEncryptionManager(algorithm,
new SecretKeySpec(encryptionKey, algorithmName),
providerName);
-// else if("ECB".equalsIgnoreCase(algorithmMode)) {
- // Note: ECB is not an appropriate mode for secure communications.
-// return new ECBEncryptionManager(algorithm, new SecretKeySpec(encryptionKey, algorithmName), providerName);
else
throw new IllegalArgumentException(sm.getString("encryptInterceptor.algorithm.unsupported-mode", algorithmMode));
}
@@ -601,32 +598,6 @@
}
}
- @SuppressWarnings("unused")
- private static class ECBEncryptionManager extends BaseEncryptionManager
- {
- public ECBEncryptionManager(String algorithm, SecretKeySpec secretKey, String providerName)
- throws NoSuchAlgorithmException, NoSuchPaddingException, NoSuchProviderException {
- super(algorithm, secretKey, providerName);
- }
-
- private static final byte[] EMPTY_IV = new byte[0];
-
- @Override
- protected int getIVSize() {
- return 0;
- }
-
- @Override
- protected byte[] generateIVBytes() {
- return EMPTY_IV;
- }
-
- @Override
- protected AlgorithmParameterSpec generateIV(byte[] bytes, int offset, int length) {
- return null;
- }
- }
-
static class ChannelConfigException
extends ChannelException
{