|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface to implement to become an iManager Authenticator. You would write your own authenticator if you still wanted to write com.novell.emframe.dev.Task plug-ins but needed to provide an alternate authentication mechanism for a back-end service other than eDirectory.
Field Summary | |
static java.lang.String |
IMGR_AUTH_HASHMAP
IMGR_AUTH_HASHMAP = "AuthMap". |
static java.lang.String |
IMGR_AUTH_KEYROOT
IMGR_AUTH_KEYROOT = "Auth.". |
Method Summary | |
void |
destroy()
Called when an authenticator is released from a session. |
java.lang.Object |
getAttribute(java.lang.Object key)
Get an attribute that has been added to the authenticator's AuthContext (Hashtable) object. |
AuthContext |
getAuthContext()
Returns the AuthContext object that was passed in to the Authenticator's init method. |
void |
init(java.lang.String sName,
AuthContext ac)
Called when the authenticator is loaded so it can initialize itself. |
boolean |
isAuthenticated()
Returns whether authentication has successfully occurred. |
boolean |
login(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Login using information available in the HttpServletRequest. |
boolean |
login(java.lang.String sUser,
java.lang.String sPwd,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Login using the specified user and password. |
void |
logout(javax.servlet.http.HttpServletRequest req)
Called by the framework when it determines that the authenticator must logout. |
void |
setAttribute(java.lang.Object key,
java.lang.Object value)
Sets an attribute in the authenticator's AuthContext (Hashtable) object. |
Field Detail |
public static final java.lang.String IMGR_AUTH_HASHMAP
public static final java.lang.String IMGR_AUTH_KEYROOT
Method Detail |
public void destroy()
logout(javax.servlet.http.HttpServletRequest)
public java.lang.Object getAttribute(java.lang.Object key)
key
- Object key to retrieve the value. This is the key that was set
when the attribute was added.
setAttribute(java.lang.Object, java.lang.Object)
public AuthContext getAuthContext()
init(java.lang.String, com.novell.emframe.dev.authenticator.AuthContext)
public void init(java.lang.String sName, AuthContext ac)
sName
- String containing the profile name (if the authenticator supports multiple profiles)ac
- AuthContext object used to hold instance specific data for an instance of an AuthenticatorgetAuthContext()
public boolean isAuthenticated()
public boolean login(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
req
- The HttpServletRequest objectres
- The HttpServletResponse object
public boolean login(java.lang.String sUser, java.lang.String sPwd, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
sUser
- String containing the user name or Id to be logged insPwd
- String containing the password to use to log inreq
- The HttpServletRequest objectres
- The HttpServletResponse object
public void logout(javax.servlet.http.HttpServletRequest req)
req
- The current HttpServletRequest (if any) when the logout occurs.destroy()
public void setAttribute(java.lang.Object key, java.lang.Object value)
key
- Object key to use to identify the objectvalue
- Object to save in the HashtablegetAttribute(java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |