public class VerifySoftwareTokenRequest extends AmazonWebServiceRequest implements Serializable
Use this API to register a user's entered TOTP code and mark the user's software token MFA status as "verified" if successful. The request takes an access token or a session string, but not both.
Constructor and Description |
---|
VerifySoftwareTokenRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAccessToken()
The access token.
|
String |
getFriendlyDeviceName()
The friendly device name.
|
String |
getSession()
The session which should be passed both ways in challenge-response calls
to the service.
|
String |
getUserCode()
The one time password computed using the secret code returned by
|
int |
hashCode() |
void |
setAccessToken(String accessToken)
The access token.
|
void |
setFriendlyDeviceName(String friendlyDeviceName)
The friendly device name.
|
void |
setSession(String session)
The session which should be passed both ways in challenge-response calls
to the service.
|
void |
setUserCode(String userCode)
The one time password computed using the secret code returned by
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
VerifySoftwareTokenRequest |
withAccessToken(String accessToken)
The access token.
|
VerifySoftwareTokenRequest |
withFriendlyDeviceName(String friendlyDeviceName)
The friendly device name.
|
VerifySoftwareTokenRequest |
withSession(String session)
The session which should be passed both ways in challenge-response calls
to the service.
|
VerifySoftwareTokenRequest |
withUserCode(String userCode)
The one time password computed using the secret code returned by
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getAccessToken()
The access token.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
The access token.
public void setAccessToken(String accessToken)
The access token.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
accessToken
- The access token.
public VerifySoftwareTokenRequest withAccessToken(String accessToken)
The access token.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
accessToken
- The access token.
public String getSession()
The session which should be passed both ways in challenge-response calls to the service.
Constraints:
Length: 20 - 2048
The session which should be passed both ways in challenge-response calls to the service.
public void setSession(String session)
The session which should be passed both ways in challenge-response calls to the service.
Constraints:
Length: 20 - 2048
session
- The session which should be passed both ways in challenge-response calls to the service.
public VerifySoftwareTokenRequest withSession(String session)
The session which should be passed both ways in challenge-response calls to the service.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 20 - 2048
session
- The session which should be passed both ways in challenge-response calls to the service.
public String getUserCode()
The one time password computed using the secret code returned by
Constraints:
Length: 6 - 6
Pattern: [0-9]+
The one time password computed using the secret code returned by
public void setUserCode(String userCode)
The one time password computed using the secret code returned by
Constraints:
Length: 6 - 6
Pattern: [0-9]+
userCode
- The one time password computed using the secret code returned by
public VerifySoftwareTokenRequest withUserCode(String userCode)
The one time password computed using the secret code returned by
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 6 - 6
Pattern: [0-9]+
userCode
- The one time password computed using the secret code returned by
public String getFriendlyDeviceName()
The friendly device name.
The friendly device name.
public void setFriendlyDeviceName(String friendlyDeviceName)
The friendly device name.
friendlyDeviceName
- The friendly device name.
public VerifySoftwareTokenRequest withFriendlyDeviceName(String friendlyDeviceName)
The friendly device name.
Returns a reference to this object so that method calls can be chained together.
friendlyDeviceName
- The friendly device name.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2020. All rights reserved.