Hi Bradley,
please check this presentation in the user management functions of the SAP J2EE engine.
You will need to include the UME library (com.sap.security.api.sda)
You usethe functionsprovidedbytheUMFactory
There are twoavailablefunctions:
- getLoggedInUser()
- forceLoggedInUser()
UsegetLoggedInUser()toget an alreadylogged on user‘s ID.
Iftheuseris not yetlogged on, useforceLoggedInUser()to show the logonscreen.
IUseruser =
UMFactory.getAuthenticator().getLoggedInUser(request, response);
if (null == user) {
UMFactory.getAuthenticator().forceLoggedInUser(request, response);
return;
}
For WebDynpro, you can find an example here.
For a portal environment, you can find some info in the presentation mentioned above.
Kind regards,
Patrick