|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Class must implement this interface to be used as the signon mechanism for a DataEngine application.
Implementors will be instantiated with their default constructor.
Only a single instance of each implementing class will be created. That instance will be stored in the
ApplicationSecurityManager class and will be used to validate all users signing on to all
Applications which have that sign on class.
Field Summary | |
static byte |
GLOBAL_SIGNON_KEY_OPERATION_ID
|
static byte |
GLOBAL_SIGNON_KEY_SYSTEM_ALIAS
|
static String |
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)
|
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 application. |
boolean |
signOn(String pUserId,
String pPassword,
ISecured pSecuredApplication,
javax.servlet.http.HttpServletRequest pReq)
Signs on to a Secured Application. |
Field Detail |
public static final String TIMEOUT_SECONDS
public static final byte GLOBAL_SIGNON_KEY_SYSTEM_ALIAS
public static final byte GLOBAL_SIGNON_KEY_OPERATION_ID
Method Detail |
public String getFailureMessage(String userid, ISecured secured, javax.servlet.http.HttpServletRequest req) throws CMException
CMException
public int getMaximumSignOnFailures(String pUserId, ISecured pSecuredApp, javax.servlet.http.HttpServletRequest pReq) throws CMException
CMException
public String getSignOnURI(ISecured secured, javax.servlet.http.HttpServletRequest request) throws CMException
secured
- ISecured object being signed intorequest
- HttpServletRequest
CMException
public boolean isAdditionalSignOnRequired(String user, String password, ISecured secured, javax.servlet.http.HttpServletRequest req) throws CMException
CMException
public boolean isAlreadySignedOn(String pUserId, ISecured pSecuredApplication, javax.servlet.http.HttpServletRequest pReq) throws CMException
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 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 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
signOn()
method will be invoked with
a null user id and password (since the user was not prompted for them).
CMException
public void prepareForSignOn(ISecured secured, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws CMException, DataEngineException
CMException
DataEngineException
public void processSignOnAttemptsExhausted(ISecured secured, DataEngineServlet servlet, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws IOException, javax.servlet.ServletException, CMException
IOException
javax.servlet.ServletException
CMException
public void sessionExpired(SignOnReceipt pReceipt)
public void signOff(String pUserId, ISecured pSecuredApp, javax.servlet.http.HttpServletRequest pReq) throws CMException
CMException
public boolean signOn(String pUserId, String pPassword, ISecured pSecuredApplication, javax.servlet.http.HttpServletRequest pReq) throws CMException
SignOnReceipt
object should be created and
stored in the session using the
setSignOnReceipt()
method.
pUserId
- The user id identifying the user signing on to the application. If the
isUserPromptRequired()
method returned
false, then pUserId
will be nullpPassword
- The password for signing on to the application. If the
isUserPromptRequired()
method returned
false, then pPassword
will be nullpSecuredApplication
- The Secured Application object representing the application which is being signed on to.pReq
- 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 |