Package eu.webtoolkit.jwt.auth
Class PasswordPromptDialog
java.lang.Object
eu.webtoolkit.jwt.WObject
eu.webtoolkit.jwt.WWidget
eu.webtoolkit.jwt.WCompositeWidget
eu.webtoolkit.jwt.WPopupWidget
eu.webtoolkit.jwt.WDialog
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
Nested classes/interfaces inherited from class eu.webtoolkit.jwt.WObject
WObject.FormData
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PasswordPromptDialog(Login login, AuthModel model)
Constructor. -
Method Summary
Modifier and Type Method Description protected void
check()
Methods inherited from class eu.webtoolkit.jwt.WDialog
accept, done, enterPressed, escapePressed, exec, exec, finished, getContents, getFooter, getResult, getTitleBar, getWindowTitle, isClosable, isModal, isMovable, isResizable, isTitleBarEnabled, keyPressed, keyWentDown, keyWentUp, moved, onPathChange, positionAt, positionAt, raiseToFront, reject, rejectWhenEscapePressed, rejectWhenEscapePressed, remove, render, resized, setAutoFocus, setClosable, setHidden, setMaximumSize, setMinimumSize, setModal, setMovable, setResizable, setTitleBarEnabled, setWindowTitle, touchEnded, touchMoved, touchStarted
Methods inherited from class eu.webtoolkit.jwt.WPopupWidget
getAnchorWidget, getAutoHideDelay, getOrientation, hidden, isDeleteWhenHidden, isTransient, setAnchorWidget, setAnchorWidget, setDeleteWhenHidden, setParent, setTransient, setTransient, shown
Methods inherited from class eu.webtoolkit.jwt.WCompositeWidget
addStyleClass, boxBorder, boxPadding, callJavaScriptMember, doJavaScript, enableAjax, find, findById, getAttributeValue, getBaseZIndex, getClearSides, getDecorationStyle, getFloatSide, getHeight, getId, getImplementation, getJavaScriptMember, getLineHeight, getMargin, getMaximumHeight, getMaximumWidth, getMinimumHeight, getMinimumWidth, getObjectName, getOffset, getPositionScheme, getScrollVisibilityMargin, getStyleClass, getTabIndex, getTakeImplementation, getToolTip, getVerticalAlignment, getVerticalAlignmentLength, getWidth, hasFocus, hasStyleClass, isCanReceiveFocus, isDisabled, isEnabled, isHidden, isHiddenKeepsGeometry, isInline, isLoaded, isPopup, isScrollVisibilityEnabled, isScrollVisible, isSetFirstFocus, isThemeStyleEnabled, isVisible, load, propagateSetEnabled, propagateSetVisible, refresh, removeStyleClass, resize, scrollVisibilityChanged, setAttributeValue, setCanReceiveFocus, setClearSides, setDecorationStyle, setDeferredToolTip, setDisabled, setFloatSide, setFocus, setHiddenKeepsGeometry, setId, setImplementation, setInline, setJavaScriptMember, setLineHeight, setMargin, setObjectName, setOffsets, setPopup, setPositionScheme, setScrollVisibilityEnabled, setScrollVisibilityMargin, setSelectable, setStyleClass, setTabIndex, setThemeStyleEnabled, setToolTip, setVerticalAlignment
Methods inherited from class eu.webtoolkit.jwt.WWidget
acceptDrops, acceptDrops, addCssRule, addCssRule, addJSignal, addStyleClass, animateHide, animateShow, createJavaScript, disable, dropEvent, enable, getDropTouch, getJsRef, getParent, hide, htmlText, isExposed, isLayoutSizeAware, isRendered, layoutSizeChanged, needsRerender, positionAt, removeChild, removeStyleClass, render, resize, scheduleRender, scheduleRender, scheduleRender, setClearSides, setDeferredToolTip, setFocus, 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, setFormData
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
login_
-
model_
-
impl_
-
-
Constructor Details
-
PasswordPromptDialog
Constructor.From the passed
login
object, the dialog obtains theUser
for which a valid password needs to be entered. The result, if successful, is signalled usingLogin#login()
.
-
-
Method Details
-
check
protected void check()
-