@Generated(value="software.amazon.awssdk:codegen") public final class RespondToAuthChallengeRequest extends CognitoIdentityProviderRequest implements ToCopyableBuilder<RespondToAuthChallengeRequest.Builder,RespondToAuthChallengeRequest>
The request to respond to an authentication challenge.
| Modifier and Type | Class and Description |
|---|---|
static interface |
RespondToAuthChallengeRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
AnalyticsMetadataType |
analyticsMetadata()
The Amazon Pinpoint analytics metadata for collecting metrics for
RespondToAuthChallenge calls. |
static RespondToAuthChallengeRequest.Builder |
builder() |
ChallengeNameType |
challengeName()
The challenge name.
|
String |
challengeNameAsString()
The challenge name.
|
Map<String,String> |
challengeResponses()
The challenge responses.
|
String |
clientId()
The app client ID.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends RespondToAuthChallengeRequest.Builder> |
serializableBuilderClass() |
String |
session()
The session which should be passed both ways in challenge-response calls to the service.
|
RespondToAuthChallengeRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
UserContextDataType |
userContextData()
Contextual data such as the user's device fingerprint, IP address, or location used for evaluating the risk of an
unexpected event by Amazon Cognito advanced security.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String clientId()
The app client ID.
public ChallengeNameType challengeName()
The challenge name. For more information, see .
ADMIN_NO_SRP_AUTH is not a valid value.
If the service returns an enum value that is not available in the current SDK version, challengeName
will return ChallengeNameType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from challengeNameAsString().
ADMIN_NO_SRP_AUTH is not a valid value.
ChallengeNameTypepublic String challengeNameAsString()
The challenge name. For more information, see .
ADMIN_NO_SRP_AUTH is not a valid value.
If the service returns an enum value that is not available in the current SDK version, challengeName
will return ChallengeNameType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from challengeNameAsString().
ADMIN_NO_SRP_AUTH is not a valid value.
ChallengeNameTypepublic String session()
The session which should be passed both ways in challenge-response calls to the service. If
InitiateAuth or RespondToAuthChallenge API call determines that the caller needs to go
through another challenge, they return a session with other challenge parameters. This session should be passed
as it is to the next RespondToAuthChallenge API call.
InitiateAuth or RespondToAuthChallenge API call determines that the caller
needs to go through another challenge, they return a session with other challenge parameters. This
session should be passed as it is to the next RespondToAuthChallenge API call.public Map<String,String> challengeResponses()
The challenge responses. These are inputs corresponding to the value of ChallengeName, for example:
SMS_MFA: SMS_MFA_CODE, USERNAME, SECRET_HASH (if app client
is configured with client secret).
PASSWORD_VERIFIER: PASSWORD_CLAIM_SIGNATURE, PASSWORD_CLAIM_SECRET_BLOCK,
TIMESTAMP, USERNAME, SECRET_HASH (if app client is configured with client
secret).
NEW_PASSWORD_REQUIRED: NEW_PASSWORD, any other required attributes,
USERNAME, SECRET_HASH (if app client is configured with client secret).
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
ChallengeName, for
example:
SMS_MFA: SMS_MFA_CODE, USERNAME, SECRET_HASH (if app
client is configured with client secret).
PASSWORD_VERIFIER: PASSWORD_CLAIM_SIGNATURE,
PASSWORD_CLAIM_SECRET_BLOCK, TIMESTAMP, USERNAME,
SECRET_HASH (if app client is configured with client secret).
NEW_PASSWORD_REQUIRED: NEW_PASSWORD, any other required attributes,
USERNAME, SECRET_HASH (if app client is configured with client secret).
public AnalyticsMetadataType analyticsMetadata()
The Amazon Pinpoint analytics metadata for collecting metrics for RespondToAuthChallenge calls.
RespondToAuthChallenge
calls.public UserContextDataType userContextData()
Contextual data such as the user's device fingerprint, IP address, or location used for evaluating the risk of an unexpected event by Amazon Cognito advanced security.
public RespondToAuthChallengeRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<RespondToAuthChallengeRequest.Builder,RespondToAuthChallengeRequest>toBuilder in class CognitoIdentityProviderRequestpublic static RespondToAuthChallengeRequest.Builder builder()
public static Class<? extends RespondToAuthChallengeRequest.Builder> serializableBuilderClass()
public int hashCode()
hashCode in class AwsRequestpublic boolean equals(Object obj)
equals in class AwsRequestpublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2019. All rights reserved.