public class LogonMediator
extends java.lang.Object
implements com.ibm.itim.webclient.challengeresponse.ChallengeResponseConstants
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACCOUNT_PAGE
For redirection to the account management page
|
static java.lang.String |
CHANGE_PASSWD_PAGE
For redirection to the password management page
|
static java.lang.String |
COMPLETED_PAGE
For redirection to the completed requests page
|
static java.lang.String |
DELEGATE_PAGE
For redirection to the delegate management page
|
static java.lang.String |
INVALID_PASSWORD_ATTEMPTS
Key for invalid password attempts
|
static java.lang.String |
PENDING_PAGE
For redirection to the pending requests page
|
static java.lang.String |
SUBJECT
Constant for refering to the authenticated subject
|
static java.lang.String |
TODO_PAGE
For redirection to the to do list page
|
ACTION, ADD_REQUIRED_CHALLENGES, C_SUFFIX, CANCEL, CHALLENGE_AND_RESPONSE, CHALLENGE_MODE, CHALLENGE_PICK_LIST, CHALLENGE_RESPONSE_L, CHALLENGES, DEFINE_ATLEAST_ONE_CHALLENGE_TO_RESPOND, ENFORCE_CHALLENGE_RESPONSE_L, FROM_ENFORCE, FROM_PICK_LIST, HIDDEN_CONSTANT, INVALID_RESPONSES, IS_CANCEL_REQUIRED, IS_CHALLENGE_RESPONSE_ENABLED, IS_FORCE_PSWD_CHANGE, IS_HASHING_ENABLED, IS_RESPONSE_VALID, MESSAGE_ID, MULTIPLE_DATA_MOVE, NUM_USER_MUST_ANSWER, QUESTION_ANSWERS, QUESTION_CONFIRM, R_SUFFIX, SELECT_REQUIRED_CHALLENGES, USER_CHALLENGES, USER_CHALLENGES_AND_RESPONSES, USER_DEFINITION_MODE, YES| Constructor and Description |
|---|
LogonMediator(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Creates a new LogonMediator
|
| Modifier and Type | Method and Description |
|---|---|
void |
login(Credentials credentials)
Get information about the user, establish a http session, and forward the user
to default home page.
|
void |
logon(Credentials credentials)
Deprecated.
As of ITIM 4.6, replaced by
login(Credentials credentials). |
void |
signIn(Credentials credentials)
Deprecated.
As of ITIM 4.6, replaced by
login(Credentials credentials). |
void |
signIn(Credentials credentials,
java.lang.String startPage)
Deprecated.
As of ITIM 4.6, replaced by
login(Credentials credentials). |
void |
signIn(java.lang.String userID,
java.lang.String startPage)
Deprecated.
As of ITIM 4.6, replaced by
login(Credentials credentials). |
void |
signIn(java.lang.String userID,
java.lang.String tenantID,
java.lang.String startPage)
Deprecated.
As of ITIM 4.6, replaced by
login(Credentials credentials). |
public static final java.lang.String CHANGE_PASSWD_PAGE
public static final java.lang.String ACCOUNT_PAGE
public static final java.lang.String TODO_PAGE
public static final java.lang.String PENDING_PAGE
public static final java.lang.String COMPLETED_PAGE
public static final java.lang.String DELEGATE_PAGE
public static final java.lang.String INVALID_PASSWORD_ATTEMPTS
public static final java.lang.String SUBJECT
public LogonMediator(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
req - HttpServletRequestres - HttpServletResponsepublic void signIn(Credentials credentials) throws LogonException, java.rmi.RemoteException, AuthenticationException
login(Credentials credentials).credentials - The enRole user's Credentials. These credentials will be passed to the configured
Authenticator, so all required corresponding
authenticator's credentials must be supplied.LogonException - Thrown if there was any kind of application problemjava.rmi.RemoteException - Thrown if there is a communication exceptionAuthenticationException - Thrown if there was any kind of authentication problempublic void signIn(Credentials credentials, java.lang.String startPage) throws LogonException, java.rmi.RemoteException, AuthenticationException
login(Credentials credentials).credentials - The enRole user's Credentials. The credentials will be
passed to the configured Authenticator, so all required
corresponding authenticator's credentials must be supplied.startPage - The first page the user sees in the enRole system.
Possible values for the start page
are CHANGE_PWD_PAGE, ACCOUNT_PAGE, TODO_PAGE,
PENDING_PAGE, COMPLETED_PAGE, DELEGATE_PAGE, or NULL.LogonException - Thrown if there was any kind of application problemjava.rmi.RemoteException - Thrown if there is a communication exceptionAuthenticationException - Thrown if there was any kind of authentication problempublic void signIn(java.lang.String userID,
java.lang.String startPage)
throws LogonException,
java.rmi.RemoteException,
AuthenticationException
login(Credentials credentials).userID - The user idstartPage - The first page the user sees in the enRole system.
Possible values for the start page
are CHANGE_PWD_PAGE, ACCOUNT_PAGE, TODO_PAGE,
PENDING_PAGE, COMPLETED_PAGE, DELEGATE_PAGE, or NULL.LogonException - Thrown if there was any kind of application problemjava.rmi.RemoteException - Thrown if there is a communication exceptionAuthenticationException - Thrown if there was any kind of authentication problempublic void signIn(java.lang.String userID,
java.lang.String tenantID,
java.lang.String startPage)
throws LogonException,
java.rmi.RemoteException,
AuthenticationException
login(Credentials credentials).userID - The user idtenantID - The tenant that the user belongs in the enRole system.startPage - The first page the user sees in the enRole system.
Possible values for the start page
are CHANGE_PWD_PAGE, ACCOUNT_PAGE, TODO_PAGE,
PENDING_PAGE, COMPLETED_PAGE, DELEGATE_PAGE, or NULL.LogonException - Thrown if there was any kind of application problemjava.rmi.RemoteException - Thrown if there is a communication exceptionAuthenticationException - Thrown if there was any kind of authentication problempublic void logon(Credentials credentials) throws LogonException, java.rmi.RemoteException, AuthenticationException
login(Credentials credentials).credentials - The enRole user's Credentials. Authenticator's credentials must be supplied.
Note: Custom Authetication is not allowed using this API.LogonException - Thrown if there was any kind of application problemjava.rmi.RemoteException - Thrown if there is a communication exceptionAuthenticationException - Thrown if there was any kind of authentication problempublic void login(Credentials credentials) throws LogonException, java.rmi.RemoteException, javax.security.auth.login.FailedLoginException, javax.security.auth.login.CredentialExpiredException
credentials - The object containing user's user id and password
credentials to be authenticated.
Note: Custom Authetication is not supported using this API.LogonException - Thrown if there was any kind of application problemjava.rmi.RemoteException - Thrown if there is a communication exceptionjavax.security.auth.login.FailedLoginException - Thrown if there was any kind of authentication problemjavax.security.auth.login.CredentialExpiredException - Thrown if the password gets expired.Credentials