
com.payneteasy.superfly.password.AbstractPasswordEncoder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of superfly-service Show documentation
Show all versions of superfly-service Show documentation
Service layer classes, including DAO layer too
package com.payneteasy.superfly.password;
/**
* Password encoder base.
*
* @author Roman Puchkovskiy
*/
public abstract class AbstractPasswordEncoder implements PasswordEncoder {
protected String mergePasswordAndSalt(String plainPassword, String salt) {
if (salt == null || salt.length() == 0) {
return plainPassword;
} else {
return plainPassword + "{" + salt + "}";
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy