com.atlassian.crowd.util
Interface PasswordHelper


public interface PasswordHelper


Method Summary
 String generateRandomPassword()
           
 boolean validateRegex(String regex, com.atlassian.crowd.embedded.api.PasswordCredential credential)
          Validates a credential against a particular regular expression.
 

Method Detail

validateRegex

boolean validateRegex(String regex,
                      com.atlassian.crowd.embedded.api.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 © 2014 Atlassian. All Rights Reserved.