public class PasswordPolicyToolkit
extends com.liferay.portal.kernel.security.pwd.BasicToolkit
Constructor and Description |
---|
PasswordPolicyToolkit() |
Modifier and Type | Method and Description |
---|---|
String |
generate(com.liferay.portal.kernel.model.PasswordPolicy passwordPolicy) |
protected String |
generateDynamic(com.liferay.portal.kernel.model.PasswordPolicy passwordPolicy) |
protected String |
generateStatic(com.liferay.portal.kernel.model.PasswordPolicy passwordPolicy) |
protected String |
getRandomString(int count,
char[] chars) |
protected char[] |
getSortedCharArray(String s) |
protected int |
getUsageCount(String s,
char[] chars) |
void |
validate(long userId,
String password1,
String password2,
com.liferay.portal.kernel.model.PasswordPolicy passwordPolicy) |
public String generate(com.liferay.portal.kernel.model.PasswordPolicy passwordPolicy)
generate
in interface com.liferay.portal.kernel.security.pwd.Toolkit
generate
in class com.liferay.portal.kernel.security.pwd.BasicToolkit
public void validate(long userId, String password1, String password2, com.liferay.portal.kernel.model.PasswordPolicy passwordPolicy) throws com.liferay.portal.kernel.exception.PortalException
validate
in interface com.liferay.portal.kernel.security.pwd.Toolkit
validate
in class com.liferay.portal.kernel.security.pwd.BasicToolkit
com.liferay.portal.kernel.exception.PortalException
protected String generateDynamic(com.liferay.portal.kernel.model.PasswordPolicy passwordPolicy)
protected String generateStatic(com.liferay.portal.kernel.model.PasswordPolicy passwordPolicy)
protected String getRandomString(int count, char[] chars)
protected char[] getSortedCharArray(String s)
protected int getUsageCount(String s, char[] chars)