Skip to content

Add new factory method for creating DelegatingPasswordEncoder #4670

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

Conversation

kazuki43zoo
Copy link
Contributor

@kazuki43zoo kazuki43zoo commented Oct 22, 2017

See gh-4666

I will propose to add new factory method that can specify the id of an encoder for encoding password.
What do you think?

@rwinch
Copy link
Member

rwinch commented Oct 22, 2017

@kazuki43zoo This solution poses a problem because the user does not have a reference to existing id's so they would have to read the code to enable it. I'm not even sure if this is a good approach overall. If users want more flexibility, they can create an instances using DelegatingPasswordEncoder directly.

We could discuss some alternative builder possibilities, but at the moment I'm not convinced we should add them since using DelegatingPasswordEncoder directly is an option.

@rwinch rwinch closed this Oct 22, 2017
@rwinch rwinch self-assigned this Oct 22, 2017
@rwinch rwinch added status: declined A suggestion or change that we don't feel we should currently apply in: crypto An issue in spring-security-crypto labels Oct 22, 2017
@kazuki43zoo kazuki43zoo deleted the gh-4666-add-factory-method branch October 22, 2017 21:56
@kazuki43zoo
Copy link
Contributor Author

@rwinch Thanks for your comment. I agree with your opinion.
Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: crypto An issue in spring-security-crypto status: declined A suggestion or change that we don't feel we should currently apply
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants