planetj.processes.logon
Class SignOnAndRegistrationSignOn
java.lang.Object
planetj.dataengine.security.http.GenericSignOn
planetj.processes.logon.SignOnAndRegistrationSignOn
- All Implemented Interfaces:
- ISignOn, java.io.Serializable
- public class SignOnAndRegistrationSignOn
- extends GenericSignOn
This signOn class will verify the user and password exist in PlanetJ.Admin or whatever table is specified in ISecuredSignOnAndRegistraiton
Creation date: (7/1/2002 4:10:36 PM)
- See Also:
- Serialized Form
Method Summary |
void |
prepareForSignOn(ISecured secured,
HttpServletRequest request,
HttpServletResponse response)
If any subclasses need to do anything special before sign on, they can override
this method and call it accordingly. |
boolean |
signOn(java.lang.String pUserId,
java.lang.String pPassword,
ISecured pSecuredApplication,
HttpServletRequest pReq)
Signs on to an Application.. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SignOnAndRegistrationSignOn
public SignOnAndRegistrationSignOn()
prepareForSignOn
public void prepareForSignOn(ISecured secured,
HttpServletRequest request,
HttpServletResponse response)
throws CMException
- Description copied from class:
GenericSignOn
- If any subclasses need to do anything special before sign on, they can override
this method and call it accordingly.
- Specified by:
prepareForSignOn
in interface ISignOn
- Overrides:
prepareForSignOn
in class GenericSignOn
- Throws:
CMException
signOn
public boolean signOn(java.lang.String pUserId,
java.lang.String pPassword,
ISecured pSecuredApplication,
HttpServletRequest pReq)
throws CMException
- Signs on to an Application.. This method is only invoked if the user has not already signed on.
As part of the sign on process, 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 application.
- Parameters:
pUserId
- The user id identifying the user signing on to the applicationpPassword
- The password for signing on to the applicationpSecuredApplication
- The Secured Application object representing the application which is being signed on to.pReq
- The HttpServletRequest representing the http request of the user. Additional sign on
information can be stored as attributes in the request.
This SignOn object supports the following sign on attributes in the request:
- TIMEOUT_SECONDS - An Integer specifying the number of seconds for which the sign on is valid
- 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.
- Throws:
CMException