public class AuthenticationDetails extends Object
| Constructor and Description |
|---|
AuthenticationDetails(String userId,
Map<String,String> authenticationParameters,
Map<String,String> validationData)
Constructs a new object for custom authentication.
|
AuthenticationDetails(String userId,
String password,
Map<String,String> validationData)
Constructs a new object with authentication details.
|
AuthenticationDetails(String userId,
String password,
Map<String,String> authenticationParameters,
Map<String,String> validationData)
Constructs a new object for custom authentication that starts with SRP protocol.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getAuthenticationParameters()
The authentication parameters set for custom authentication process.
|
String |
getAuthenticationType()
This method returns the authentication type.
|
String |
getCustomChallenge() |
String |
getPassword()
This method returns the password.
|
String |
getUserId()
This method returns the User Id.
|
List<AttributeType> |
getValidationData()
This method returns the validation data.
|
void |
setAuthenticationParameter(String key,
String value)
Set an authentication detail, will override the current value.
|
void |
setAuthenticationParameters(Map<String,String> authenticationParameters)
Sets new authentication details, will override the current values.
|
void |
setAuthenticationType(String authenticationType)
Set the type of authentication to be used in this instance.
|
void |
setCustomChallenge(String customChallenge)
Set the name of the custom challenge.
|
void |
setPassword(String password) |
public AuthenticationDetails(String userId, String password, Map<String,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(String userId, String password, Map<String,String> authenticationParameters, Map<String,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(String userId, Map<String,String> authenticationParameters, Map<String,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(String authenticationType)
authenticationType - REQUIRED: The authentication type indicator.public void setPassword(String password)
public String getPassword()
public String getUserId()
public List<AttributeType> getValidationData()
public String getAuthenticationType()
public Map<String,String> getAuthenticationParameters()
public void setCustomChallenge(String customChallenge)
customChallenge - REQUIRED: Custom challenge name.public String getCustomChallenge()
public void setAuthenticationParameters(Map<String,String> authenticationParameters)
authenticationParameters - REQUIRED: Authentication details as a Map.Copyright © 2020. All rights reserved.