A
- type of AppUserT
- type of transition targetpublic class AuthorisedConfirmTransition<A extends AppUser,T> extends ConfirmTransition<T>
ConfirmTransition
that checks for a 2-factor code
if the user has one configured (and has not recently authenticated).FORCE_CONFIRM_ATTR, NO, YES
Constructor and Description |
---|
AuthorisedConfirmTransition(java.lang.String name,
DirectTransition<T> yes,
DirectTransition<T> no,
java.lang.String sufficienct_role) |
Modifier and Type | Method and Description |
---|---|
void |
buildForm(Form f,
T target,
AppContext c)
Build the transition form.
|
getExtraHtml, getResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExtraHtml
public AuthorisedConfirmTransition(java.lang.String name, DirectTransition<T> yes, DirectTransition<T> no, java.lang.String sufficienct_role)
name
- yes
- no
- public void buildForm(Form f, T target, AppContext c) throws TransitionException
BaseFormTransition
buildForm
in interface BaseFormTransition<T>
buildForm
in class ConfirmTransition<T>
f
- Form to be builttarget
- target ObjectTransitionException