Interface AdminRespondToAuthChallengeResponse.Builder

    • Method Detail

      • challengeName

        AdminRespondToAuthChallengeResponse.Builder challengeName​(String challengeName)

        The name of the challenge that you must next respond to. You can find more information about values for ChallengeName in the response parameters of AdminInitiateAuth.

        Parameters:
        challengeName - The name of the challenge that you must next respond to. You can find more information about values for ChallengeName in the response parameters of AdminInitiateAuth.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ChallengeNameType, ChallengeNameType
      • session

        AdminRespondToAuthChallengeResponse.Builder session​(String session)

        The session identifier that maintains the state of authentication requests and challenge responses. If an AdminInitiateAuth or AdminRespondToAuthChallenge API request results in a determination that your application must pass another challenge, Amazon Cognito returns a session with other challenge parameters. Send this session identifier, unmodified, to the next AdminRespondToAuthChallenge request.

        Parameters:
        session - The session identifier that maintains the state of authentication requests and challenge responses. If an AdminInitiateAuth or AdminRespondToAuthChallenge API request results in a determination that your application must pass another challenge, Amazon Cognito returns a session with other challenge parameters. Send this session identifier, unmodified, to the next AdminRespondToAuthChallenge request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • challengeParameters

        AdminRespondToAuthChallengeResponse.Builder challengeParameters​(Map<String,​String> challengeParameters)

        The parameters that define your response to the next challenge. Take the values in ChallengeParameters and provide values for them in the ChallengeResponses of the next AdminRespondToAuthChallenge request.

        Parameters:
        challengeParameters - The parameters that define your response to the next challenge. Take the values in ChallengeParameters and provide values for them in the ChallengeResponses of the next AdminRespondToAuthChallenge request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • authenticationResult

        AdminRespondToAuthChallengeResponse.Builder authenticationResult​(AuthenticationResultType authenticationResult)

        The outcome of a successful authentication process. After your application has passed all challenges, Amazon Cognito returns an AuthenticationResult with the JSON web tokens (JWTs) that indicate successful sign-in.

        Parameters:
        authenticationResult - The outcome of a successful authentication process. After your application has passed all challenges, Amazon Cognito returns an AuthenticationResult with the JSON web tokens (JWTs) that indicate successful sign-in.
        Returns:
        Returns a reference to this object so that method calls can be chained together.