/* * 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, as an administrator. *

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

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

* */ private String challengeName; /** *

* The session that should be passed both ways in challenge-response calls to the service. If * AdminInitiateAuth or AdminRespondToAuthChallenge API call determines that 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 AdminRespondToAuthChallenge API call. *

*/ private String session; /** *

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

*

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

*

* The value of the USER_ID_FOR_SRP attribute is the user's actual username, not an alias (such as * email address or phone number), even if you specified an alias in your call to AdminInitiateAuth. * This happens because, in the AdminRespondToAuthChallenge API ChallengeResponses, the * USERNAME attribute can't be an alias. *

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

* The result of the authentication response. This 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 is returned in the * AdminInitiateAuth response if you must pass another challenge. *

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

*