public class AuthenticationDetails
extends java.lang.Object
Constructor and Description |
---|
AuthenticationDetails(java.lang.String userId,
java.util.Map<java.lang.String,java.lang.String> authenticationParameters,
java.util.Map<java.lang.String,java.lang.String> validationData)
Constructs a new object for custom authentication.
|
AuthenticationDetails(java.lang.String userId,
java.lang.String password,
java.util.Map<java.lang.String,java.lang.String> validationData)
Constructs a new object with authentication details.
|
AuthenticationDetails(java.lang.String userId,
java.lang.String password,
java.util.Map<java.lang.String,java.lang.String> authenticationParameters,
java.util.Map<java.lang.String,java.lang.String> validationData)
Constructs a new object for custom authentication that starts with SRP protocol.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getAuthenticationParameters()
The authentication parameters set for custom authentication process.
|
java.lang.String |
getAuthenticationType()
This method returns the authentication type.
|
java.lang.String |
getCustomChallenge() |
java.lang.String |
getPassword()
This method returns the password.
|
java.lang.String |
getUserId()
This method returns the User Id.
|
java.util.List<com.amazonaws.services.cognitoidentityprovider.model.AttributeType> |
getValidationData()
This method returns the validation data.
|
void |
setAuthenticationParameter(java.lang.String key,
java.lang.String value)
Set an authentication detail, will override the current value.
|
void |
setAuthenticationParameters(java.util.Map<java.lang.String,java.lang.String> authenticationParameters)
Sets new authentication details, will override the current values.
|
void |
setAuthenticationType(java.lang.String authenticationType)
Set the type of authentication to be used in this instance.
|
void |
setCustomChallenge(java.lang.String customChallenge)
Set the name of the custom challenge.
|
void |
setPassword(java.lang.String password) |
public AuthenticationDetails(java.lang.String userId, java.lang.String password, java.util.Map<java.lang.String,java.lang.String> validationData)
userId
- REQUIRED: User ID, NOTE: This will over ride the current Used ID.password
- REQUIRED: Users' password.validationData
- REQUIRED: Validation data parameters for the pre-auth lambda.public AuthenticationDetails(java.lang.String userId, java.lang.String password, java.util.Map<java.lang.String,java.lang.String> authenticationParameters, java.util.Map<java.lang.String,java.lang.String> validationData)
userId
- REQUIRED: User ID, NOTE: This will over ride the current user IDpassword
- REQUIRED: This will be used to answer the PASSWORD_VERIFIER challenge.authenticationParameters
- REQUIRED: Authentication details that are used in custom
authentication processvalidationData
- REQUIRED: Contains authentication parameters which are passed to
triggered pre-auth lambda trigger.public AuthenticationDetails(java.lang.String userId, java.util.Map<java.lang.String,java.lang.String> authenticationParameters, java.util.Map<java.lang.String,java.lang.String> validationData)
userId
- REQUIRED: User ID, NOTE: This will over ride the current
Used ID.authenticationParameters
- REQUIRED: Authentication details to
launch custom authentication process.validationData
- REQUIRED: Contains authentication parameters
which are passed to triggered pre-auth lambda. triggerpublic void setAuthenticationType(java.lang.String authenticationType)
authenticationType
- REQUIRED: The authentication type indicator.public void setPassword(java.lang.String password)
public java.lang.String getPassword()
public java.lang.String getUserId()
public java.util.List<com.amazonaws.services.cognitoidentityprovider.model.AttributeType> getValidationData()
public java.lang.String getAuthenticationType()
public java.util.Map<java.lang.String,java.lang.String> getAuthenticationParameters()
public void setCustomChallenge(java.lang.String customChallenge)
customChallenge
- REQUIRED: Custom challenge name.public java.lang.String getCustomChallenge()
public void setAuthenticationParameters(java.util.Map<java.lang.String,java.lang.String> authenticationParameters)
authenticationParameters
- REQUIRED: Authentication details as a Map.public void setAuthenticationParameter(java.lang.String key, java.lang.String value)
key
- REQUIRED: Authentication detail key.value
- REQUIRED: Authentication detail value.Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.