String calculateServerDigest(String password, String httpMethod) { // Compute the expected response-digest (will be in hex form) // Don't catch IllegalArgumentException (already checked validity) return DigestAuthUtils.generateDigest( DigestAuthenticationFilter.this.passwordAlreadyEncoded, this.username, this.realm, password, httpMethod, this.uri, this.qop, this.nonce, this.nc, this.cnonce); }