|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanetj.dataengine.security.http.GenericSignOn
planetj.dataengine.security.http.SQLOperationSignOn
Field Summary | |
static java.lang.String |
CHECKED_ALREADY
|
static java.lang.String |
CLASS_KEY
|
static java.lang.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 | |
java.lang.String |
getFailureMessage(java.lang.String userid,
ISecured secured,
HttpServletRequest req)
Gets the message to display when a sign on fails |
int |
getMaximumSignOnFailures(java.lang.String pUserId,
ISecured pSecuredApp,
HttpServletRequest pReq)
Gets the maximum number of consecutive signon failures a user is allowed. |
protected Operation |
getSignOnOperation(Application app,
HttpServletRequest req)
Gets the current signon operation |
java.lang.String |
getSignOnURI(ISecured secured,
HttpServletRequest request)
Get the URI to call for signing on to the secured object. |
boolean |
isAdditionalSignOnRequired(java.lang.String user,
java.lang.String password,
ISecured secured,
HttpServletRequest req)
Tests if an additional signon step is necessary. |
boolean |
isAlreadySignedOn(java.lang.String userId,
ISecured secured,
HttpServletRequest request)
Check if user has already signed on to secured application. |
boolean |
isUserPromptRequired(ISecured pSecuredApplication,
HttpServletRequest pReq)
Tests if the user should be prompted for user id, password, etc when this class is used to sign on |
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. |
void |
processSignOnAttemptsExhausted(ISecured secured,
DataEngineServlet servlet,
HttpServletRequest req,
HttpServletResponse res)
This method is invoked when the user has failed the signon the maximum allowable times. |
void |
signOff(java.lang.String userId,
ISecured secured,
HttpServletRequest request)
Signs the user off of the secured application. |
boolean |
signOn(java.lang.String user,
java.lang.String password,
ISecured secured,
HttpServletRequest request)
Attempts to signon the user |
protected boolean |
signOnInternal(java.lang.String user,
java.lang.String password,
ISecured secured,
HttpServletRequest request)
Attempts to signon the user. |
Methods inherited from class planetj.dataengine.security.http.GenericSignOn |
sessionExpired, updateProperties |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String PRIMARY_SIGNON_RESULTS
public static final java.lang.String CHECKED_ALREADY
public static final java.lang.String CLASS_KEY
Constructor Detail |
public SQLOperationSignOn()
Method Detail |
public java.lang.String getFailureMessage(java.lang.String userid, ISecured secured, HttpServletRequest req) throws CMException
getFailureMessage
in interface ISignOn
getFailureMessage
in class GenericSignOn
CMException
public int getMaximumSignOnFailures(java.lang.String pUserId, ISecured pSecuredApp, HttpServletRequest pReq) throws CMException
getMaximumSignOnFailures
in interface ISignOn
getMaximumSignOnFailures
in class GenericSignOn
CMException
protected Operation getSignOnOperation(Application app, HttpServletRequest req) throws CMException
CMException
public java.lang.String getSignOnURI(ISecured secured, HttpServletRequest request) throws CMException
ISignOn
getSignOnURI
in interface ISignOn
getSignOnURI
in class GenericSignOn
CMException
public boolean isAdditionalSignOnRequired(java.lang.String user, java.lang.String password, ISecured secured, HttpServletRequest req) throws CMException
isAdditionalSignOnRequired
in interface ISignOn
isAdditionalSignOnRequired
in class GenericSignOn
CMException
public boolean isAlreadySignedOn(java.lang.String userId, ISecured secured, 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 boolean isUserPromptRequired(ISecured pSecuredApplication, HttpServletRequest pReq) throws CMException
GenericSignOn
isUserPromptRequired
in interface ISignOn
isUserPromptRequired
in class GenericSignOn
CMException
public void prepareForSignOn(ISecured secured, HttpServletRequest request, HttpServletResponse response) throws CMException
GenericSignOn
prepareForSignOn
in interface ISignOn
prepareForSignOn
in class GenericSignOn
CMException
public void processSignOnAttemptsExhausted(ISecured secured, DataEngineServlet servlet, HttpServletRequest req, HttpServletResponse res) throws java.io.IOException, ServletException, CMException
processSignOnAttemptsExhausted
in interface ISignOn
processSignOnAttemptsExhausted
in class GenericSignOn
java.io.IOException
ServletException
CMException
public void signOff(java.lang.String userId, ISecured secured, HttpServletRequest request) throws CMException
signOff
in interface ISignOn
signOff
in class GenericSignOn
CMException
public boolean signOn(java.lang.String user, java.lang.String password, ISecured secured, HttpServletRequest request) throws CMException
user
- The userid for the signon. This value is only used if the userid is not contained in the requestrequest
- The http requestpassword
- 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.
CMException
protected boolean signOnInternal(java.lang.String user, java.lang.String password, ISecured secured, HttpServletRequest request) throws CMException
user
- The userid for the signon. This value is only used if the userid is not contained in the requestrequest
- The http request
CMException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |