@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InitiateAuthRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Initiates the authentication request.
NOOP| Constructor and Description |
|---|
InitiateAuthRequest() |
| Modifier and Type | Method and Description |
|---|---|
InitiateAuthRequest |
addAuthParametersEntry(String key,
String value) |
InitiateAuthRequest |
addClientMetadataEntry(String key,
String value) |
InitiateAuthRequest |
clearAuthParametersEntries()
Removes all the entries added into AuthParameters.
|
InitiateAuthRequest |
clearClientMetadataEntries()
Removes all the entries added into ClientMetadata.
|
InitiateAuthRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAuthFlow()
The authentication flow for this call to execute.
|
Map<String,String> |
getAuthParameters()
The authentication parameters.
|
String |
getClientId()
The app client ID.
|
Map<String,String> |
getClientMetadata()
This is a random key-value pair map which can contain any key and will be passed to your PreAuthentication Lambda
trigger as-is.
|
int |
hashCode() |
void |
setAuthFlow(AuthFlowType authFlow)
The authentication flow for this call to execute.
|
void |
setAuthFlow(String authFlow)
The authentication flow for this call to execute.
|
void |
setAuthParameters(Map<String,String> authParameters)
The authentication parameters.
|
void |
setClientId(String clientId)
The app client ID.
|
void |
setClientMetadata(Map<String,String> clientMetadata)
This is a random key-value pair map which can contain any key and will be passed to your PreAuthentication Lambda
trigger as-is.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
InitiateAuthRequest |
withAuthFlow(AuthFlowType authFlow)
The authentication flow for this call to execute.
|
InitiateAuthRequest |
withAuthFlow(String authFlow)
The authentication flow for this call to execute.
|
InitiateAuthRequest |
withAuthParameters(Map<String,String> authParameters)
The authentication parameters.
|
InitiateAuthRequest |
withClientId(String clientId)
The app client ID.
|
InitiateAuthRequest |
withClientMetadata(Map<String,String> clientMetadata)
This is a random key-value pair map which can contain any key and will be passed to your PreAuthentication Lambda
trigger as-is.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setAuthFlow(String authFlow)
The authentication flow for this call to execute. The API action will depend on this value. For example:
REFRESH_TOKEN_AUTH will take in a valid refresh token and return new tokens.
USER_SRP_AUTH will take in USERNAME and SRP_A and return the SRP variables
to be used for next challenge execution.
Valid values include:
USER_SRP_AUTH: Authentication flow for the Secure Remote Password (SRP) protocol.
REFRESH_TOKEN_AUTH/REFRESH_TOKEN: Authentication flow for refreshing the access token
and ID token by supplying a valid refresh token.
CUSTOM_AUTH: Custom authentication flow.
ADMIN_NO_SRP_AUTH is not a valid value.
authFlow - The authentication flow for this call to execute. The API action will depend on this value. For example:
REFRESH_TOKEN_AUTH will take in a valid refresh token and return new tokens.
USER_SRP_AUTH will take in USERNAME and SRP_A and return the SRP
variables to be used for next challenge execution.
Valid values include:
USER_SRP_AUTH: Authentication flow for the Secure Remote Password (SRP) protocol.
REFRESH_TOKEN_AUTH/REFRESH_TOKEN: Authentication flow for refreshing the access
token and ID token by supplying a valid refresh token.
CUSTOM_AUTH: Custom authentication flow.
ADMIN_NO_SRP_AUTH is not a valid value.
AuthFlowTypepublic String getAuthFlow()
The authentication flow for this call to execute. The API action will depend on this value. For example:
REFRESH_TOKEN_AUTH will take in a valid refresh token and return new tokens.
USER_SRP_AUTH will take in USERNAME and SRP_A and return the SRP variables
to be used for next challenge execution.
Valid values include:
USER_SRP_AUTH: Authentication flow for the Secure Remote Password (SRP) protocol.
REFRESH_TOKEN_AUTH/REFRESH_TOKEN: Authentication flow for refreshing the access token
and ID token by supplying a valid refresh token.
CUSTOM_AUTH: Custom authentication flow.
ADMIN_NO_SRP_AUTH is not a valid value.
REFRESH_TOKEN_AUTH will take in a valid refresh token and return new tokens.
USER_SRP_AUTH will take in USERNAME and SRP_A and return the SRP
variables to be used for next challenge execution.
Valid values include:
USER_SRP_AUTH: Authentication flow for the Secure Remote Password (SRP) protocol.
REFRESH_TOKEN_AUTH/REFRESH_TOKEN: Authentication flow for refreshing the access
token and ID token by supplying a valid refresh token.
CUSTOM_AUTH: Custom authentication flow.
ADMIN_NO_SRP_AUTH is not a valid value.
AuthFlowTypepublic InitiateAuthRequest withAuthFlow(String authFlow)
The authentication flow for this call to execute. The API action will depend on this value. For example:
REFRESH_TOKEN_AUTH will take in a valid refresh token and return new tokens.
USER_SRP_AUTH will take in USERNAME and SRP_A and return the SRP variables
to be used for next challenge execution.
Valid values include:
USER_SRP_AUTH: Authentication flow for the Secure Remote Password (SRP) protocol.
REFRESH_TOKEN_AUTH/REFRESH_TOKEN: Authentication flow for refreshing the access token
and ID token by supplying a valid refresh token.
CUSTOM_AUTH: Custom authentication flow.
ADMIN_NO_SRP_AUTH is not a valid value.
authFlow - The authentication flow for this call to execute. The API action will depend on this value. For example:
REFRESH_TOKEN_AUTH will take in a valid refresh token and return new tokens.
USER_SRP_AUTH will take in USERNAME and SRP_A and return the SRP
variables to be used for next challenge execution.
Valid values include:
USER_SRP_AUTH: Authentication flow for the Secure Remote Password (SRP) protocol.
REFRESH_TOKEN_AUTH/REFRESH_TOKEN: Authentication flow for refreshing the access
token and ID token by supplying a valid refresh token.
CUSTOM_AUTH: Custom authentication flow.
ADMIN_NO_SRP_AUTH is not a valid value.
AuthFlowTypepublic void setAuthFlow(AuthFlowType authFlow)
The authentication flow for this call to execute. The API action will depend on this value. For example:
REFRESH_TOKEN_AUTH will take in a valid refresh token and return new tokens.
USER_SRP_AUTH will take in USERNAME and SRP_A and return the SRP variables
to be used for next challenge execution.
Valid values include:
USER_SRP_AUTH: Authentication flow for the Secure Remote Password (SRP) protocol.
REFRESH_TOKEN_AUTH/REFRESH_TOKEN: Authentication flow for refreshing the access token
and ID token by supplying a valid refresh token.
CUSTOM_AUTH: Custom authentication flow.
ADMIN_NO_SRP_AUTH is not a valid value.
authFlow - The authentication flow for this call to execute. The API action will depend on this value. For example:
REFRESH_TOKEN_AUTH will take in a valid refresh token and return new tokens.
USER_SRP_AUTH will take in USERNAME and SRP_A and return the SRP
variables to be used for next challenge execution.
Valid values include:
USER_SRP_AUTH: Authentication flow for the Secure Remote Password (SRP) protocol.
REFRESH_TOKEN_AUTH/REFRESH_TOKEN: Authentication flow for refreshing the access
token and ID token by supplying a valid refresh token.
CUSTOM_AUTH: Custom authentication flow.
ADMIN_NO_SRP_AUTH is not a valid value.
AuthFlowTypepublic InitiateAuthRequest withAuthFlow(AuthFlowType authFlow)
The authentication flow for this call to execute. The API action will depend on this value. For example:
REFRESH_TOKEN_AUTH will take in a valid refresh token and return new tokens.
USER_SRP_AUTH will take in USERNAME and SRP_A and return the SRP variables
to be used for next challenge execution.
Valid values include:
USER_SRP_AUTH: Authentication flow for the Secure Remote Password (SRP) protocol.
REFRESH_TOKEN_AUTH/REFRESH_TOKEN: Authentication flow for refreshing the access token
and ID token by supplying a valid refresh token.
CUSTOM_AUTH: Custom authentication flow.
ADMIN_NO_SRP_AUTH is not a valid value.
authFlow - The authentication flow for this call to execute. The API action will depend on this value. For example:
REFRESH_TOKEN_AUTH will take in a valid refresh token and return new tokens.
USER_SRP_AUTH will take in USERNAME and SRP_A and return the SRP
variables to be used for next challenge execution.
Valid values include:
USER_SRP_AUTH: Authentication flow for the Secure Remote Password (SRP) protocol.
REFRESH_TOKEN_AUTH/REFRESH_TOKEN: Authentication flow for refreshing the access
token and ID token by supplying a valid refresh token.
CUSTOM_AUTH: Custom authentication flow.
ADMIN_NO_SRP_AUTH is not a valid value.
AuthFlowTypepublic Map<String,String> getAuthParameters()
The authentication parameters. These are inputs corresponding to the AuthFlow that you are invoking.
The required values depend on the value of AuthFlow:
For USER_SRP_AUTH: USERNAME (required), SRP_A (required),
SECRET_HASH (required if the app client is configured with a client secret), DEVICE_KEY
For REFRESH_TOKEN_AUTH/REFRESH_TOKEN: USERNAME (required), SECRET_HASH
(required if the app client is configured with a client secret), REFRESH_TOKEN (required),
DEVICE_KEY
For CUSTOM_AUTH: USERNAME (required), SECRET_HASH (if app client is
configured with client secret), DEVICE_KEY
AuthFlow that you are
invoking. The required values depend on the value of AuthFlow:
For USER_SRP_AUTH: USERNAME (required), SRP_A (required),
SECRET_HASH (required if the app client is configured with a client secret),
DEVICE_KEY
For REFRESH_TOKEN_AUTH/REFRESH_TOKEN: USERNAME (required),
SECRET_HASH (required if the app client is configured with a client secret),
REFRESH_TOKEN (required), DEVICE_KEY
For CUSTOM_AUTH: USERNAME (required), SECRET_HASH (if app client
is configured with client secret), DEVICE_KEY
public void setAuthParameters(Map<String,String> authParameters)
The authentication parameters. These are inputs corresponding to the AuthFlow that you are invoking.
The required values depend on the value of AuthFlow:
For USER_SRP_AUTH: USERNAME (required), SRP_A (required),
SECRET_HASH (required if the app client is configured with a client secret), DEVICE_KEY
For REFRESH_TOKEN_AUTH/REFRESH_TOKEN: USERNAME (required), SECRET_HASH
(required if the app client is configured with a client secret), REFRESH_TOKEN (required),
DEVICE_KEY
For CUSTOM_AUTH: USERNAME (required), SECRET_HASH (if app client is
configured with client secret), DEVICE_KEY
authParameters - The authentication parameters. These are inputs corresponding to the AuthFlow that you are
invoking. The required values depend on the value of AuthFlow:
For USER_SRP_AUTH: USERNAME (required), SRP_A (required),
SECRET_HASH (required if the app client is configured with a client secret),
DEVICE_KEY
For REFRESH_TOKEN_AUTH/REFRESH_TOKEN: USERNAME (required),
SECRET_HASH (required if the app client is configured with a client secret),
REFRESH_TOKEN (required), DEVICE_KEY
For CUSTOM_AUTH: USERNAME (required), SECRET_HASH (if app client is
configured with client secret), DEVICE_KEY
public InitiateAuthRequest withAuthParameters(Map<String,String> authParameters)
The authentication parameters. These are inputs corresponding to the AuthFlow that you are invoking.
The required values depend on the value of AuthFlow:
For USER_SRP_AUTH: USERNAME (required), SRP_A (required),
SECRET_HASH (required if the app client is configured with a client secret), DEVICE_KEY
For REFRESH_TOKEN_AUTH/REFRESH_TOKEN: USERNAME (required), SECRET_HASH
(required if the app client is configured with a client secret), REFRESH_TOKEN (required),
DEVICE_KEY
For CUSTOM_AUTH: USERNAME (required), SECRET_HASH (if app client is
configured with client secret), DEVICE_KEY
authParameters - The authentication parameters. These are inputs corresponding to the AuthFlow that you are
invoking. The required values depend on the value of AuthFlow:
For USER_SRP_AUTH: USERNAME (required), SRP_A (required),
SECRET_HASH (required if the app client is configured with a client secret),
DEVICE_KEY
For REFRESH_TOKEN_AUTH/REFRESH_TOKEN: USERNAME (required),
SECRET_HASH (required if the app client is configured with a client secret),
REFRESH_TOKEN (required), DEVICE_KEY
For CUSTOM_AUTH: USERNAME (required), SECRET_HASH (if app client is
configured with client secret), DEVICE_KEY
public InitiateAuthRequest addAuthParametersEntry(String key, String value)
public InitiateAuthRequest clearAuthParametersEntries()
public Map<String,String> getClientMetadata()
This is a random key-value pair map which can contain any key and will be passed to your PreAuthentication Lambda trigger as-is. It can be used to implement additional validations around authentication.
public void setClientMetadata(Map<String,String> clientMetadata)
This is a random key-value pair map which can contain any key and will be passed to your PreAuthentication Lambda trigger as-is. It can be used to implement additional validations around authentication.
clientMetadata - This is a random key-value pair map which can contain any key and will be passed to your PreAuthentication
Lambda trigger as-is. It can be used to implement additional validations around authentication.public InitiateAuthRequest withClientMetadata(Map<String,String> clientMetadata)
This is a random key-value pair map which can contain any key and will be passed to your PreAuthentication Lambda trigger as-is. It can be used to implement additional validations around authentication.
clientMetadata - This is a random key-value pair map which can contain any key and will be passed to your PreAuthentication
Lambda trigger as-is. It can be used to implement additional validations around authentication.public InitiateAuthRequest addClientMetadataEntry(String key, String value)
public InitiateAuthRequest clearClientMetadataEntries()
public void setClientId(String clientId)
The app client ID.
clientId - The app client ID.public String getClientId()
The app client ID.
public InitiateAuthRequest withClientId(String clientId)
The app client ID.
clientId - The app client ID.public String toString()
toString in class ObjectObject.toString()public InitiateAuthRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.