Class AuthViewBeanBase
- 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.authentication.UI.AuthViewBeanBase
-
- 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
public abstract class AuthViewBeanBase extends ConsoleViewBeanBase
This class is a default implementation ofViewBeanauth UI.
-
-
Field Summary
Fields Modifier and Type Field Description protected LocalefallbackLocalestatic StringPAGE_ENCODINGParameter name for page encoding.ResourceBundlerbResource bundle withLocalestatic AMResourceBundleCacherbCachestatic StringSERVICE_URIParameter name for service uri.static StringserviceUriConfigured service uri.static SetstoreCookiesWhen HTTP request is made, we get authcontext and get current locale and store it in fallbackLocale.-
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.iplanet.jato.view.ViewBean
PAGE_SESSION_ATTRIBUTE_NVP_NAME, VIEW_BEAN_NAME_SUFFIX
-
-
Constructor Summary
Constructors Constructor Description AuthViewBeanBase(String pageName)CreatesAuthViewBeanBaseobject.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected com.iplanet.jato.view.ViewcreateChild(String name)StringgetEncodedInputValue(String inputValue)Returns the Base64 ecoded URL value.StringgetEncodedQueryParams(jakarta.servlet.http.HttpServletRequest request)Returns the validated and Base64 ecoded query params value.LocalegetRequestLocale()ReturnsLocalefor auth request.abstract StringgetTileIndex()Returns tile index for auth UI.StringgetValidatedInputURL(String inputURL, String encoded, jakarta.servlet.http.HttpServletRequest request)Returns the validated and Base64 ecoded URL value.protected voidregisterChildren()registers child viewsprotected voidsetPageEncoding(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)-
Methods inherited from class org.forgerock.openam.console.base.ConsoleViewBeanBase
deserializePageAttributes
-
Methods inherited from class com.iplanet.jato.view.ViewBeanBase
clearPageSessionAttributes, forward, forwardTo, 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, beginDisplay, 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, beginDisplay, endChildDisplay, endDisplay, getChild, getChildNames, getChildType, getDefaultModel, getDisplayField, getDisplayFieldValue, getNumChildren, resetChildren, setDisplayFieldValue
-
Methods inherited from interface com.iplanet.jato.RequestHandler
acceptRequest, getRequestContext, handleRequest
-
-
-
-
Field Detail
-
PAGE_ENCODING
public static final String PAGE_ENCODING
Parameter name for page encoding.- See Also:
- Constant Field Values
-
SERVICE_URI
public static final String SERVICE_URI
Parameter name for service uri.- See Also:
- Constant Field Values
-
serviceUri
public static String serviceUri
Configured service uri.
-
fallbackLocale
protected Locale fallbackLocale
-
storeCookies
public static Set storeCookies
When HTTP request is made, we get authcontext and get current locale and store it in fallbackLocale. Before the login page is displayed, login modules can have LoginState object which has the locale settings. But after going through login process LoginState might have changed locale based on user preference or LoginState may not exist if LoginFailure in such case we need to fallback to this locale for responding to user
-
rbCache
public static AMResourceBundleCache rbCache
-
rb
public ResourceBundle rb
Resource bundle withLocale
-
-
Constructor Detail
-
AuthViewBeanBase
public AuthViewBeanBase(String pageName)
CreatesAuthViewBeanBaseobject.- Parameters:
pageName- name of page for auth UI.
-
-
Method Detail
-
registerChildren
protected void registerChildren()
registers child views
-
createChild
protected com.iplanet.jato.view.View createChild(String name)
- Overrides:
createChildin classcom.iplanet.jato.view.ContainerViewBase
-
setPageEncoding
protected void setPageEncoding(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
-
getEncodedQueryParams
public String getEncodedQueryParams(jakarta.servlet.http.HttpServletRequest request)
Returns the validated and Base64 ecoded query params value.- Parameters:
request- from which query parameters have to be extracted.- Returns:
- a String the validated and Base64 ecoded query params String
-
getValidatedInputURL
public String getValidatedInputURL(String inputURL, String encoded, jakarta.servlet.http.HttpServletRequest request)
Returns the validated and Base64 ecoded URL value.- Parameters:
inputURL- input URL string valueencoded- value of "encoded" parameter to tell wheather the inputURL is already encoded or notrequest- HttpServletRequest object- Returns:
- a String the validated and Base64 ecoded URL value
-
getEncodedInputValue
public String getEncodedInputValue(String inputValue)
Returns the Base64 ecoded URL value.- Parameters:
inputValue- input string value- Returns:
- a String the Base64 ecoded URL value
-
getRequestLocale
public Locale getRequestLocale()
ReturnsLocalefor auth request.- Returns:
Localefor auth request.
-
getTileIndex
public abstract String getTileIndex()
Returns tile index for auth UI.- Returns:
- tile index for auth UI.
-
-