planetj.dataengine.security.http
Class UserListSignOn
java.lang.Object
|
+--planetj.dataengine.security.http.GenericSignOn
|
+--planetj.dataengine.security.http.UserListSignOn
- All Implemented Interfaces:
- ISignOn, Serializable
- public class UserListSignOn
- extends GenericSignOn
- See Also:
- Serialized Form
Method Summary |
String |
getUniqueId(String userid,
ISecured secured,
javax.servlet.http.HttpServletRequest req)
Gets an id for this userid and secured entity which uniquely identifies this signon attempt. |
void |
prepareForSignOnOLD(ISecured secured,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
boolean |
signOn(String user,
String password,
ISecured secured,
javax.servlet.http.HttpServletRequest request)
Signs on to a Secured Application. |
Methods inherited from class planetj.dataengine.security.http.GenericSignOn |
getFailureMessage, getMaximumSignOnFailures, getSignOnURI, isAdditionalSignOnRequired, isAlreadySignedOn, isUserPromptRequired, prepareForSignOn, processSignOnAttemptsExhausted, sessionExpired, signOff, updateProperties |
CLASS_KEY
public static final String CLASS_KEY
- See Also:
- Constant Field Values
UserListSignOn
public UserListSignOn()
getUniqueId
public String getUniqueId(String userid,
ISecured secured,
javax.servlet.http.HttpServletRequest req)
throws CMException
- Gets an id for this userid and secured entity which uniquely identifies this signon attempt. After a
succesful signon with this ID occurs, if the same browser session attempts a signon with the same info,
signon will occur automatically.
- Parameters:
userid
- The user id used for signing onsecured
- The secured entity being signed onto
CMException
prepareForSignOnOLD
public void prepareForSignOnOLD(ISecured secured,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws CMException
CMException
signOn
public boolean signOn(String user,
String password,
ISecured secured,
javax.servlet.http.HttpServletRequest request)
throws CMException
- Description copied from interface:
ISignOn
- Signs on to a Secured Application. This method is only invoked if the user has not already signed on.
As part of a successful sign on, a
SignOnReceipt
object should be created and
stored in the session using the
setSignOnReceipt()
method.
In addition, this method should initialize any connection pools that will be used by the secured application.
- Parameters:
user
- The user id identifying the user signing on to the application. If the
isUserPromptRequired()
method returned
false, then pUserId
will be nullpassword
- The password for signing on to the application. If the
isUserPromptRequired()
method returned
false, then pPassword
will be nullsecured
- The Secured Application object representing the application which is being signed on to.request
- The HttpServletRequest representing the http request of the user. Additional sign on
information can be stored as attributes in the request
- Returns:
- If the sign on was successful true should be returned. A return value of false or a thrown
CMException indicates that the sign on failed.
CMException