|
SAP NetWeaver 7.20 (SP01) 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. |
void |
forceLogoffUser(HttpServletRequest req,
HttpServletResponse resp,
String url)
Does the same as method logout. |
IUser |
getLoggedInUser()
Checks whether the user is currently logged in and returns an implementation of IUser. |
IUser |
getLoggedInUser(HttpServletRequest req,
HttpServletResponse resp)
Returns the authenticated user. |
void |
logout(HttpServletRequest req,
HttpServletResponse resp)
Loggs off the current user. |
| Methods inherited from interface com.sap.security.api.IConfigurable |
|---|
initialize |
| Method Detail |
|---|
IUser forceLoggedInUser(HttpServletRequest req,
HttpServletResponse resp)
Checks whether the user is currently logged in. If he's not, the method returns null and performs authentication with the login module stack of the current application. If the authentication is successful, the method returns implementation of IUser, otherwise the returned response depends on the login modules which are in the stack.
Example:
IUser uid = forceLoggedInUser(req,res); if (uid == null) return;
req - HttpServletRequestresp - HttpServletResponse
null otherwise.IUser getLoggedInUser()
IUser getLoggedInUser(HttpServletRequest req,
HttpServletResponse resp)
req - as HttpServletRequestresp - as HttpServletResponse
void logout(HttpServletRequest req,
HttpServletResponse resp)
req - HttpServletRequestresp - HttpServletResponse
void forceLogoffUser(HttpServletRequest req,
HttpServletResponse resp,
String url)
Example:
forceLogoffUser(req, res, returnURL);
req - HttpServletRequestresp - HttpServletResponseurl - URL to use to log on again.| Access Rights |
|---|
| SC | DC |
|---|---|
[sap.com] ENGINEAPI
|
[sap.com] com.sap.security.api.sda
|
[sap.com] ENGFACADE
|
[sap.com] tc/je/usermanagement/api
|
[sap.com] CORE-TOOLS
|
[sap.com] com.sap.engine.client.lib
|
|
SAP NetWeaver 7.20 (SP01) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||