public class SignInPanel extends Panel
IAuthenticationStrategy},
ISecuritySettings#getAuthenticationStrategy()},
DefaultAuthenticationStrategy},
WebSession#authenticate(String, String)},
Serialized Form| Modifier and Type | Class and Description |
|---|---|
class |
SignInPanel.SignInForm
Sign in form.
|
ENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER| Constructor and Description |
|---|
SignInPanel(String id) |
SignInPanel(String id,
boolean includeRememberMe) |
| Modifier and Type | Method and Description |
|---|---|
protected SignInPanel.SignInForm |
getForm() |
String |
getPassword()
Convenience method to access the password.
|
boolean |
getRememberMe()
Get model object of the rememberMe checkbox
|
String |
getUsername()
Convenience method to access the username.
|
protected void |
onBeforeRender() |
protected void |
onSignInFailed()
Called when sign in failed
|
protected void |
onSignInSucceeded()
Called when sign in was successful
|
void |
setPassword(String password)
Set the password
|
void |
setRememberMe(boolean rememberMe) |
void |
setUsername(String username)
Set the username
|
newMarkupSourcingStrategygetWebPage, getWebRequest, getWebResponse, getWebSessionadd, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildrenadd, addStateChange, afterRender, beforeRender, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, configure, continueToOriginalDestination, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnModelChanged, internalPrepareForRender, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, onComponentTag, onConfigure, onDetach, onEvent, onInitialize, onModelChanged, onModelChanging, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderHead, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, visitParents, warn, wrappublic SignInPanel(String id)
Component.Component(String)public SignInPanel(String id, boolean includeRememberMe)
id - See Component constructorincludeRememberMe - True if form should include a remember-me checkboxComponent.Component(String)protected SignInPanel.SignInForm getForm()
protected void onBeforeRender()
onBeforeRender in class ComponentComponent.onBeforeRender()public String getPassword()
public void setPassword(String password)
password - public String getUsername()
public void setUsername(String username)
username - public boolean getRememberMe()
public void setRememberMe(boolean rememberMe)
rememberMe - If true, rememberMe will be enabled (username and password will be persisted
somewhere)protected void onSignInFailed()
protected void onSignInSucceeded()
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.