SEC-377: Remove Commons Lang dependency.
This commit is contained in:
parent
c89582652a
commit
172026f875
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue