if((((String)header.get("CLIENTIP","")).equals("localhost"))&&(adminAccountBase64MD5.equals(authorization)))result=3;// soft-authenticated for localhost
// security check against too long authorization strings
if(authorization.length()>256)return0;
// authorization by encoded password, only for localhost access
if((((String)header.get("CLIENTIP","")).equals("localhost"))&&(adminAccountBase64MD5.equals(authorization)))return3;// soft-authenticated for localhost
// authorization by hit in userDB
if(userDB.hasAdminRight((String)header.get(httpHeader.AUTHORIZATION,"xxxxxx"),((String)header.get("CLIENTIP","")),header.getHeaderCookies()))return4;//return, because 4=max
tmp=staticAdminAuthenticated(authorization);
if(tmp>result)result=tmp;
returnresult;
// authorization with admin keyword in configuration