org.cloudfoundry.identity.uaa.password
Class ZxcvbnPasswordScoreCalculator

java.lang.Object
  extended by 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

Constructor Summary
ZxcvbnPasswordScoreCalculator(int requiredScore)
           
 
Method Summary
 PasswordScore computeScore(String password, String... userData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZxcvbnPasswordScoreCalculator

public ZxcvbnPasswordScoreCalculator(int requiredScore)
Method Detail

computeScore

public PasswordScore computeScore(String password,
                                  String... userData)
Specified by:
computeScore in interface PasswordScoreCalculator
Parameters:
password - the trial password
userData - user-specific data which should not be in the password.
Returns:
the score computed for the password


Copyright © 2013. All rights reserved.