Browse Source

SEC-377: Remove Commons Lang dependency.

Ben Alex 19 years ago
parent
commit
172026f875
1 changed files with 1 additions and 2 deletions
  1. 1 2
      core/src/main/java/org/acegisecurity/util/EncryptionUtils.java

+ 1 - 2
core/src/main/java/org/acegisecurity/util/EncryptionUtils.java

@@ -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 {