logger.log(Level.FINE, "Realm in the message does not match with configured realm");
}
return null;
}
DigestCredentials creds = new DigestCredentials(realmName,
key.getUsername(), params);
LoginContextDriver.login(creds);
if (nc != null && nc.length() > 0) {
nextNonce = "00000001";
}
authInfoHeader = createAuthInfoHeader(request, nextNonce);
SecurityContext secCtx = SecurityContext.getCurrent();
return new WebPrincipal(creds.getUserName(), null, secCtx);
} catch (Exception le) {
logger.log(Level.SEVERE, "Digest Authentication failed", le);
//TODO: Log
}