2728293031323334
@Test public void testDigestAuthenticator() { Authorization ah = new Authorization(rfc2617); String res = new DigestAuthenticator().calculateResponse(ah, "Circle Of Life", "GET"); assertEquals("6629fae49393a05397450978507c4ef1", res); }
124125126127128129130
} } public String getCalculatedResponse(String password, String method) { return new DigestAuthenticator().calculateResponse(this, password, method); }