Class PasswordEncoderFactories

java.lang.Object
com.maker.passwordmaker.PasswordEncoderFactories

public final class PasswordEncoderFactories extends Object
A utility class that provides a factory method for creating a delegating password encoder. The delegating password encoder can encode passwords using various encoding strategies. The encoding strategy used is determined by the encodingId parameter.
Since:
2024. 6. 3.
Author:
yongjunhong
  • Method Details

    • createDelegatingPasswordEncoder

      public static org.springframework.security.crypto.password.PasswordEncoder createDelegatingPasswordEncoder(String encodingId)
      Creates a delegating password encoder with the encoding strategy specified by the encodingId parameter. The created encoder can handle passwords encoded with various strategies, including "bcrypt", "pbkdf2@SpringSecurity_v5_8", "scrypt@SpringSecurity_v5_8", and "argon2@SpringSecurity_v5_8".
      Parameters:
      encodingId - the encoding strategy to use for the created password encoder
      Returns:
      a delegating password encoder that uses the specified encoding strategy