| java.lang.Object de.anomic.data.userDB
userDB | final public class userDB (Code) | | |
Inner Class :public class Entry | |
Inner Class :public class userIterator implements Iterator<Entry> | |
Constructor Summary | |
public | userDB(File userTableFile, long preloadTime) |
Method Summary | |
public String | addEntry(Entry entry) | public void | adminLogout(String logintoken) | public void | close() | public boolean | cookieAdminAuth(String cookieString) | public Entry | cookieAuth(String cookieString) | public Entry | createEntry(String userName, HashMap<String, String> userProps) | public String | getAdminCookie() | public String | getCookie(Entry entry) | public Entry | getEntry(String userName) | public static String | getLoginToken(String cookies) | public Entry | getUser(httpHeader header) | public Entry | getUser(String auth, String ip, String cookies) | public boolean | hasAdminRight(String auth, String ip, String cookies) determinate, if a user has Adminrights from a authorisation http-headerfield
it tests both userDB and oldstyle adminpw. | public Entry | ipAuth(String ip) | public Iterator<Entry> | iterator(boolean up) | public Entry | md5Auth(String user, String md5) | public Entry | passwordAuth(String user, String password) | public Entry | passwordAuth(String user, String password, String ip) | public Entry | proxyAuth(String auth) | public Entry | proxyAuth(String auth, String ip) | public void | removeEntry(String hostName) | void | resetDatabase() | public int | size() |
USERNAME_MAX_LENGTH | final public static int USERNAME_MAX_LENGTH(Code) | | |
USERNAME_MIN_LENGTH | final public static int USERNAME_MIN_LENGTH(Code) | | |
userDB | public userDB(File userTableFile, long preloadTime)(Code) | | |
close | public void close()(Code) | | |
cookieAdminAuth | public boolean cookieAdminAuth(String cookieString)(Code) | | |
cookieAuth | public Entry cookieAuth(String cookieString)(Code) | | |
hasAdminRight | public boolean hasAdminRight(String auth, String ip, String cookies)(Code) | | determinate, if a user has Adminrights from a authorisation http-headerfield
it tests both userDB and oldstyle adminpw.
Parameters: auth - the http-headerline for authorisation |
ipAuth | public Entry ipAuth(String ip)(Code) | | authenticate a user by ip, if he had used proxyAuth in the last 10 Minutes
Parameters: ip - the IP of the User |
proxyAuth | public Entry proxyAuth(String auth)(Code) | | use a ProxyAuth String to authenticate a user
Parameters: auth - a base64 Encoded String, which contains "username:pw". |
proxyAuth | public Entry proxyAuth(String auth, String ip)(Code) | | use a ProxyAuth String to authenticate a user and save the ip/username for ipAuth
Parameters: auth - a base64 Encoded String, which contains "username:pw". Parameters: ip - an ip. |
resetDatabase | void resetDatabase()(Code) | | |
|
|