public interface HttpAuth
Modifier and Type | Method and Description |
---|---|
Principal |
checkUser(String user,
String passwd,
String clientAddr)
This method gets the parameters necessary for checking if the user is allowed to connect to the server.
|
default void |
logoutRedirect(HttpServletRequest req,
HttpServletResponse res)
This method can be used to overwrite the logout redirect.
|
void |
sendLoginRequest(HttpServletRequest req,
HttpServletResponse res)
This method is called by the server, when authorization is required and
the client must be requested for login information.
|
void sendLoginRequest(HttpServletRequest req, HttpServletResponse res) throws Exception
req
- the HTTP Requestres
- the HTTP Response, where the HTML-page must be written to.Exception
Principal checkUser(String user, String passwd, String clientAddr) throws Exception
user
- a string determining the id of the user who wants to get connectedpasswd
- the password of the userclientAddr
- the ip-address of the client from which the user wants to connectException
default void logoutRedirect(HttpServletRequest req, HttpServletResponse res) throws Exception
req
- the HTTP Requestres
- the HTTP Response, where the redirect is sent toException
@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.