org.cloudfoundry.identity.uaa.password
Class ZxcvbnPasswordScoreCalculator
java.lang.Object
org.cloudfoundry.identity.uaa.password.ZxcvbnPasswordScoreCalculator
- All Implemented Interfaces:
- PasswordScoreCalculator
public class ZxcvbnPasswordScoreCalculator
- extends Object
- implements PasswordScoreCalculator
A PasswordScoreCalculator that uses the Zxcvbn scala library to compute the strength of a given password.
Uses a configurable 'requiredScore' property to flag a password as (un)acceptable.
- Author:
- vidya
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZxcvbnPasswordScoreCalculator
public ZxcvbnPasswordScoreCalculator(int requiredScore)
computeScore
public PasswordScore computeScore(String password,
String... userData)
- Specified by:
computeScore in interface PasswordScoreCalculator
- Parameters:
password - the trial passworduserData - user-specific data which should not be in the password.
- Returns:
- the score computed for the password
Copyright © 2013. All rights reserved.