Class PasswordChecker
java.lang.Object
com.aoindustries.aoserv.client.password.PasswordChecker
Performs password checking for all password protected
services.
- Author:
- AO Industries, Inc.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static class
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List
<PasswordChecker.Result> checkPassword
(User.Name username, String password, PasswordChecker.PasswordStrength strength) static List
<PasswordChecker.Result> static String
getResultsHtml
(List<PasswordChecker.Result> results, boolean isXhtml) Gets the results in HTML format.static String
getResultsString
(List<PasswordChecker.Result> results) Gets the results as a String.static boolean
hasResults
(List<PasswordChecker.Result> results) static int
indexOfIgnoreCase
(String string, byte[] buffer, int wordstart, int wordlen) static void
printResults
(List<PasswordChecker.Result> results, Appendable out) Prints the results.static void
printResultsHtml
(List<PasswordChecker.Result> results, Appendable out, boolean isXhtml) Prints the results in HTML format.static String
yearOf
(int year)
-
Field Details
-
NUM_CATEGORIES
public static final int NUM_CATEGORIES
-
-
Method Details
-
getAllGoodResults
-
checkPassword
public static List<PasswordChecker.Result> checkPassword(User.Name username, String password, PasswordChecker.PasswordStrength strength) throws IOException - Throws:
IOException
-
hasResults
-
indexOfIgnoreCase
-
yearOf
-
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
Gets the results as a String.
-