SEC-377: Remove Commons Lang dependency.

This commit is contained in:
Ben Alex 2006-10-14 00:17:19 +00:00
parent c89582652a
commit 172026f875
1 changed files with 1 additions and 2 deletions

View File

@ -25,7 +25,6 @@ import javax.crypto.spec.DESedeKeySpec;
import org.acegisecurity.AcegiSecurityException;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.lang.Validate;
import org.springframework.util.Assert;
/**
@ -148,7 +147,7 @@ public class EncryptionUtils {
private static void isValidKey(String key) {
Assert.hasText(key, "A key to perform the encryption is required");
Validate.isTrue(key.length() >= 24, "Key must be at least 24 characters long");
Assert.isTrue(key.length() >= 24, "Key must be at least 24 characters long");
}
public static class EncryptionException extends AcegiSecurityException {