public class CognitoMfaSettings
extends java.lang.Object
Requires MFA name to instantiate.
MFA enabled and preferred states are set to false
by default.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SMS_MFA
SMS MFA type.
|
static java.lang.String |
TOTP_MFA
Software token MFA type.
|
Constructor and Description |
---|
CognitoMfaSettings(java.lang.String mfaName)
Instantiates this class for an MFA.
|
Modifier and Type | Method and Description |
---|---|
java.lang.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 java.lang.String SMS_MFA
public static final java.lang.String TOTP_MFA
public CognitoMfaSettings(java.lang.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 java.lang.String getMfaName()
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.