File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
crypto/src/main/java/org/springframework/security/crypto/password Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 19
19
import java .util .HashMap ;
20
20
import java .util .Map ;
21
21
22
- import org .springframework .util .StringUtils ;
23
-
24
22
/**
25
23
* A password encoder that delegates to another PasswordEncoder based upon a prefixed
26
24
* identifier.
@@ -292,7 +290,7 @@ public String encode(CharSequence rawPassword) {
292
290
@ Override
293
291
public boolean matches (CharSequence rawPassword , String prefixEncodedPassword ) {
294
292
String id = extractId (prefixEncodedPassword );
295
- if (StringUtils . hasText ( id )) {
293
+ if (id != null && ! id . isEmpty ( )) {
296
294
throw new IllegalArgumentException (String .format (NO_PASSWORD_ENCODER_MAPPED , id ));
297
295
}
298
296
throw new IllegalArgumentException (NO_PASSWORD_ENCODER_PREFIX );
You can’t perform that action at this time.
0 commit comments