com.atlassian.crowd.util
Class PasswordHelperImpl

java.lang.Object
  extended by com.atlassian.crowd.util.PasswordHelperImpl
All Implemented Interfaces:
PasswordHelper

public class PasswordHelperImpl
extends java.lang.Object
implements PasswordHelper

Various password helper methods.


Constructor Summary
PasswordHelperImpl()
           
 
Method Summary
 java.lang.String generateRandomPassword()
           
 boolean validateRegex(java.lang.String regex, PasswordCredential credential)
          Validates the password meets the expected regex restriction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PasswordHelperImpl

public PasswordHelperImpl()
Method Detail

validateRegex

public boolean validateRegex(java.lang.String regex,
                             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 java.lang.String generateRandomPassword()
Specified by:
generateRandomPassword in interface PasswordHelper


Copyright © 2012 Atlassian. All Rights Reserved.