public class CognitoMfaSettings extends Object
Requires MFA name to instantiate.
MFA enabled and preferred states are set to false by default.
| Modifier and Type | Field and Description |
|---|---|
static String |
SMS_MFA
SMS MFA type.
|
static String |
TOTP_MFA
Software token MFA type.
|
| Constructor and Description |
|---|
CognitoMfaSettings(String mfaName)
Instantiates this class for an MFA.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMfaName()
Returns MFA name.
|
boolean |
isEnabled()
Returns MFA enabled state.
|
boolean |
isPreferred()
Returns preferred state of this MFA.
|
void |
setEnabled(boolean enabled)
Sets MFA state.
|
void |
setPreferred(boolean preferred)
Sets preferred state for this MFA.
|
public static final String SMS_MFA
public static final String TOTP_MFA
public CognitoMfaSettings(String mfaName)
mfaName - Required: The MFA name.public boolean isEnabled()
true if this MFA is enabled.public void setEnabled(boolean enabled)
enabled - set this to true to enable this MFA.public boolean isPreferred()
true if this is set a the preferred MFA.public void setPreferred(boolean preferred)
preferred - true if this MFA should be the preferred.public String getMfaName()
Copyright © 2020. All rights reserved.