com.atlassian.crowd.util
Class PasswordHelperImpl
java.lang.Object
com.atlassian.crowd.util.PasswordHelperImpl
- All Implemented Interfaces:
- PasswordHelper
public class PasswordHelperImpl
- extends Object
- implements PasswordHelper
Various password helper methods.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PasswordHelperImpl
public PasswordHelperImpl()
validateRegex
public boolean validateRegex(String regex,
com.atlassian.crowd.embedded.api.PasswordCredential credential)
- Validates the password meets the expected regex restriction.
- Specified by:
validateRegex in interface PasswordHelper
- Parameters:
regex - The regex pattern.credential - The password to check.
- Returns:
- true if the password is not blank/null and matches the given regex
generateRandomPassword
public String generateRandomPassword()
- Specified by:
generateRandomPassword in interface PasswordHelper
Copyright © 2014 Atlassian. All Rights Reserved.