|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectplanetj.dataengine.security.http.GenericSignOn
Provides a partial implementation of the SignOn interface. The signOff(), sessionExpired(), and isAlreadySignedOn() methods are given minimal implementations which should be sufficient for most sign on techniques which do not hold open resources during the time a user is signed on.
| 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 | |
protected |
GenericSignOn()
GenericSignOn constructor |
| 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. |
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 pUserId,
ISecured pSecuredApplication,
HttpServletRequest pReq)
Tests if the user has signed on to the secured application already. |
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 |
sessionExpired(SignOnReceipt pReceipt)
This method is invoked when the session in which a SignOnReceipt is stored expires. |
void |
signOff(java.lang.String pUserId,
ISecured pSecuredApp,
HttpServletRequest pReq)
Signs the user off of the securedapplication. |
static LayoutDisplayPropertyGroup |
updateProperties(LayoutDisplayPropertyGroup current,
LayoutDisplayPropertyGroup newProps,
HttpServletRequest request)
Deprecated. Just invoked LayoutDisplayPropertyGroup.updateProperties() instead |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface planetj.dataengine.security.http.ISignOn |
signOn |
| Constructor Detail |
protected GenericSignOn()
| Method Detail |
public java.lang.String getFailureMessage(java.lang.String userid,
ISecured secured,
HttpServletRequest req)
throws CMException
getFailureMessage in interface ISignOnCMException
public int getMaximumSignOnFailures(java.lang.String pUserId,
ISecured pSecuredApp,
HttpServletRequest pReq)
throws CMException
getMaximumSignOnFailures in interface ISignOnCMException
public java.lang.String getSignOnURI(ISecured secured,
HttpServletRequest request)
throws CMException
ISignOn
getSignOnURI in interface ISignOnsecured - ISecured object being signed intorequest - HttpServletRequest
CMException
public boolean isAdditionalSignOnRequired(java.lang.String user,
java.lang.String password,
ISecured secured,
HttpServletRequest req)
throws CMException
isAdditionalSignOnRequired in interface ISignOnCMException
public boolean isAlreadySignedOn(java.lang.String pUserId,
ISecured pSecuredApplication,
HttpServletRequest pReq)
throws CMException
isAlreadySignedOn in interface ISignOnpUserId - The user id that the user may or may not be signed on as. If this parameter is null,
then this method should return true if the user is signed on to the secured application with
any user id. If this parameter is not null, this method should return true only if the
user is signed on with this specific user id.pSecuredApplication - The secured application to which the user may or may not be signed on
CMException
public boolean isUserPromptRequired(ISecured pSecuredApplication,
HttpServletRequest pReq)
throws CMException
isUserPromptRequired in interface ISignOnCMException
public void prepareForSignOn(ISecured secured,
HttpServletRequest request,
HttpServletResponse response)
throws CMException
prepareForSignOn in interface ISignOnCMException
public void processSignOnAttemptsExhausted(ISecured secured,
DataEngineServlet servlet,
HttpServletRequest req,
HttpServletResponse res)
throws java.io.IOException,
ServletException,
CMException
processSignOnAttemptsExhausted in interface ISignOnjava.io.IOException
ServletException
CMExceptionpublic void sessionExpired(SignOnReceipt pReceipt)
sessionExpired in interface ISignOn
public void signOff(java.lang.String pUserId,
ISecured pSecuredApp,
HttpServletRequest pReq)
throws CMException
signOff in interface ISignOnCMException
public static LayoutDisplayPropertyGroup updateProperties(LayoutDisplayPropertyGroup current,
LayoutDisplayPropertyGroup newProps,
HttpServletRequest request)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||