|
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 ILogonAuthentication
Extension from IAuthentication that provides more powerful authentication services.
This interface is used only in portal authentication framework.
| Method Summary | |
|---|---|
IAuthScheme |
getAuthScheme(String authschemeName)
Returns auth scheme by its name if available |
IAuthScheme[] |
getAuthSchemes()
Returns the available auth schemes. |
ILogonFrontend |
getLogonFrontend(String authSchemeName)
Returns the LogonFrontend for the auth scheme. |
boolean |
isAuthenticated(IUser user)
Deprecated. |
boolean |
isAuthSchemeSufficient(IUser user,
String authscheme)
Checks if the current logged in user has satisfied the autscheme with name
authscheme. |
Subject |
logon(HttpServletRequest req,
HttpServletResponse resp,
String authscheme)
Function that is intended for programmatic logon. |
| Methods inherited from interface com.sap.security.api.IAuthentication |
|---|
forceLoggedInUser, forceLogoffUser, getLoggedInUser, getLoggedInUser, logout |
| Methods inherited from interface com.sap.security.api.IConfigurable |
|---|
initialize |
| Method Detail |
|---|
Subject logon(HttpServletRequest req,
HttpServletResponse resp,
String authscheme)
throws LoginException
IAuthentication.forceLoggedInUser(HttpServletRequest,HttpServletResponse ).
The function follows
the specific syntax: The parameter authscheme determines which
logon variant will be used, e.g. which authentication mechanism will be used.
On successful return (i.e. if no exception is being thrown)
a Subject is returned. In order to get an
IUser object from this subject, call
Subject.getPrincipals() and
iterate through the returned Set of principals.For error situations please see the below list of possible exceptions.
req - HttpServletRequestresp - HttpServletResponseauthscheme - The name of the authscheme to perform logon.
null otherwise.
LoginException - if the logon fails. The message of the exception is the
key for the error message.
boolean isAuthSchemeSufficient(IUser user,
String authscheme)
authscheme.
user - object returned by IAuthentication.getLoggedInUser().authscheme - authscheme to be satisfied
true if yes, false if not.ILogonFrontend getLogonFrontend(String authSchemeName)
authSchemeName - name of the auth scheme
nullIAuthScheme[] getAuthSchemes()
IAuthScheme getAuthScheme(String authschemeName)
boolean isAuthenticated(IUser user)
IUser
object is result of an authentication process.
user - user to check.
true if authenticated, otherwise false.| 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 | |||||||||