Class PasswordPromptDialog
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 WObject
WObject.FormData -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected WTemplateFormViewprotected final Loginprotected AuthModelFields inherited from class WWidget
WT_GETEXTRAMS_JS -
Constructor Summary
ConstructorsConstructorDescriptionPasswordPromptDialog(Login login, AuthModel model) Constructor.PasswordPromptDialog(Login login, AuthModel model, WContainerWidget parentContainer) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheck()Returns the multi-factor authentication process.voidsetMfaProcess(AbstractMfaProcess mfaProcess) Sets the multi-factor authentication process.protected voidMethods inherited from class WDialog
accept, done, enterPressed, escapePressed, exec, exec, finished, getContents, getFooter, getResult, getTitleBar, getWindowTitle, isClosable, isModal, isMovable, isResizable, isSetFirstFocus, 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, touchStartedMethods inherited from class WPopupWidget
getAdjust, getAnchorWidget, getAutoHideDelay, getOrientation, hidden, isTransient, setAdjust, setAdjust, setAnchorWidget, setAnchorWidget, setTransient, setTransient, shownMethods inherited from class WCompositeWidget
addStyleClass, anchorAt, becomePositionAnchor, boxBorder, boxPadding, callJavaScriptMember, doJavaScript, enableAjax, find, findById, getAttributeValue, getBaseZIndex, getChildren, getClearSides, getDecorationStyle, getFloatSide, getHeight, getId, getImplementation, getJavaScriptMember, getLineHeight, getMargin, getMaximumHeight, getMaximumWidth, getMinimumHeight, getMinimumWidth, getObjectName, getOffset, getPositionAnchor, getPositionAnchorName, getPositionScheme, getScrollVisibilityMargin, getStyleClass, getTabIndex, getTakeImplementation, getToolTip, getVerticalAlignment, getVerticalAlignmentLength, getWidth, hasFocus, hasStyleClass, isCanReceiveFocus, isDisabled, isEnabled, isHidden, isHiddenKeepsGeometry, isInline, isLoaded, isPopup, isScrollVisibilityEnabled, isScrollVisible, isThemeStyleEnabled, isVisible, load, propagateSetEnabled, propagateSetVisible, refresh, removeStyleClass, removeWidget, resize, scrollVisibilityChanged, setAttributeValue, setCanReceiveFocus, setClearSides, setDecorationStyle, setDeferredToolTip, setDisabled, setFloatSide, setFocus, setHiddenKeepsGeometry, setId, setImplementation, setInline, setJavaScriptMember, setLineHeight, setMargin, setObjectName, setOffsets, setParentWidget, setPopup, setPositionAnchor, setPositionAnchor, setPositionScheme, setScrollVisibilityEnabled, setScrollVisibilityMargin, setSelectable, setStyleClass, setTabIndex, setThemeStyleEnabled, setToolTip, setVerticalAlignmentMethods inherited from class WWidget
acceptDrops, acceptDrops, addCssRule, addCssRule, addJSignal, addStyleClass, anchorAt, animateHide, animateShow, applyThemeStyles, createJavaScript, disable, dropEvent, enable, getDropTouch, getJsRef, getParent, hide, htmlText, htmlText, isExposed, isGlobalWidget, isLayoutSizeAware, isPositionAnchor, isRendered, layoutSizeChanged, needsRerender, positionAt, positionAt, positionAt, removeFromParent, removeStyleClass, render, resize, scheduleRender, scheduleRender, scheduleRender, scheduleThemeStyleApply, setClearSides, setDeferredToolTip, setFocus, setHeight, setHidden, setLayoutSizeAware, setMargin, setMargin, setMargin, setMargin, setMargin, setOffsets, setOffsets, setOffsets, setOffsets, setOffsets, setToolTip, setVerticalAlignment, setWidth, show, stopAcceptDrops, toggleStyleClass, toggleStyleClass, trMethods inherited from class WObject
resendFormData, setFormData
-
Field Details
-
login_
-
model_
-
impl_
-
-
Constructor Details
-
PasswordPromptDialog
Constructor.From the passed
loginobject, the dialog obtains theUserfor which a valid password needs to be entered. The result, if successful, is signalled usingLogin#login(). -
PasswordPromptDialog
Constructor.
-
-
Method Details
-
setMfaProcess
Sets the multi-factor authentication process.Adds a multi-factor authentication process that will be used after the correct password has been entered.
-
getMfaProcess
Returns the multi-factor authentication process.Returns the multi-factor authentication process that has been set, or
nullif none has been set. -
check
protected void check() -
showMfaProcess
protected void showMfaProcess()
-