com.atlassian.crowd.util
Interface PasswordHelper
- All Known Implementing Classes:
- PasswordHelperImpl
public interface PasswordHelper
validateRegex
boolean validateRegex(String regex,
PasswordCredential credential)
- Validates a credential against a particular regular expression.
- Parameters:
regex
- regular expression.credential
- password credential.
- Returns:
true
iff the credential matches the regexp.
generateRandomPassword
String generateRandomPassword()
- Returns:
- password consisting of a random permutation of letters and numbers, based on
the output of a cryptographically secure PRNG.
Copyright © 2013 Atlassian. All Rights Reserved.