eu.webtoolkit.jwt.auth
Class PasswordPromptDialog

java.lang.Object
  extended by eu.webtoolkit.jwt.WObject
      extended by eu.webtoolkit.jwt.WWidget
          extended by eu.webtoolkit.jwt.WCompositeWidget
              extended by eu.webtoolkit.jwt.WPopupWidget
                  extended by eu.webtoolkit.jwt.WDialog
                      extended by eu.webtoolkit.jwt.auth.PasswordPromptDialog

public class PasswordPromptDialog
extends WDialog

A dialog that prompts for the user password.

This is a simple dialog, useful for prompting the user to enter his password. This may be convenient for example to let the user upgrade from a weak authentication to a strong authentication.

The dialog uses a Login object to get the currently identified user, and also sets the result of the login process by calling Login#login() on this object.

The dialog renders the "Wt.Auth.template.password-prompt" template.


Nested Class Summary
 
Nested classes/interfaces inherited from class eu.webtoolkit.jwt.WDialog
WDialog.DialogCode
 
Field Summary
protected  WTemplateFormView impl_
           
protected  Login login_
           
protected  AuthModel model_
           
 
Fields inherited from class eu.webtoolkit.jwt.WWidget
WT_GETPS_JS
 
Constructor Summary
PasswordPromptDialog(Login login, AuthModel model)
          Constructor.
 
Method Summary
protected  void check()
           
 
Methods inherited from class eu.webtoolkit.jwt.WDialog
accept, done, exec, exec, finished, getContents, getFooter, getResult, getTitleBar, getWindowTitle, isClosable, isModal, isResizable, isTitleBarEnabled, positionAt, reject, rejectWhenEscapePressed, remove, setClosable, setHidden, setMaximumSize, setMinimumSize, setModal, setResizable, setTitleBarEnabled, setWindowTitle
 
Methods inherited from class eu.webtoolkit.jwt.WPopupWidget
getAnchorWidget, getAutoHideDelay, getOrientation, hidden, isTransient, setAnchorWidget, setAnchorWidget, setParent, setTransient, setTransient, shown
 
Methods inherited from class eu.webtoolkit.jwt.WCompositeWidget
addStyleClass, boxBorder, boxPadding, callJavaScriptMember, doJavaScript, enableAjax, find, findById, getAttributeValue, getClearSides, getDecorationStyle, getFloatSide, getHeight, getId, getImplementation, getJavaScriptMember, getLineHeight, getMargin, getMaximumHeight, getMaximumWidth, getMinimumHeight, getMinimumWidth, getOffset, getPositionScheme, getStyleClass, getTabIndex, getTakeImplementation, getToolTip, getVerticalAlignment, getVerticalAlignmentLength, getWidth, hasStyleClass, isDisabled, isEnabled, isHidden, isHiddenKeepsGeometry, isInline, isLoaded, isPopup, isVisible, load, propagateSetEnabled, refresh, removeStyleClass, resize, setAttributeValue, setClearSides, setDecorationStyle, setDisabled, setFloatSide, setHiddenKeepsGeometry, setId, setImplementation, setInline, setJavaScriptMember, setLineHeight, setMargin, setOffsets, setPopup, setPositionScheme, setSelectable, setStyleClass, setTabIndex, setToolTip, setVerticalAlignment
 
Methods inherited from class eu.webtoolkit.jwt.WWidget
acceptDrops, acceptDrops, addCssRule, addCssRule, addStyleClass, animateHide, animateShow, createJavaScript, disable, dropEvent, enable, getDrop, getJsRef, getParent, hide, htmlText, isExposed, isLayoutSizeAware, isRendered, layoutSizeChanged, positionAt, removeStyleClass, resize, scheduleRender, scheduleRerender, setClearSides, setHeight, setHidden, setLayoutSizeAware, setMargin, setMargin, setMargin, setMargin, setMargin, setOffsets, setOffsets, setOffsets, setOffsets, setOffsets, setToolTip, setVerticalAlignment, setWidth, show, stopAcceptDrops, toggleStyleClass, toggleStyleClass, tr
 
Methods inherited from class eu.webtoolkit.jwt.WObject
addChild, getObjectName, setObjectName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

login_

protected Login login_

model_

protected AuthModel model_

impl_

protected WTemplateFormView impl_
Constructor Detail

PasswordPromptDialog

public PasswordPromptDialog(Login login,
                            AuthModel model)
Constructor.

From the passed login object, the dialog obtains the User for which a valid password needs to be entered. The result, if successful, is signalled using Login#login().

Method Detail

check

protected void check()