org.cloudfoundry.identity.uaa.password
Class ZxcvbnPasswordValidator

java.lang.Object
  extended by org.cloudfoundry.identity.uaa.password.ZxcvbnPasswordValidator
All Implemented Interfaces:
PasswordValidator

public class ZxcvbnPasswordValidator
extends Object
implements PasswordValidator

A PasswordValidator that uses the Zxcvbn Scala library to validate passwords

Author:
vidya

Constructor Summary
ZxcvbnPasswordValidator()
           
 
Method Summary
 void setScoreCalculator(PasswordScoreCalculator scoreCalculator)
           
 void validate(String password, ScimUser user)
          Validates the password as to whether it is valid for a specific user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZxcvbnPasswordValidator

public ZxcvbnPasswordValidator()
Method Detail

setScoreCalculator

public void setScoreCalculator(PasswordScoreCalculator scoreCalculator)

validate

public void validate(String password,
                     ScimUser user)
Description copied from interface: PasswordValidator
Validates the password as to whether it is valid for a specific user.

Specified by:
validate in interface PasswordValidator
Parameters:
password - the trial password
user - the user data to whom the password applies


Copyright © 2013. All rights reserved.