Codota Logo
InitiateAuthResponse.challengeNameAsString
Code IndexAdd Codota to your IDE (free)

How to use
challengeNameAsString
method
in
software.amazon.awssdk.services.cognitoidentityprovider.model.InitiateAuthResponse

Best Java code snippets using software.amazon.awssdk.services.cognitoidentityprovider.model.InitiateAuthResponse.challengeNameAsString (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: aws/aws-sdk-java-v2

public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
  switch (fieldName) {
  case "ChallengeName":
    return Optional.ofNullable(clazz.cast(challengeNameAsString()));
  case "Session":
    return Optional.ofNullable(clazz.cast(session()));
  case "ChallengeParameters":
    return Optional.ofNullable(clazz.cast(challengeParameters()));
  case "AuthenticationResult":
    return Optional.ofNullable(clazz.cast(authenticationResult()));
  default:
    return Optional.empty();
  }
}
origin: aws/aws-sdk-java-v2

/**
 * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
 * redacted from this string using a placeholder value.
 */
@Override
public String toString() {
  return ToString.builder("InitiateAuthResponse").add("ChallengeName", challengeNameAsString()).add("Session", session())
      .add("ChallengeParameters", challengeParameters()).add("AuthenticationResult", authenticationResult()).build();
}
origin: software.amazon.awssdk/cognitoidp

@Override
public String toString() {
  return ToString.builder("InitiateAuthResponse").add("ChallengeName", challengeNameAsString()).add("Session", session())
      .add("ChallengeParameters", challengeParameters()).add("AuthenticationResult", authenticationResult()).build();
}
origin: software.amazon.awssdk/cognitoidp

public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) {
  switch (fieldName) {
  case "ChallengeName":
    return Optional.ofNullable(clazz.cast(challengeNameAsString()));
  case "Session":
    return Optional.ofNullable(clazz.cast(session()));
  case "ChallengeParameters":
    return Optional.ofNullable(clazz.cast(challengeParameters()));
  case "AuthenticationResult":
    return Optional.ofNullable(clazz.cast(authenticationResult()));
  default:
    return Optional.empty();
  }
}
origin: aws/aws-sdk-java-v2

@Override
public int hashCode() {
  int hashCode = 1;
  hashCode = 31 * hashCode + Objects.hashCode(challengeNameAsString());
  hashCode = 31 * hashCode + Objects.hashCode(session());
  hashCode = 31 * hashCode + Objects.hashCode(challengeParameters());
  hashCode = 31 * hashCode + Objects.hashCode(authenticationResult());
  return hashCode;
}
origin: software.amazon.awssdk/cognitoidp

@Override
public int hashCode() {
  int hashCode = 1;
  hashCode = 31 * hashCode + Objects.hashCode(challengeNameAsString());
  hashCode = 31 * hashCode + Objects.hashCode(session());
  hashCode = 31 * hashCode + Objects.hashCode(challengeParameters());
  hashCode = 31 * hashCode + Objects.hashCode(authenticationResult());
  return hashCode;
}
origin: software.amazon.awssdk/cognitoidp

@Override
public boolean equals(Object obj) {
  if (this == obj) {
    return true;
  }
  if (obj == null) {
    return false;
  }
  if (!(obj instanceof InitiateAuthResponse)) {
    return false;
  }
  InitiateAuthResponse other = (InitiateAuthResponse) obj;
  return Objects.equals(challengeNameAsString(), other.challengeNameAsString())
      && Objects.equals(session(), other.session())
      && Objects.equals(challengeParameters(), other.challengeParameters())
      && Objects.equals(authenticationResult(), other.authenticationResult());
}
origin: aws/aws-sdk-java-v2

@Override
public boolean equals(Object obj) {
  if (this == obj) {
    return true;
  }
  if (obj == null) {
    return false;
  }
  if (!(obj instanceof InitiateAuthResponse)) {
    return false;
  }
  InitiateAuthResponse other = (InitiateAuthResponse) obj;
  return Objects.equals(challengeNameAsString(), other.challengeNameAsString())
      && Objects.equals(session(), other.session())
      && Objects.equals(challengeParameters(), other.challengeParameters())
      && Objects.equals(authenticationResult(), other.authenticationResult());
}
software.amazon.awssdk.services.cognitoidentityprovider.modelInitiateAuthResponsechallengeNameAsString

Javadoc

The name of the challenge which you are responding to with this call. This is returned to you in the AdminInitiateAuth response if you need to pass another challenge.

Valid values include the following. Note that all of these challenges require USERNAME and SECRET_HASH (if applicable) in the parameters.

  • SMS_MFA: Next challenge is to supply an SMS_MFA_CODE, delivered via SMS.

  • PASSWORD_VERIFIER: Next challenge is to supply PASSWORD_CLAIM_SIGNATURE, PASSWORD_CLAIM_SECRET_BLOCK, and TIMESTAMP after the client-side SRP calculations.

  • CUSTOM_CHALLENGE: This is returned if your custom authentication flow determines that the user should pass another challenge before tokens are issued.

  • DEVICE_SRP_AUTH: If device tracking was enabled on your user pool and the previous challenges were passed, this challenge is returned so that Amazon Cognito can start tracking this device.

  • DEVICE_PASSWORD_VERIFIER: Similar to PASSWORD_VERIFIER, but for devices only.

  • NEW_PASSWORD_REQUIRED: For users which are required to change their passwords after successful first login. This challenge should be passed with NEW_PASSWORD and any other required attributes.

If the service returns an enum value that is not available in the current SDK version, #challengeNamewill return ChallengeNameType#UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from #challengeNameAsString.

Popular methods of InitiateAuthResponse

  • <init>
  • authenticationResult
    The result of the authentication response. This is only returned if the caller does not need to pas
  • challengeParameters
    The challenge parameters. These are returned to you in the InitiateAuth response if you need to pa
  • session
    The session which should be passed both ways in challenge-response calls to the service. If the Ini
  • builder

Popular in Java

  • Reactive rest calls using spring rest template
  • getSharedPreferences (Context)
  • putExtra (Intent)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • JPanel (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now