public class HttpAuth extends Object
| Constructor and Description |
|---|
HttpAuth()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
checkUser(String mimeline)
Deprecated.
With a given mimeline, the username and password will be retrieved, and with it
there will be looked if it is an valid login.
|
static String |
getAuthorization(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
String server,
String level)
Deprecated.
Authenticates a user, If the user cannot be authenticated a login-popup will appear
|
static String |
getRemoteUser(javax.servlet.http.HttpServletRequest req)
Deprecated.
getRemoteUser
|
static String |
getRemoteUser(PageInfo sp)
Deprecated.
getRemoteUser
|
static void |
setLocalCheckUrl(String url)
Deprecated.
Sets the url on which an authentication has to be checked.
|
public static String checkUser(String mimeline)
mimeline - The mimeline of the requestnull when something goes wrongpublic static String getAuthorization(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String server, String level) throws AuthorizationException, NotLoggedInException
server - server-account. (for exameple 'film' or 'www')level - loginlevel. (for example 'Basic' or 'MD5')AuthorizationException - if the authorization fails.NotLoggedInException - if the user hasn't logged in yet.public static String getRemoteUser(javax.servlet.http.HttpServletRequest req)
req - public static String getRemoteUser(PageInfo sp)
sp - public static void setLocalCheckUrl(String url)
url - MMBase 1.9-SNAPSHOT - ${javadoctimestamp}