Interface IPasswordCheck

  • All Known Implementing Classes:
    PasswordChecker

    public interface IPasswordCheck
    Password quality checker interface.

    Version:
    $Revision$, $Date$
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getReason​(java.lang.String pwd)
      Returns a reason if the password doesnt meet the quality requirement.
      boolean isGoodPassword​(java.lang.String pwd)
      Check if the password meets the quality requirement
    • Method Detail

      • isGoodPassword

        boolean isGoodPassword​(java.lang.String pwd)
        Check if the password meets the quality requirement
        Parameters:
        pwd - the given password
        Returns:
        true if the password meets the quality requirement; otherwise false
      • getReason

        java.lang.String getReason​(java.lang.String pwd)
        Returns a reason if the password doesnt meet the quality requirement.
        Parameters:
        pwd - the given password
        Returns:
        a reason if the password quality requirement is not met.