com.xlrit.gears.base.util.PasswordEncoderHolder Maven / Gradle / Ivy
package com.xlrit.gears.base.util;
import org.springframework.security.crypto.factory.PasswordEncoderFactories;
import org.springframework.security.crypto.password.PasswordEncoder;
public class PasswordEncoderHolder {
private PasswordEncoderHolder() {}
private static final PasswordEncoder instance = PasswordEncoderFactories.createDelegatingPasswordEncoder();
public static PasswordEncoder get() {
return instance;
}
}