@Generated(value="software.amazon.awssdk:codegen") public final class RespondToAuthChallengeResponse extends CognitoIdentityProviderResponse implements ToCopyableBuilder<RespondToAuthChallengeResponse.Builder,RespondToAuthChallengeResponse>
The response to respond to the authentication challenge.
| Modifier and Type | Class and Description |
|---|---|
static interface |
RespondToAuthChallengeResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
AuthenticationResultType |
authenticationResult()
The result returned by the server in response to the request to respond to the authentication challenge.
|
static RespondToAuthChallengeResponse.Builder |
builder() |
ChallengeNameType |
challengeName()
The challenge name.
|
String |
challengeNameAsString()
The challenge name.
|
Map<String,String> |
challengeParameters()
The challenge parameters.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasChallengeParameters()
Returns true if the ChallengeParameters property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends RespondToAuthChallengeResponse.Builder> |
serializableBuilderClass() |
String |
session()
The session which should be passed both ways in challenge-response calls to the service.
|
RespondToAuthChallengeResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final ChallengeNameType challengeName()
The challenge name. For more information, see InitiateAuth.
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().
ChallengeNameTypepublic final String challengeNameAsString()
The challenge name. For more information, see InitiateAuth.
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().
ChallengeNameTypepublic final String session()
The session which should be passed both ways in challenge-response calls to the service. If 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.
RespondToAuthChallenge API call.public final boolean hasChallengeParameters()
public final Map<String,String> challengeParameters()
The challenge parameters. For more information, see InitiateAuth.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasChallengeParameters() to see if a value was sent in this field.
public final AuthenticationResultType authenticationResult()
The result returned by the server in response to the request to respond to the authentication challenge.
public RespondToAuthChallengeResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<RespondToAuthChallengeResponse.Builder,RespondToAuthChallengeResponse>toBuilder in class AwsResponsepublic static RespondToAuthChallengeResponse.Builder builder()
public static Class<? extends RespondToAuthChallengeResponse.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsResponsepublic final boolean equals(Object obj)
equals in class AwsResponsepublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkResponseCopyright © 2021. All rights reserved.