digestAuth.sendChallenge(request, response);
if(defaultAuthMethod == BASIC_AUTH) basicAuth.sendChallenge(request, response); else digestAuth.sendChallenge(request, response);
	private User authenticate(HttpServletRequest request, HttpServletResponse response)	throws IOException {		String credentials = request.getHeader("Authorization");		if(credentials == null) {			digestAuth.sendChallenge(request, response);			return null;		}		if(credentials.toUpperCase().startsWith("DIGEST")) {			return digestAuth.authenticate(request, response);		} else {			LOG.debug("Falling back to basic authentication");			return basicAuth.authenticate(request, response);		}	}