if( index < -1 ) {
return askForAuthorization( request, response );
}
auth = auth.substring( index + 1 );
BASE64Decoder decoder = new BASE64Decoder();
auth = new String( decoder.decodeBuffer( auth ) );
String[] credentials = auth.split(":");
try {
if( !users.containsKey( credentials[0]) || !isPasswordVerified( credentials ) ) {
log.severe( "Access denied for user " + credentials[0] );
return askForAuthorization( request, response );