mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-25 21:42:17 +00:00
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.acegisecurity.AcegiSecurityException;
|
||||||
import org.apache.commons.codec.binary.Base64;
|
import org.apache.commons.codec.binary.Base64;
|
||||||
import org.apache.commons.lang.Validate;
|
|
||||||
import org.springframework.util.Assert;
|
import org.springframework.util.Assert;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -148,7 +147,7 @@ public class EncryptionUtils {
|
|||||||
|
|
||||||
private static void isValidKey(String key) {
|
private static void isValidKey(String key) {
|
||||||
Assert.hasText(key, "A key to perform the encryption is required");
|
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 {
|
public static class EncryptionException extends AcegiSecurityException {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user