com.atlassian.crowd.util
Interface PasswordHelper


public interface PasswordHelper


Method Summary
 java.lang.String generateRandomPassword()
           
 boolean validateRegex(java.lang.String regex, PasswordCredential credential)
          Validates a credential against a particular regular expression.
 

Method Detail

validateRegex

boolean validateRegex(java.lang.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

java.lang.String generateRandomPassword()
Returns:
password consisting of a random permutation of letters and numbers, based on the output of a cryptographically secure PRNG.


Copyright © 2012 Atlassian. All Rights Reserved.