Class PasswordChecker
- java.lang.Object
-
- com.aoindustries.aoserv.client.password.PasswordChecker
-
public final class PasswordChecker extends Object
Performs password checking for all password protected services.- Author:
- AO Industries, Inc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPasswordChecker.PasswordStrengthstatic classPasswordChecker.Result
-
Field Summary
Fields Modifier and Type Field Description static intNUM_CATEGORIES
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<PasswordChecker.Result>checkPassword(User.Name username, String password, PasswordChecker.PasswordStrength strength)static List<PasswordChecker.Result>getAllGoodResults()static StringgetResultsHtml(List<PasswordChecker.Result> results, boolean isXhtml)Gets the results in HTML format.static StringgetResultsString(List<PasswordChecker.Result> results)Gets the results as a String.static booleanhasResults(List<PasswordChecker.Result> results)static intindexOfIgnoreCase(String string, byte[] buffer, int wordstart, int wordlen)static voidprintResults(List<PasswordChecker.Result> results, Appendable out)Prints the results.static voidprintResultsHtml(List<PasswordChecker.Result> results, Appendable out, boolean isXhtml)Prints the results in HTML format.static StringyearOf(int year)
-
-
-
Method Detail
-
getAllGoodResults
public static List<PasswordChecker.Result> getAllGoodResults()
-
checkPassword
public static List<PasswordChecker.Result> checkPassword(User.Name username, String password, PasswordChecker.PasswordStrength strength) throws IOException
- Throws:
IOException
-
hasResults
public static boolean hasResults(List<PasswordChecker.Result> results)
-
indexOfIgnoreCase
public static int indexOfIgnoreCase(String string, byte[] buffer, int wordstart, int wordlen)
-
yearOf
public static String yearOf(int year)
-
printResults
public static void printResults(List<PasswordChecker.Result> results, Appendable out) throws IOException
Prints the results.- Throws:
IOException
-
printResultsHtml
public static void printResultsHtml(List<PasswordChecker.Result> results, Appendable out, boolean isXhtml) throws IOException
Prints the results in HTML format.- Throws:
IOException
-
getResultsHtml
public static String getResultsHtml(List<PasswordChecker.Result> results, boolean isXhtml) throws IOException
Gets the results in HTML format.- Throws:
IOException
-
getResultsString
public static String getResultsString(List<PasswordChecker.Result> results)
Gets the results as a String.
-
-