/** * Match the Client Response value with a generated digest based on the password * * @param digest * @param password * @return * @throws FormatException */ public static boolean matchCredential(Digest digest, char[] password) { return clientResponseValue(digest, password).equalsIgnoreCase(digest.getClientResponse()); }