|
|||||||||||
| 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.SQLOperationSignOn
| Field Summary | |
static String |
CLASS_KEY
|
static String |
PRIMARY_SIGNON_RESULTS
|
| Fields inherited from interface planetj.dataengine.security.http.ISignOn |
GLOBAL_SIGNON_KEY_OPERATION_ID, GLOBAL_SIGNON_KEY_SYSTEM_ALIAS, TIMEOUT_SECONDS |
| Constructor Summary | |
SQLOperationSignOn()
|
|
| Method Summary | |
String |
getFailureMessage(String userid,
ISecured secured,
javax.servlet.http.HttpServletRequest req)
Gets the message to display when a sign on fails |
int |
getMaximumSignOnFailures(String pUserId,
ISecured pSecuredApp,
javax.servlet.http.HttpServletRequest pReq)
Gets the maximum number of consecutive signon failures a user is allowed. |
String |
getSignOnURI(ISecured secured,
javax.servlet.http.HttpServletRequest request)
Get the URI to call for signing on to the secured object. |
boolean |
isAdditionalSignOnRequired(String user,
String password,
ISecured secured,
javax.servlet.http.HttpServletRequest req)
Tests if an additional signon step is necessary. |
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 |
processSignOnAttemptsExhausted(ISecured secured,
DataEngineServlet servlet,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
This method is invoked when the user has failed the signon the maximum allowable times. |
void |
signOff(String userId,
ISecured secured,
javax.servlet.http.HttpServletRequest request)
Signs the user off of the secured application. |
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 |
isUserPromptRequired, sessionExpired, updateProperties |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String PRIMARY_SIGNON_RESULTS
public static final String CLASS_KEY
| Constructor Detail |
public SQLOperationSignOn()
| Method Detail |
public String getFailureMessage(String userid,
ISecured secured,
javax.servlet.http.HttpServletRequest req)
throws CMException
getFailureMessage in interface ISignOngetFailureMessage in class GenericSignOnCMException
public int getMaximumSignOnFailures(String pUserId,
ISecured pSecuredApp,
javax.servlet.http.HttpServletRequest pReq)
throws CMException
getMaximumSignOnFailures in interface ISignOngetMaximumSignOnFailures in class GenericSignOnCMException
public String getSignOnURI(ISecured secured,
javax.servlet.http.HttpServletRequest request)
throws CMException
ISignOn
getSignOnURI in interface ISignOngetSignOnURI in class GenericSignOnsecured - ISecured object being signed intorequest - HttpServletRequest
CMException
public boolean isAdditionalSignOnRequired(String user,
String password,
ISecured secured,
javax.servlet.http.HttpServletRequest req)
throws CMException
isAdditionalSignOnRequired in interface ISignOnisAdditionalSignOnRequired in class GenericSignOnCMException
public boolean isAlreadySignedOn(String userId,
ISecured secured,
javax.servlet.http.HttpServletRequest request)
throws CMException
isAlreadySignedOn in interface ISignOnisAlreadySignedOn in class GenericSignOnuserId - 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 ISignOnprepareForSignOn in class GenericSignOnCMException
public void processSignOnAttemptsExhausted(ISecured secured,
DataEngineServlet servlet,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws IOException,
javax.servlet.ServletException,
CMException
processSignOnAttemptsExhausted in interface ISignOnprocessSignOnAttemptsExhausted in class GenericSignOnIOException
javax.servlet.ServletException
CMException
public void signOff(String userId,
ISecured secured,
javax.servlet.http.HttpServletRequest request)
throws CMException
signOff in interface ISignOnsignOff in class GenericSignOnCMException
public boolean signOn(String user,
String password,
ISecured secured,
javax.servlet.http.HttpServletRequest request)
throws CMException
ISignOnSignOnReceipt object should be created and
stored in the session using the
setSignOnReceipt()
method.
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
CMException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||