mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-22 12:02:14 +00:00
Typo in Base64StringKeyGenerator exception message
Signed-off-by: James Howe <675056+OrangeDog@users.noreply.github.com>
This commit is contained in:
parent
f93a7a2f85
commit
8d7f6acab6
@ -68,7 +68,7 @@ public class Base64StringKeyGenerator implements StringKeyGenerator {
|
|||||||
throw new IllegalArgumentException("encode cannot be null");
|
throw new IllegalArgumentException("encode cannot be null");
|
||||||
}
|
}
|
||||||
if (keyLength < DEFAULT_KEY_LENGTH) {
|
if (keyLength < DEFAULT_KEY_LENGTH) {
|
||||||
throw new IllegalArgumentException("keyLength must be greater than or equal to" + DEFAULT_KEY_LENGTH);
|
throw new IllegalArgumentException("keyLength must be greater than or equal to " + DEFAULT_KEY_LENGTH);
|
||||||
}
|
}
|
||||||
this.encoder = encoder;
|
this.encoder = encoder;
|
||||||
this.keyGenerator = KeyGenerators.secureRandom(keyLength);
|
this.keyGenerator = KeyGenerators.secureRandom(keyLength);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user