|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.Component org.apache.wicket.MarkupContainer org.apache.wicket.markup.html.WebMarkupContainer org.apache.wicket.markup.html.panel.Panel org.apache.wicket.authroles.authentication.panel.SignInPanel
public class SignInPanel
Reusable user sign in panel with username and password as well as support for persistence of the both. When the SignInPanel's form is submitted, the method signIn(String, String) is called, passing the username and password submitted. The signIn() method should authenticate the user's session.
IAuthenticationStrategy}
,
ISecuritySettings#getAuthenticationStrategy()}
,
DefaultAuthenticationStrategy}
,
WebSession#authenticate(String, String)}
,
Serialized FormNested Class Summary | |
---|---|
class |
SignInPanel.SignInForm
Sign in form. |
Field Summary |
---|
Fields inherited from class org.apache.wicket.markup.html.panel.Panel |
---|
PANEL |
Fields inherited from class org.apache.wicket.Component |
---|
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 Summary | |
---|---|
SignInPanel(java.lang.String id)
|
|
SignInPanel(java.lang.String id,
boolean includeRememberMe)
|
Method Summary | |
---|---|
protected SignInPanel.SignInForm |
getForm()
|
java.lang.String |
getPassword()
Convenience method to access the password. |
boolean |
getRememberMe()
Get model object of the rememberMe checkbox |
java.lang.String |
getUsername()
Convenience method to access the username. |
protected void |
onBeforeRender()
Called just before a component is rendered. |
protected void |
onSignInFailed()
Called when sign in failed |
protected void |
onSignInSucceeded()
Called when sign in was successful |
void |
setPassword(java.lang.String password)
Set the password |
void |
setRememberMe(boolean rememberMe)
|
void |
setUsername(java.lang.String username)
Set the username |
Methods inherited from class org.apache.wicket.markup.html.panel.Panel |
---|
newMarkupSourcingStrategy |
Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer |
---|
getWebPage, getWebRequest |
Methods inherited from class org.apache.wicket.MarkupContainer |
---|
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, hasAssociatedMarkup, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onMarkupAttached, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SignInPanel(java.lang.String id)
Component.Component(String)
public SignInPanel(java.lang.String id, boolean includeRememberMe)
id
- See Component constructorincludeRememberMe
- True if form should include a remember-me checkboxComponent.Component(String)
Method Detail |
---|
protected SignInPanel.SignInForm getForm()
protected void onBeforeRender()
Component
NOTE: If you override this, you *must* call super.onBeforeRender() within
your implementation.
Because this method is responsible for cascading Component.onBeforeRender()
call to its
children it is strongly recommended that super call is made at the end of the override.
onBeforeRender
in class Component
Component.onBeforeRender()
public java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
- public java.lang.String getUsername()
public void setUsername(java.lang.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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |