|
SAP NetWeaver 7.1 Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IAuthentication
This interface retrieves the user information of currently logged-in user.
Please see also ILogonAuthentication
| Method Summary | |
|---|---|
IUser |
forceLoggedInUser(HttpServletRequest req,
HttpServletResponse resp)
Checks whether the user is currently logged in and returns an implementation of IUser |
void |
forceLogoffUser(HttpServletRequest req,
HttpServletResponse resp,
String url)
Logoff user by invalidate the user session and deleting the authentication cookies. |
IUser |
getLoggedInUser()
Checks whether the user is currently logged in and returns an implementation of IUser. |
IUser |
getLoggedInUser(HttpServletRequest req,
HttpServletResponse resp)
Deprecated. Use getLoggedInUser() instead. |
void |
logout(HttpServletRequest req,
HttpServletResponse resp)
Logouts current user. |
| Methods inherited from interface com.sap.security.api.IConfigurable |
|---|
initialize |
| Method Detail |
|---|
IUser forceLoggedInUser(HttpServletRequest req,
HttpServletResponse resp)
If the user is not yet logged in, a respective logon page is written as
ServletResponse. In that case (i.e. null is returned) the calling
servlet can simply end their doGet or doPost method with return.
Example:
IUser uid = forceLoggedInUser(req,res); if (uid == null) return;
req - HttpServletRequestresp - HttpServletResponse
null otherwise.IUser getLoggedInUser()
IUser getLoggedInUser(HttpServletRequest req,
HttpServletResponse resp)
null is returned.
req - HttpServletRequestresp - HttpServletResponse
null otherwise.
void logout(HttpServletRequest req,
HttpServletResponse resp)
Some cookies will be deleted in the HttpServletResponse.
req - HttpServletRequestresp - HttpServletResponse
void forceLogoffUser(HttpServletRequest req,
HttpServletResponse resp,
String url)
The user will also be sent to a logoff page which acknowledges that a logoff has taken place with a link for the user to logon again.
Example:
forceLogoffUser(req, res, returnURL);
req - HttpServletRequestresp - HttpServletResponseurl - url to use to logon again.
|
SAP NetWeaver 7.1 Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||