|
|||||||||||
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 ISignOn
getFailureMessage
in class GenericSignOn
CMException
public int getMaximumSignOnFailures(String pUserId, ISecured pSecuredApp, javax.servlet.http.HttpServletRequest pReq) throws CMException
getMaximumSignOnFailures
in interface ISignOn
getMaximumSignOnFailures
in class GenericSignOn
CMException
public String getSignOnURI(ISecured secured, javax.servlet.http.HttpServletRequest request) throws CMException
ISignOn
getSignOnURI
in interface ISignOn
getSignOnURI
in class GenericSignOn
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
isAdditionalSignOnRequired
in class GenericSignOn
CMException
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 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
processSignOnAttemptsExhausted
in class GenericSignOn
IOException
javax.servlet.ServletException
CMException
public void signOff(String userId, ISecured secured, javax.servlet.http.HttpServletRequest request) throws CMException
signOff
in interface ISignOn
signOff
in class GenericSignOn
CMException
public boolean signOn(String user, String password, ISecured secured, javax.servlet.http.HttpServletRequest request) throws CMException
ISignOn
SignOnReceipt
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 |