public class RespondToAuthChallengeResult
extends java.lang.Object
implements java.io.Serializable
The response to respond to the authentication challenge.
| Constructor and Description |
|---|
RespondToAuthChallengeResult() |
| Modifier and Type | Method and Description |
|---|---|
RespondToAuthChallengeResult |
addChallengeParametersEntry(java.lang.String key,
java.lang.String value)
The challenge parameters.
|
RespondToAuthChallengeResult |
clearChallengeParametersEntries()
Removes all the entries added into ChallengeParameters.
|
boolean |
equals(java.lang.Object obj) |
AuthenticationResultType |
getAuthenticationResult()
The result returned by the server in response to the request to respond
to the authentication challenge.
|
java.lang.String |
getChallengeName()
The challenge name.
|
java.util.Map<java.lang.String,java.lang.String> |
getChallengeParameters()
The challenge parameters.
|
java.lang.String |
getSession()
The session that should be passed both ways in challenge-response calls
to the service.
|
int |
hashCode() |
void |
setAuthenticationResult(AuthenticationResultType authenticationResult)
The result returned by the server in response to the request to respond
to the authentication challenge.
|
void |
setChallengeName(ChallengeNameType challengeName)
The challenge name.
|
void |
setChallengeName(java.lang.String challengeName)
The challenge name.
|
void |
setChallengeParameters(java.util.Map<java.lang.String,java.lang.String> challengeParameters)
The challenge parameters.
|
void |
setSession(java.lang.String session)
The session that should be passed both ways in challenge-response calls
to the service.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RespondToAuthChallengeResult |
withAuthenticationResult(AuthenticationResultType authenticationResult)
The result returned by the server in response to the request to respond
to the authentication challenge.
|
RespondToAuthChallengeResult |
withChallengeName(ChallengeNameType challengeName)
The challenge name.
|
RespondToAuthChallengeResult |
withChallengeName(java.lang.String challengeName)
The challenge name.
|
RespondToAuthChallengeResult |
withChallengeParameters(java.util.Map<java.lang.String,java.lang.String> challengeParameters)
The challenge parameters.
|
RespondToAuthChallengeResult |
withSession(java.lang.String session)
The session that should be passed both ways in challenge-response calls
to the service.
|
public java.lang.String getChallengeName()
The challenge name. For more information, see InitiateAuth.
Constraints:
Allowed Values: SMS_MFA, SOFTWARE_TOKEN_MFA, SELECT_MFA_TYPE,
MFA_SETUP, PASSWORD_VERIFIER, CUSTOM_CHALLENGE, DEVICE_SRP_AUTH,
DEVICE_PASSWORD_VERIFIER, ADMIN_NO_SRP_AUTH, NEW_PASSWORD_REQUIRED
The challenge name. For more information, see InitiateAuth.
ChallengeNameTypepublic void setChallengeName(java.lang.String challengeName)
The challenge name. For more information, see InitiateAuth.
Constraints:
Allowed Values: SMS_MFA, SOFTWARE_TOKEN_MFA, SELECT_MFA_TYPE,
MFA_SETUP, PASSWORD_VERIFIER, CUSTOM_CHALLENGE, DEVICE_SRP_AUTH,
DEVICE_PASSWORD_VERIFIER, ADMIN_NO_SRP_AUTH, NEW_PASSWORD_REQUIRED
challengeName - The challenge name. For more information, see InitiateAuth.
ChallengeNameTypepublic RespondToAuthChallengeResult withChallengeName(java.lang.String challengeName)
The challenge name. For more information, see InitiateAuth.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SMS_MFA, SOFTWARE_TOKEN_MFA, SELECT_MFA_TYPE,
MFA_SETUP, PASSWORD_VERIFIER, CUSTOM_CHALLENGE, DEVICE_SRP_AUTH,
DEVICE_PASSWORD_VERIFIER, ADMIN_NO_SRP_AUTH, NEW_PASSWORD_REQUIRED
challengeName - The challenge name. For more information, see InitiateAuth.
ChallengeNameTypepublic void setChallengeName(ChallengeNameType challengeName)
The challenge name. For more information, see InitiateAuth.
Constraints:
Allowed Values: SMS_MFA, SOFTWARE_TOKEN_MFA, SELECT_MFA_TYPE,
MFA_SETUP, PASSWORD_VERIFIER, CUSTOM_CHALLENGE, DEVICE_SRP_AUTH,
DEVICE_PASSWORD_VERIFIER, ADMIN_NO_SRP_AUTH, NEW_PASSWORD_REQUIRED
challengeName - The challenge name. For more information, see InitiateAuth.
ChallengeNameTypepublic RespondToAuthChallengeResult withChallengeName(ChallengeNameType challengeName)
The challenge name. For more information, see InitiateAuth.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SMS_MFA, SOFTWARE_TOKEN_MFA, SELECT_MFA_TYPE,
MFA_SETUP, PASSWORD_VERIFIER, CUSTOM_CHALLENGE, DEVICE_SRP_AUTH,
DEVICE_PASSWORD_VERIFIER, ADMIN_NO_SRP_AUTH, NEW_PASSWORD_REQUIRED
challengeName - The challenge name. For more information, see InitiateAuth.
ChallengeNameTypepublic java.lang.String getSession()
The session that should be passed 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.
Constraints:
Length: 20 - 2048
The session that should be passed 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.
public void setSession(java.lang.String session)
The session that should be passed 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.
Constraints:
Length: 20 - 2048
session -
The session that should be passed 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.
public RespondToAuthChallengeResult withSession(java.lang.String session)
The session that should be passed 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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 20 - 2048
session -
The session that should be passed 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.
public java.util.Map<java.lang.String,java.lang.String> getChallengeParameters()
The challenge parameters. For more information, see InitiateAuth.
The challenge parameters. For more information, see InitiateAuth.
public void setChallengeParameters(java.util.Map<java.lang.String,java.lang.String> challengeParameters)
The challenge parameters. For more information, see InitiateAuth.
challengeParameters - The challenge parameters. For more information, see InitiateAuth.
public RespondToAuthChallengeResult withChallengeParameters(java.util.Map<java.lang.String,java.lang.String> challengeParameters)
The challenge parameters. For more information, see InitiateAuth.
Returns a reference to this object so that method calls can be chained together.
challengeParameters - The challenge parameters. For more information, see InitiateAuth.
public RespondToAuthChallengeResult addChallengeParametersEntry(java.lang.String key, java.lang.String value)
The challenge parameters. For more information, see InitiateAuth.
The method adds a new key-value pair into ChallengeParameters parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into ChallengeParameters.value - The corresponding value of the entry to be added into
ChallengeParameters.public RespondToAuthChallengeResult clearChallengeParametersEntries()
Returns a reference to this object so that method calls can be chained together.
public AuthenticationResultType getAuthenticationResult()
The result returned by the server in response to the request to respond to the authentication challenge.
The result returned by the server in response to the request to respond to the authentication challenge.
public void setAuthenticationResult(AuthenticationResultType authenticationResult)
The result returned by the server in response to the request to respond to the authentication challenge.
authenticationResult - The result returned by the server in response to the request to respond to the authentication challenge.
public RespondToAuthChallengeResult withAuthenticationResult(AuthenticationResultType authenticationResult)
The result returned by the server in response to the request to respond to the authentication challenge.
Returns a reference to this object so that method calls can be chained together.
authenticationResult - The result returned by the server in response to the request to respond to the authentication challenge.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object