|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.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 |
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 pUserId,
ISecured pSecuredApplication,
javax.servlet.http.HttpServletRequest pReq)
Tests if the user has signed on to the secured application already. |
boolean |
isUserPromptRequired(ISecured pSecuredApplication,
javax.servlet.http.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,
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 |
sessionExpired(SignOnReceipt pReceipt)
This method is invoked when the session in which a SignOnReceipt is stored expires. |
void |
signOff(String pUserId,
ISecured pSecuredApp,
javax.servlet.http.HttpServletRequest pReq)
Signs the user off of the securedapplication. |
static LayoutDisplayPropertyGroup |
updateProperties(LayoutDisplayPropertyGroup current,
LayoutDisplayPropertyGroup newProps,
javax.servlet.http.HttpServletRequest request)
Deprecated. Just invoked LayoutDisplayPropertyGroup.updateProperties() instead |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface planetj.dataengine.security.http.ISignOn |
signOn |
Method Detail |
public String getFailureMessage(String userid, ISecured secured, javax.servlet.http.HttpServletRequest req) throws CMException
getFailureMessage
in interface ISignOn
CMException
public int getMaximumSignOnFailures(String pUserId, ISecured pSecuredApp, javax.servlet.http.HttpServletRequest pReq) throws CMException
getMaximumSignOnFailures
in interface ISignOn
CMException
public String getSignOnURI(ISecured secured, javax.servlet.http.HttpServletRequest request) throws CMException
ISignOn
getSignOnURI
in interface ISignOn
secured
- 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 ISignOn
CMException
public boolean isAlreadySignedOn(String pUserId, ISecured pSecuredApplication, javax.servlet.http.HttpServletRequest pReq) throws CMException
isAlreadySignedOn
in interface ISignOn
pUserId
- 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, javax.servlet.http.HttpServletRequest pReq) throws CMException
isUserPromptRequired
in interface ISignOn
CMException
public void prepareForSignOn(ISecured secured, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws CMException
prepareForSignOn
in interface ISignOn
CMException
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 ISignOn
IOException
javax.servlet.ServletException
CMException
public void sessionExpired(SignOnReceipt pReceipt)
sessionExpired
in interface ISignOn
public void signOff(String pUserId, ISecured pSecuredApp, javax.servlet.http.HttpServletRequest pReq) throws CMException
signOff
in interface ISignOn
CMException
public static LayoutDisplayPropertyGroup updateProperties(LayoutDisplayPropertyGroup current, LayoutDisplayPropertyGroup newProps, javax.servlet.http.HttpServletRequest request)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |