Package com.sun.identity.password.ui
Class PWResetQuestionViewBean
- java.lang.Object
-
- com.iplanet.jato.view.ViewBase
-
- com.iplanet.jato.view.ContainerViewBase
-
- com.iplanet.jato.view.RequestHandlingViewBase
-
- com.iplanet.jato.view.ViewBeanBase
-
- org.forgerock.openam.console.base.ConsoleViewBeanBase
-
- com.sun.identity.password.ui.PWResetViewBeanBase
-
- com.sun.identity.password.ui.PWResetQuestionViewBean
-
- All Implemented Interfaces:
com.iplanet.jato.RequestCompletionListener,com.iplanet.jato.RequestHandler,com.iplanet.jato.RequestParticipant,com.iplanet.jato.view.ContainerView,com.iplanet.jato.view.View,com.iplanet.jato.view.ViewBean,com.iplanet.jato.view.WebActionHandler,com.iplanet.jato.view.WebActions,Constants
public class PWResetQuestionViewBean extends PWResetViewBeanBase
PWResetUserValidationViewBeanverifies user's answer to the secret question for the password reset service
-
-
Field Summary
Fields Modifier and Type Field Description static StringBUTTON_OKName of OK button peer componentstatic StringBUTTON_PREVIOUSName of previous button peer componentstatic StringDEFAULT_DISPLAY_URLDefault display URLstatic StringFLD_USER_ATTRName of user DN fieldstatic StringPAGE_NAMEPage Namestatic StringPASSWORD_RESET_TILEDVIEWName of tiled view componentstatic StringPW_QUESTION_TITLEName of title peer component-
Fields inherited from class com.sun.identity.password.ui.PWResetViewBeanBase
COPYRIGHT_TEXT, ERROR_MSG, ERROR_TITLE, INFO_MSG, INITIAL_ORG_DN, LBL_JAVA_LOGO, LBL_PRODUCT, LBL_SUN_LOGO, model, ORG_DN, ORG_DN_FLAG, STRING_TRUE, TITLE_HTML_PAGE, URL_LOCALE, USER_ATTR_VALUE, USER_DN
-
Fields inherited from class com.iplanet.jato.view.ViewBeanBase
DEFAULT_COMMAND_CHILD_NVP_NAME, DISPLAY_EVENT_COMPLETED_REQUEST_ATTRIBUTE_NAME, OPTION_USE_PAGE_SESSION_FOR_DEFAULT_COMMAND_CHILD
-
Fields inherited from class com.iplanet.jato.view.RequestHandlingViewBase
HANDLE_REQUEST_METHOD_PREFIX, HANDLE_REQUEST_METHOD_SUFFIX
-
Fields inherited from class com.iplanet.jato.view.ContainerViewBase
BEGIN_DISPLAY_EVENT_METHOD_PREFIX, BEGIN_DISPLAY_EVENT_METHOD_SUFFIX, END_DISPLAY_EVENT_METHOD_PREFIX, END_DISPLAY_EVENT_METHOD_SUFFIX, eventMethodRegistry, OPTION_ENABLE_QUALIFIELD_CHILD_NAME_LOOKUPS, OPTION_USE_LEGACY_DISPLAY_EVENT_SIGNATURES
-
Fields inherited from interface com.sun.identity.shared.Constants
ADVICES_TAG_NAME, AGENT_SESSION_IDLE_TIME, ALLOW_PERSIST_AM_COOKIE, AM_ADMIN_CLI_CERTDB_DIR, AM_AUTH_COOKIE_NAME, AM_BUILD_DATE, AM_BUILD_REVISION, AM_BUILD_VERSION, AM_CONSOLE_DEPLOYMENT_DESCRIPTOR, AM_CONSOLE_HOST, AM_CONSOLE_PORT, AM_CONSOLE_PROTOCOL, AM_CONSOLE_REMOTE, AM_COOKIE_CHECK, AM_COOKIE_ENCODE, AM_COOKIE_HTTPONLY, AM_COOKIE_NAME, AM_COOKIE_SAMESITE, AM_COOKIE_SECURE, AM_COOKIE_TIME_TO_LIVE, AM_CTX_ID, AM_DIRECTORY_HOST, AM_DIRECTORY_PORT, AM_DIRECTORY_SSL_ENABLED, AM_DIST_AUTH_COOKIE_NAME, AM_DISTAUTH_DEPLOYMENT_DESCRIPTOR, AM_DISTAUTH_LB_COOKIE_NAME, AM_DISTAUTH_LB_COOKIE_VALUE, AM_DISTAUTH_SITES, AM_FQDN_MAP, AM_INSTALL_DIR, AM_LB_COOKIE_NAME, AM_LB_COOKIE_VALUE, AM_LOCALE, AM_LOGSTATUS, AM_NAMING_URL, AM_NEW_CONFIGFILE_PATH, AM_PCOOKIE_NAME, AM_PROTECTED_PROPERTY_PREFIX, AM_REDIRECT, AM_SERVER_HOST, AM_SERVER_PORT, AM_SERVER_PROTOCOL, AM_SERVICES_DEPLOYMENT_DESCRIPTOR, AM_SERVICES_SECRET, AM_SESSION_CONSTRAINT_HANDLER, AM_SESSION_CONSTRAINT_MAX_WAIT_TIME, AM_SESSION_DENY_LOGIN_IF_DB_IS_DOWN, AM_SESSION_ENABLE_SESSION_CONSTRAINT, AM_SESSION_FAILOVER_CLUSTER_STATE_CHECK_PERIOD, AM_SESSION_FAILOVER_CLUSTER_STATE_CHECK_TIMEOUT, AM_SESSION_HTTP_SESSION_TRACKING_COOKIE_NAME, AM_SESSION_MAX_CACHE_SIZE, AM_SESSION_MAX_CACHE_TIME, AM_SESSION_MAX_SESSION_LIST_SIZE, AM_SESSION_SESSION_LIST_RETRIEVAL_TIMEOUT, AM_SMTP_HOST, AM_STATS_INTERVAL, AM_VERSION, AM_VERSION_HEADER_ENABLED, AMP, APPEND_SESS_COOKIE_IN_URL, APPLICATION_SESSION_MAX_CACHING_TIME, ASTERISK, AT, ATTR_COOKIE_DOMAINS, ATTR_LOGIN_URL, ATTR_NAME_AGENT_TYPE, AUDIT_AM_ACCESS_ATTEMPT_ENABLED, AUTH_LEVEL_CONDITION_ADVICE, AUTH_LEVEL_EXCLUDE_REQUIRED_REQUISITE, AUTH_RATE_MONITORING_INTERVAL, AUTH_SCHEME_CONDITION_ADVICE, AUTH_UNIQUE_COOKIE_DOMAIN, AUTH_UNIQUE_COOKIE_NAME, AUTHENTICATION_SPECIAL_USERS, AUTHENTICATION_SUPER_USER, AUTOCOMPLETE_ENABLED, C66_ENCODE_AM_COOKIE, CACHE_POLLING_TIME_PROPERTY, CASE_INSENSITIVE_DN, CASE_SENSITIVE_UUID, CDCSERVLET_LOGIN_URL, CDM_CONTENT_TYPE_PROPERTY_NAME, CLIENT_CERTIFICATE_ALIAS, CLIENT_IP_ADDR_HEADER, CLIENT_NOTIFICATION_URL, CLUSTER_SERVER_LIST, COLON, COMMA, COMPOSITE_ADVICE, CONFIG_STORE_DOWN_REDIRECT_URL, CONFIG_VAR_DISTAUTH_BOOTSTRAP_BASE_DIR, CONFIG_VAR_DISTAUTH_BOOTSTRAP_FILENAME, CONFIGURATION_NAME, CONSOLE_UI_DEFAULT_CHARSET, CORE_TOKEN_RESOURCE_ENABLED, CRL_CACHE_DIR_HOST, CRL_CACHE_DIR_PASSWD, CRL_CACHE_DIR_PORT, CRL_CACHE_DIR_SEARCH_ATTR, CRL_CACHE_DIR_SEARCH_LOC, CRL_CACHE_DIR_SSL_ENABLED, CRL_CACHE_DIR_USER, DEFAULT_CACHE_POLLING_TIME, DEFAULT_KRB5_LOGINMODULE, DEFAULT_LDAP_TIME_LIMIT, DEFAULT_OAUTH2_HA_ROOT_SUFFIX, DEFAULT_ROOT_NAMING_ATTRIBUTE, DEFAULT_ROOT_SUFFIX, DEFAULT_SAML2_HA_ROOT_SUFFIX, DEFAULT_SESSION_HA_ROOT_SUFFIX, DEFAULT_SESSION_HA_STORE_TYPE, DEFAULT_SESSION_UPGRADER_IMPL, DEFAULT_TOKEN_ROOT_SUFFIX, DELIMITER_PREF_LEFT, DESERIALISATION_CLASSES_WHITELIST, DESTROY_SESSION_AFTER_UPGRADE, DISTAUTH_BOOTSTRAP_FILE, DISTAUTH_CLUSTER, DISTAUTH_SERVER_HOST, DISTAUTH_SERVER_PORT, DISTAUTH_SERVER_PROTOCOL, DS_ADMIN_PORT, EMBED_REPL_PORT, EMBED_SYNC_SERVERS, EMPTY, ENABLE_HOST_LOOKUP, ENABLE_TRACE_IN_MESSAGE_MODE, ENC_PWD_PROPERTY, ENFORCE_JAAS_THREAD, EQUALS, EVENT_LISTENER_DISABLE_LIST, EVENT_LISTENER_REMOTE_CLIENT_BACKLOG_CACHE, FEDERATION_FED_COOKIE_NAME, FILE_SEPARATOR, FORBIDDEN_TO_COPY_HEADERS, FORBIDDEN_TO_COPY_REQUEST_HEADERS, FORWARD_PARAM, FORWARD_YES_VALUE, GENERIC_SOAP_REST_AUTHENTICATION_EXCEPTION, IDENTITY_WEB_CONTAINER, IGNORE_GOTO_DURING_LOGOUT, INVALID_GOTO_STRINGS, IS_ENABLE_UNIQUE_COOKIE, JSS_HANDLER, JSSE_HANDLER, KRB5_CREDENTIAL_TYPE, KRB5_LOGINMODULE, LDAP_CONN_IDLE_TIME_IN_SECS, LDAP_FALLBACK_SLEEP_TIME_IN_MINS, LDAP_HEARTBEAT, LDAP_HEARTBEAT_TIMEOUT, LDAP_SERVER_TLS_VERSION, LOCAL, LOGIN_URL, MAX_FILE_UPLOAD_SIZE, MONITORING_INTERVAL, MONITORING_TIMEOUT, MULTIPLE_TABS_USED, NAMING_AM_LB_COOKIE, NOTIFICATION_PROPERTY_LIST, NOTIFICATION_THREADPOOL_SIZE, NOTIFICATION_THREADPOOL_THRESHOLD, NOTIFICATIONS_AGENTS_ENABLED, OBJECTCLASS, ORGANIZATION, ORGANIZATION_NAME, ORGANIZATION_NAMING_ATTRIBUTE, PERSIST_AM_COOKIE, PLATFORM_LIST, POLLING_THREADPOOL_SIZE, POLLING_THREADPOOL_THRESHOLD, PROPERTY_CHANGE_NOTIFICATION, PROPERTY_NAME_LB_COOKIE_VALUE, PROTECTED_PROPERTIES_LIST, PROTOCOL_HANDLER, REMOTEAUTH_INCLUDE_REQRES, RESOURCE_LOOKUP_CACHE_ENABLED, REST_APIS_SERVICE_NAME, REST_APIS_SERVICE_VERSION, RETAINED_HTTP_HEADERS_LIST, RETAINED_HTTP_REQUEST_HEADERS_LIST, REWRITE_AS_PATH, RUNTIME_SHUTDOWN_HOOK_ENABLED, SAML_XMLSIG_CERT_ALIAS, SAML_XMLSIG_KEYPASS, SAML_XMLSIG_KEYSTORE, SAML_XMLSIG_STORE_PASS, SDK_GLOBAL_CACHE_PROPERTY, SECURITY_ENCRYPTOR, SECURITY_PROVIDER_PKG, SEMI_COLON, SERVER_MODE, SERVERID_LBCOOKIEVALUE_LIST, SERVICES_CDSSO_COOKIE_DOMAIN, SERVICES_COMM_SERVER_PLLREQUEST_MAX_CONTENT_LENGTH, SERVICES_DEBUG_DIRECTORY, SERVICES_DEBUG_LEVEL, SERVICES_DEBUG_MERGEALL, SERVICES_STATS_DIRECTORY, SERVICES_STATS_STATE, SESSION_REPOSITORY_ATTRIBUTE_NAME_COMPRESSION, SESSION_REPOSITORY_COMPRESSION, SESSION_REPOSITORY_ENCRYPTION, SESSION_RETURN_APP_SESSION, SESSION_UPGRADER_IMPL, SET_COOKIE_TO_ALL_DOMAINS, SITE_ID_LIST, SITE_LIST, SITE_NAMES_LIST, SITE_STATUS_CHECK_CLASS, SITEMONITOR_DISABLED, SM_SMTP_PORT, SM_THREADPOOL_SIZE, SMS_CACHE_PROPERTY, SMS_CACHE_TTL, SMS_CACHE_TTL_ENABLE, SMS_ENABLE_DB_NOTIFICATION, SSO_TOKEN, SUN_SECURITY_PROVIDER_PKG, SVC_NAME_AUTH_CONFIG, SVC_NAME_NAMING, SVC_NAME_PLATFORM, SVC_NAME_SAML, SVC_NAME_USER, SYS_PROPERTY_INSTALL_TIME, SYSTEM_PROXY_ENABLED, SYSTEM_TIMERPOOL_SIZE, TAG_SERVER_HOST, TAG_SERVER_PORT, TAG_SERVER_PROTO, TAG_SERVER_URI, TIMEOUT_HANDLER_LIST, TOP, TRUSTED_SOURCE_LIST, UNIVERSAL_IDENTIFIER, URL_CONNECTION_USE_CACHE, URLCHECKER_DOREQUEST, URLCHECKER_INVALIDATE_INTERVAL, URLCHECKER_RETRY_INTERVAL, URLCHECKER_RETRY_LIMIT, URLCHECKER_SLEEP_INTERVAL, URLCHECKER_TARGET_URL, USE_OLD_LOG_FORMAT, USER_LOCALE_ATTR, VALID_LOGIN_URIS, VERSION_DATE_FORMAT, WEBCONTAINER, WSFED_ACTIVE_LOGIN, XML_DOCUMENT_BUILDER_CACHE_SIZE, XML_SAXPARSER_CACHE_SIZE, XML_TRANSFORMER_FACTORY_CACHE_SIZE, XML_VALIDATING, XPATHFACTORY_CACHE_SIZE, XUI_USER_SESSION_VALIDATION_ENABLED, ZERO_PAGE_LOGIN_ALLOW_MISSING_REFERER, ZERO_PAGE_LOGIN_ENABLED, ZERO_PAGE_LOGIN_WHITELIST
-
Fields inherited from interface com.iplanet.jato.view.ViewBean
PAGE_SESSION_ATTRIBUTE_NVP_NAME, VIEW_BEAN_NAME_SUFFIX
-
-
Constructor Summary
Constructors Constructor Description PWResetQuestionViewBean()Constructs a password reset question view bean
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeginDisplay(com.iplanet.jato.view.event.DisplayEvent event)Set the required information to display the page.booleanbeginResetPageDisplay(com.iplanet.jato.view.event.ChildDisplayEvent event)Begins password secret questions contentprotected com.iplanet.jato.view.ViewcreateChild(String name)Creates child componentvoidforwardTo(com.iplanet.jato.RequestContext context)Forwards to current view bean after populating questions.protected PWResetModelgetModel()Gets model for this view beanvoidhandleBtnOKRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)Handles form submission request for next button.voidhandleBtnPreviousRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)Handles form submission request for previous button.protected voidregisterChildren()Registers child components/views-
Methods inherited from class com.sun.identity.password.ui.PWResetViewBeanBase
beginErrorBlockDisplay, beginInfoBlockDisplay, isPWResetEnabled, setErrorMessage
-
Methods inherited from class org.forgerock.openam.console.base.ConsoleViewBeanBase
deserializePageAttributes
-
Methods inherited from class com.iplanet.jato.view.ViewBeanBase
clearPageSessionAttributes, forward, forwardTo, getDefaultCommandDescriptor, getDefaultDisplayURL, getDisplayURL, getLogicalName, getModuleURL, getPageSessionAttribute, getPageSessionAttributes, getPageSessionAttributeString, getPageSessionAttributeString, getRequestInvocationName, getRequestInvocationName, handleDeserializePageAttributesException, include, include, include, invokeRequestHandler, invokeRequestHandlerInternal, mapRequestParameters, removePageSessionAttribute, securityCheck, setDefaultCommandDescriptor, setDefaultDisplayURL, setPageSessionAttribute, setPageSessionAttributes, setRequestContext
-
Methods inherited from class com.iplanet.jato.view.RequestHandlingViewBase
acceptRequest, afterAllModelsExecute, afterAllWebActionModelsExecute, afterHandleRequestCommandExecution, afterModelExecutes, afterWebActionModelExecutes, appMessage, beforeHandleRequestCommandExecution, beforeModelExecutes, beforeWebActionModelExecutes, createDefaultExecutionContext, executeAutoDeletingModel, executeAutoDeletingModels, executeAutoExecutingModel, executeAutoExecutingModels, executeAutoInsertingModel, executeAutoInsertingModels, executeAutoRetrievingModel, executeAutoRetrievingModels, executeAutoRetrievingModels, executeAutoUpdatingModel, executeAutoUpdatingModels, getAutoDeletingModels, getAutoExecutingModels, getAutoInsertingModels, getAutoRetrieveExecutionContext, getAutoRetrievingModels, getAutoUpdatingModels, getFirstActionExecutionContext, getLastActionExecutionContext, getModel, getNextActionExecutionContext, getPreviousActionExecutionContext, getRefreshActionExecutionContext, getRequestCompletionListenerChildNames, getRequestContext, getRequestParticipantChildNames, getSession, getViewBean, getWebActionModelOffset, getWebActionModels, getWebActionRowOffsetSessionKey, handleRequest, handleWebAction, isAutoRetrieveEnabled, onHandleRequestCommandExecutionError, onModelError, onNoModelDataAvailable, onWebActionExecutionError, requestComplete, setAutoDeletingModels, setAutoExecutingModels, setAutoInsertingModels, setAutoRetrieveEnabled, setAutoRetrieveExecutionContext, setAutoRetrievingModels, setAutoUpdatingModels, setWebActionModelOffset
-
Methods inherited from class com.iplanet.jato.view.ContainerViewBase
beginChildDisplay, beginChildDisplay, beginComponentDisplay, beginDisplay, childExists, createChildReserved, endChildDisplay, endChildDisplay, endComponentDisplay, endDisplay, endDisplay, ensureChild, getChild, getChildNames, getChildNames, getChildType, getCommandChildNames, getDefaultModel, getDisplayField, getDisplayFieldBooleanValue, getDisplayFieldDoubleValue, getDisplayFieldIntValue, getDisplayFieldStringValue, getDisplayFieldValue, getNumChildren, getQualifiedCommandChildNames, mapRequestParameter, onValidationException, registerChild, registerDisplayEventHandlers, removeAllChildren, removeChild, removeQualifiedNameIndices, resetChildren, setDefaultModel, setDisplayFieldValue, setDisplayFieldValue, setDisplayFieldValue, setDisplayFieldValue, unregisterChild
-
Methods inherited from class com.iplanet.jato.view.ViewBase
getName, getParent, getParentViewBean, getQualifiedName, getQualifiedViewNameSeparator, getRootView, getRootView, getSimpleQualifiedName, isVisible, setName, setParent, setQualifiedViewNameSeparator, setVisible
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.iplanet.jato.view.ContainerView
beginChildDisplay, endChildDisplay, endDisplay, getChild, getChildNames, getChildType, getDefaultModel, getDisplayField, getDisplayFieldValue, getNumChildren, resetChildren, setDisplayFieldValue
-
Methods inherited from interface com.iplanet.jato.RequestHandler
acceptRequest, getRequestContext, handleRequest
-
-
-
-
Field Detail
-
PW_QUESTION_TITLE
public static final String PW_QUESTION_TITLE
Name of title peer component- See Also:
- Constant Field Values
-
BUTTON_OK
public static final String BUTTON_OK
Name of OK button peer component- See Also:
- Constant Field Values
-
BUTTON_PREVIOUS
public static final String BUTTON_PREVIOUS
Name of previous button peer component- See Also:
- Constant Field Values
-
PAGE_NAME
public static final String PAGE_NAME
Page Name- See Also:
- Constant Field Values
-
PASSWORD_RESET_TILEDVIEW
public static final String PASSWORD_RESET_TILEDVIEW
Name of tiled view component- See Also:
- Constant Field Values
-
FLD_USER_ATTR
public static final String FLD_USER_ATTR
Name of user DN field- See Also:
- Constant Field Values
-
DEFAULT_DISPLAY_URL
public static final String DEFAULT_DISPLAY_URL
Default display URL- See Also:
- Constant Field Values
-
-
Method Detail
-
registerChildren
protected void registerChildren()
Registers child components/views- Overrides:
registerChildrenin classPWResetViewBeanBase
-
createChild
protected com.iplanet.jato.view.View createChild(String name)
Creates child component- Overrides:
createChildin classPWResetViewBeanBase- Parameters:
name- of child component- Returns:
- child component
-
beginDisplay
public void beginDisplay(com.iplanet.jato.view.event.DisplayEvent event) throws com.iplanet.jato.model.ModelControlExceptionSet the required information to display the page.- Specified by:
beginDisplayin interfacecom.iplanet.jato.view.ContainerView- Overrides:
beginDisplayin classPWResetViewBeanBase- Parameters:
event- display event.- Throws:
com.iplanet.jato.model.ModelControlException- if problem access value of component.
-
forwardTo
public void forwardTo(com.iplanet.jato.RequestContext context)
Forwards to current view bean after populating questions. It will forward toPWResetUserValidationViewBeanif the user DN or organization does not exists.- Specified by:
forwardToin interfacecom.iplanet.jato.view.ViewBean- Overrides:
forwardToin classcom.iplanet.jato.view.ViewBeanBase- Parameters:
context- request context
-
handleBtnOKRequest
public void handleBtnOKRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)
Handles form submission request for next button. It will forward toPWResetSuccessViewBeanif the answers are correct for the questions.- Parameters:
event- request invocation event
-
handleBtnPreviousRequest
public void handleBtnPreviousRequest(com.iplanet.jato.view.event.RequestInvocationEvent event)
Handles form submission request for previous button. It will take the user toPWResetUserValidationViewBean- Parameters:
event- request invocation event
-
getModel
protected PWResetModel getModel()
Gets model for this view bean- Overrides:
getModelin classPWResetViewBeanBase- Returns:
- model for this view bean
-
beginResetPageDisplay
public boolean beginResetPageDisplay(com.iplanet.jato.view.event.ChildDisplayEvent event)
Begins password secret questions content- Overrides:
beginResetPageDisplayin classPWResetViewBeanBase- Parameters:
event- child display event- Returns:
- true if password reset secret questions question is to displayed, false otherwise
-
-