}
protected final boolean validate(Password passwd, DigestAlgorithmParameter[] params) throws NoSuchAlgorithmException {
for (int i = 0; i < params.length; i++) {
DigestAlgorithmParameter dap = params[i];
if (A1.equals(dap.getName()) && (dap instanceof Key)) {
key = dap;
} else if (RESPONSE.equals(dap.getName())) {
clientResponse = dap;
} else {
data = dap;
}
}