|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.dataengine.security.http.GenericSignOn | +--planetj.dataengine.security.http.DBCommonConnectionPoolSignOn
Verifies signon information by trying to connect to the database. The connection is only used to verify the signon; the actual application data access is done with one of the connections in the connection pool which is probably associated with a different userid.
Field Summary |
Fields inherited from interface planetj.dataengine.security.http.ISignOn |
GLOBAL_SIGNON_KEY_OPERATION_ID, GLOBAL_SIGNON_KEY_SYSTEM_ALIAS, TIMEOUT_SECONDS |
Constructor Summary | |
DBCommonConnectionPoolSignOn()
JDBCConnectionPoolSignon constructor comment. |
Method Summary | |
boolean |
isAlreadySignedOn(String userId,
ISecured secured,
javax.servlet.http.HttpServletRequest request)
Check if user has already signed on to secured application. |
void |
prepareForSignOn(ISecured secured,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
If any subclasses need to do anything special before sign on, they can override this method and call it accordingly. |
void |
signOff(String pUserId,
ISecured pSecuredApp,
javax.servlet.http.HttpServletRequest pReq)
Signs the user off of the secured application. |
boolean |
signOn(String pUserId,
String pPassword,
ISecured pSecuredApplication,
javax.servlet.http.HttpServletRequest pReq)
Signs on to an Application.. |
Methods inherited from class planetj.dataengine.security.http.GenericSignOn |
getFailureMessage, getMaximumSignOnFailures, getSignOnURI, isAdditionalSignOnRequired, isUserPromptRequired, processSignOnAttemptsExhausted, sessionExpired, updateProperties |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DBCommonConnectionPoolSignOn()
Method Detail |
public boolean isAlreadySignedOn(String userId, ISecured secured, javax.servlet.http.HttpServletRequest request) throws CMException
isAlreadySignedOn
in interface ISignOn
isAlreadySignedOn
in class GenericSignOn
userId
- Id of user signing in.secured
- Secured application signing in to.request
- The http request
CMException
public void prepareForSignOn(ISecured secured, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws CMException
GenericSignOn
prepareForSignOn
in interface ISignOn
prepareForSignOn
in class GenericSignOn
CMException
public void signOff(String pUserId, ISecured pSecuredApp, javax.servlet.http.HttpServletRequest pReq) throws CMException
signOff
in interface ISignOn
signOff
in class GenericSignOn
CMException
public boolean signOn(String pUserId, String pPassword, ISecured pSecuredApplication, javax.servlet.http.HttpServletRequest pReq) throws CMException
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.
pUserId
- The user id identifying the user signing on to the applicationpPassword
- The password for signing on to the applicationpReq
- The HttpServletRequest representing the http request of the user. Additional sign on
information can be stored as attributes in the request.pSecuredApplication
- The Secured Application object representing the application which is being signed on to.
CMException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |