/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.cognitoidp.model; import java.io.Serializable; import javax.annotation.Generated; /** *

* Initiates the authentication response. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class InitiateAuthResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { /** *

* The name of the challenge that you're responding to with this call. This name is returned in the * AdminInitiateAuth response if you must pass another challenge. *

*

* Valid values include the following: *

* *

* All of the following challenges require USERNAME and SECRET_HASH (if applicable) in the * parameters. *

*
* */ private String challengeName; /** *

* The session that should pass both ways in challenge-response calls to the service. If the caller must pass * another challenge, they return a session with other challenge parameters. This session should be passed as it is * to the next RespondToAuthChallenge API call. *

*/ private String session; /** *

* The challenge parameters. These are returned in the InitiateAuth response if you must pass another * challenge. The responses in this parameter should be used to compute inputs to the next call ( * RespondToAuthChallenge). *

*

* All challenges require USERNAME and SECRET_HASH (if applicable). *

*/ private java.util.Map challengeParameters; /** *

* The result of the authentication response. This result is only returned if the caller doesn't need to pass * another challenge. If the caller does need to pass another challenge before it gets tokens, * ChallengeName, ChallengeParameters, and Session are returned. *

*/ private AuthenticationResultType authenticationResult; /** *

* The name of the challenge that you're responding to with this call. This name is returned in the * AdminInitiateAuth response if you must pass another challenge. *

*

* Valid values include the following: *

* *

* All of the following challenges require USERNAME and SECRET_HASH (if applicable) in the * parameters. *

*
* * * @param challengeName * The name of the challenge that you're responding to with this call. This name is returned in the * AdminInitiateAuth response if you must pass another challenge.

*

* Valid values include the following: *

* *

* All of the following challenges require USERNAME and SECRET_HASH (if applicable) * in the parameters. *

*
*