@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DeviceConfigurationType extends Object implements Serializable, Cloneable, StructuredPojo
The device-remembering configuration for a user pool. A null value indicates that you have deactivated device remembering in your user pool.
When you provide a value for any DeviceConfiguration field, you activate the Amazon Cognito
device-remembering feature.
| Constructor and Description |
|---|
DeviceConfigurationType() |
| Modifier and Type | Method and Description |
|---|---|
DeviceConfigurationType |
clone() |
boolean |
equals(Object obj) |
Boolean |
getChallengeRequiredOnNewDevice()
When true, device authentication can replace SMS and time-based one-time password (TOTP) factors for multi-factor
authentication (MFA).
|
Boolean |
getDeviceOnlyRememberedOnUserPrompt()
When true, Amazon Cognito doesn't remember newly-confirmed devices.
|
int |
hashCode() |
Boolean |
isChallengeRequiredOnNewDevice()
When true, device authentication can replace SMS and time-based one-time password (TOTP) factors for multi-factor
authentication (MFA).
|
Boolean |
isDeviceOnlyRememberedOnUserPrompt()
When true, Amazon Cognito doesn't remember newly-confirmed devices.
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setChallengeRequiredOnNewDevice(Boolean challengeRequiredOnNewDevice)
When true, device authentication can replace SMS and time-based one-time password (TOTP) factors for multi-factor
authentication (MFA).
|
void |
setDeviceOnlyRememberedOnUserPrompt(Boolean deviceOnlyRememberedOnUserPrompt)
When true, Amazon Cognito doesn't remember newly-confirmed devices.
|
String |
toString()
Returns a string representation of this object.
|
DeviceConfigurationType |
withChallengeRequiredOnNewDevice(Boolean challengeRequiredOnNewDevice)
When true, device authentication can replace SMS and time-based one-time password (TOTP) factors for multi-factor
authentication (MFA).
|
DeviceConfigurationType |
withDeviceOnlyRememberedOnUserPrompt(Boolean deviceOnlyRememberedOnUserPrompt)
When true, Amazon Cognito doesn't remember newly-confirmed devices.
|
public void setChallengeRequiredOnNewDevice(Boolean challengeRequiredOnNewDevice)
When true, device authentication can replace SMS and time-based one-time password (TOTP) factors for multi-factor authentication (MFA).
Regardless of the value of this field, users that sign in with new devices that have not been confirmed or remembered must provide a second factor if your user pool requires MFA.
challengeRequiredOnNewDevice - When true, device authentication can replace SMS and time-based one-time password (TOTP) factors for
multi-factor authentication (MFA). Regardless of the value of this field, users that sign in with new devices that have not been confirmed or remembered must provide a second factor if your user pool requires MFA.
public Boolean getChallengeRequiredOnNewDevice()
When true, device authentication can replace SMS and time-based one-time password (TOTP) factors for multi-factor authentication (MFA).
Regardless of the value of this field, users that sign in with new devices that have not been confirmed or remembered must provide a second factor if your user pool requires MFA.
Regardless of the value of this field, users that sign in with new devices that have not been confirmed or remembered must provide a second factor if your user pool requires MFA.
public DeviceConfigurationType withChallengeRequiredOnNewDevice(Boolean challengeRequiredOnNewDevice)
When true, device authentication can replace SMS and time-based one-time password (TOTP) factors for multi-factor authentication (MFA).
Regardless of the value of this field, users that sign in with new devices that have not been confirmed or remembered must provide a second factor if your user pool requires MFA.
challengeRequiredOnNewDevice - When true, device authentication can replace SMS and time-based one-time password (TOTP) factors for
multi-factor authentication (MFA). Regardless of the value of this field, users that sign in with new devices that have not been confirmed or remembered must provide a second factor if your user pool requires MFA.
public Boolean isChallengeRequiredOnNewDevice()
When true, device authentication can replace SMS and time-based one-time password (TOTP) factors for multi-factor authentication (MFA).
Regardless of the value of this field, users that sign in with new devices that have not been confirmed or remembered must provide a second factor if your user pool requires MFA.
Regardless of the value of this field, users that sign in with new devices that have not been confirmed or remembered must provide a second factor if your user pool requires MFA.
public void setDeviceOnlyRememberedOnUserPrompt(Boolean deviceOnlyRememberedOnUserPrompt)
When true, Amazon Cognito doesn't remember newly-confirmed devices. Users who want to authenticate with their device can instead opt in to remembering their device. To collect a choice from your user, create an input prompt in your app and return the value that the user chooses in an UpdateDeviceStatus API request.
deviceOnlyRememberedOnUserPrompt - When true, Amazon Cognito doesn't remember newly-confirmed devices. Users who want to authenticate with
their device can instead opt in to remembering their device. To collect a choice from your user, create an
input prompt in your app and return the value that the user chooses in an UpdateDeviceStatus API request.public Boolean getDeviceOnlyRememberedOnUserPrompt()
When true, Amazon Cognito doesn't remember newly-confirmed devices. Users who want to authenticate with their device can instead opt in to remembering their device. To collect a choice from your user, create an input prompt in your app and return the value that the user chooses in an UpdateDeviceStatus API request.
public DeviceConfigurationType withDeviceOnlyRememberedOnUserPrompt(Boolean deviceOnlyRememberedOnUserPrompt)
When true, Amazon Cognito doesn't remember newly-confirmed devices. Users who want to authenticate with their device can instead opt in to remembering their device. To collect a choice from your user, create an input prompt in your app and return the value that the user chooses in an UpdateDeviceStatus API request.
deviceOnlyRememberedOnUserPrompt - When true, Amazon Cognito doesn't remember newly-confirmed devices. Users who want to authenticate with
their device can instead opt in to remembering their device. To collect a choice from your user, create an
input prompt in your app and return the value that the user chooses in an UpdateDeviceStatus API request.public Boolean isDeviceOnlyRememberedOnUserPrompt()
When true, Amazon Cognito doesn't remember newly-confirmed devices. Users who want to authenticate with their device can instead opt in to remembering their device. To collect a choice from your user, create an input prompt in your app and return the value that the user chooses in an UpdateDeviceStatus API request.
public String toString()
toString in class ObjectObject.toString()public DeviceConfigurationType clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2022. All rights reserved.