return null;
}
if (!request.getClientInfo().isAuthenticated()) {
return null;
}
final ChallengeScheme authScheme = challengeResponse.getScheme();
if (authScheme == null) {
return null;
}
if (authScheme.equals(ChallengeScheme.HTTP_BASIC)) {
return SecurityContext.BASIC_AUTH;
}
if (authScheme.equals(ChallengeScheme.HTTP_DIGEST)) {
return SecurityContext.DIGEST_AUTH;
}
// if (authScheme.equals(ChallengeScheme.HTTPS_CLIENT_CERT))
// return SecurityContext.CLIENT_CERT_AUTH;
// if (authScheme.equals(ChallengeScheme.HTTP_SERVLET_FORM))
// return SecurityContext.FORM_AUTH;
return authScheme.getName();
}