9596979899100101102103104105
realm.setDigest(digest); realm.start(); realm.addUser(USER1, digestedPassword); Principal p = realm.authenticate(USER1, password); Assert.assertNotNull(p); Assert.assertEquals(USER1, p.getName()); }
9293949596979899100101102
949596979899100101102103104
realm.setCredentialHandler(ch); realm.start(); realm.addUser(USER1, digestedPassword); Principal p = realm.authenticate(USER1, password); Assert.assertNotNull(p); Assert.assertEquals(USER1, p.getName()); }