-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace SpringUtils in DelegatingPasswordEncoder.UnmappedIdPasswordEncoder #16442
Comments
I found that in KeyStoreKeyFactory not only |
You are right, So after replacing |
@ChristianHoesel thanks for reaching out!
I can understand wanting to reduce/remove its use in the
Would you like to submit a PR? We're happy to look at improving this situation since the crypto module definitely has many uses such as yours. |
Removes the use of `org.springframework.util.StringUtils` from `DelegatingPasswordEncoder` Closes spring-projectsgh-16442 Signed-off-by: Christian Hösel <[email protected]>
Removes the use of `org.springframework.util.StringUtils` from `DelegatingPasswordEncoder` Closes spring-projectsgh-16442 Signed-off-by: Christian Hösel <[email protected]>
Expected Behavior
The class
org.springframework.security.crypto.password.DelegatingPasswordEncoder.UnmappedIdPasswordEncoder
should not useorg.springframework.util.StringUtils
to allow usage in non Spring environments.Current Behavior
org.springframework:spring-core
has to be within my dependencies to use theDelegatingPasswordEncoder
and it's only used in one methodespring-security/crypto/src/main/java/org/springframework/security/crypto/password/DelegatingPasswordEncoder.java
Line 298 in d3332e1
Right now the dependency to
org.springframework:spring-core
is optional and for the usage of the mostPasswordEncoder
implementations not necessary.The Usage of
StringUtils
can easily be replaced.Context
I am having an Eclipse RCP (OSGi) project, where I want to use the
DelegatingPasswordEncoder
right away without addingorg.springframework:spring-core
to my dependencies.The text was updated successfully, but these errors were encountered: