public class VirtualMFADevice extends Object implements Serializable, Cloneable
Contains information about a virtual MFA device.
Constructor and Description |
---|
VirtualMFADevice() |
Modifier and Type | Method and Description |
---|---|
VirtualMFADevice |
clone() |
boolean |
equals(Object obj) |
ByteBuffer |
getBase32StringSeed()
The Base32 seed defined as specified in RFC3548.
|
Date |
getEnableDate()
The date and time on which the virtual MFA device was enabled.
|
ByteBuffer |
getQRCodePNG()
A QR code PNG image that encodes
otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String
where $virtualMFADeviceName is one of the create call
arguments, AccountName is the user name if set
(otherwise, the account ID otherwise), and Base32String
is the seed in Base32 format. |
String |
getSerialNumber()
The serial number associated with
VirtualMFADevice . |
User |
getUser()
Contains information about an IAM user entity.
|
int |
hashCode() |
void |
setBase32StringSeed(ByteBuffer base32StringSeed)
The Base32 seed defined as specified in RFC3548.
|
void |
setEnableDate(Date enableDate)
The date and time on which the virtual MFA device was enabled.
|
void |
setQRCodePNG(ByteBuffer qRCodePNG)
A QR code PNG image that encodes
otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String
where $virtualMFADeviceName is one of the create call
arguments, AccountName is the user name if set
(otherwise, the account ID otherwise), and Base32String
is the seed in Base32 format. |
void |
setSerialNumber(String serialNumber)
The serial number associated with
VirtualMFADevice . |
void |
setUser(User user)
Contains information about an IAM user entity.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
VirtualMFADevice |
withBase32StringSeed(ByteBuffer base32StringSeed)
The Base32 seed defined as specified in RFC3548.
|
VirtualMFADevice |
withEnableDate(Date enableDate)
The date and time on which the virtual MFA device was enabled.
|
VirtualMFADevice |
withQRCodePNG(ByteBuffer qRCodePNG)
A QR code PNG image that encodes
otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String
where $virtualMFADeviceName is one of the create call
arguments, AccountName is the user name if set
(otherwise, the account ID otherwise), and Base32String
is the seed in Base32 format. |
VirtualMFADevice |
withSerialNumber(String serialNumber)
The serial number associated with
VirtualMFADevice . |
VirtualMFADevice |
withUser(User user)
Contains information about an IAM user entity.
|
public String getSerialNumber()
VirtualMFADevice
.
Constraints:
Length: 9 - 256
Pattern: [\w+=/:,.@-]+
VirtualMFADevice
.public void setSerialNumber(String serialNumber)
VirtualMFADevice
.
Constraints:
Length: 9 - 256
Pattern: [\w+=/:,.@-]+
serialNumber
- The serial number associated with VirtualMFADevice
.public VirtualMFADevice withSerialNumber(String serialNumber)
VirtualMFADevice
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 9 - 256
Pattern: [\w+=/:,.@-]+
serialNumber
- The serial number associated with VirtualMFADevice
.public ByteBuffer getBase32StringSeed()
Base32StringSeed
is Base64-encoded.Base32StringSeed
is Base64-encoded.public void setBase32StringSeed(ByteBuffer base32StringSeed)
Base32StringSeed
is Base64-encoded.base32StringSeed
- The Base32 seed defined as specified in RFC3548. The
Base32StringSeed
is Base64-encoded.public VirtualMFADevice withBase32StringSeed(ByteBuffer base32StringSeed)
Base32StringSeed
is Base64-encoded.
Returns a reference to this object so that method calls can be chained together.
base32StringSeed
- The Base32 seed defined as specified in RFC3548. The
Base32StringSeed
is Base64-encoded.public ByteBuffer getQRCodePNG()
otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String
where $virtualMFADeviceName
is one of the create call
arguments, AccountName
is the user name if set
(otherwise, the account ID otherwise), and Base32String
is the seed in Base32 format. The Base32String
value is
Base64-encoded.otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String
where $virtualMFADeviceName
is one of the create call
arguments, AccountName
is the user name if set
(otherwise, the account ID otherwise), and Base32String
is the seed in Base32 format. The Base32String
value is
Base64-encoded.public void setQRCodePNG(ByteBuffer qRCodePNG)
otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String
where $virtualMFADeviceName
is one of the create call
arguments, AccountName
is the user name if set
(otherwise, the account ID otherwise), and Base32String
is the seed in Base32 format. The Base32String
value is
Base64-encoded.qRCodePNG
- A QR code PNG image that encodes
otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String
where $virtualMFADeviceName
is one of the create call
arguments, AccountName
is the user name if set
(otherwise, the account ID otherwise), and Base32String
is the seed in Base32 format. The Base32String
value is
Base64-encoded.public VirtualMFADevice withQRCodePNG(ByteBuffer qRCodePNG)
otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String
where $virtualMFADeviceName
is one of the create call
arguments, AccountName
is the user name if set
(otherwise, the account ID otherwise), and Base32String
is the seed in Base32 format. The Base32String
value is
Base64-encoded.
Returns a reference to this object so that method calls can be chained together.
qRCodePNG
- A QR code PNG image that encodes
otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String
where $virtualMFADeviceName
is one of the create call
arguments, AccountName
is the user name if set
(otherwise, the account ID otherwise), and Base32String
is the seed in Base32 format. The Base32String
value is
Base64-encoded.public User getUser()
This data type is used as a response element in the following actions:
This data type is used as a response element in the following actions:
public void setUser(User user)
This data type is used as a response element in the following actions:
user
- Contains information about an IAM user entity. This data type is used as a response element in the following actions:
public VirtualMFADevice withUser(User user)
This data type is used as a response element in the following actions:
Returns a reference to this object so that method calls can be chained together.
user
- Contains information about an IAM user entity. This data type is used as a response element in the following actions:
public Date getEnableDate()
public void setEnableDate(Date enableDate)
enableDate
- The date and time on which the virtual MFA device was enabled.public VirtualMFADevice withEnableDate(Date enableDate)
Returns a reference to this object so that method calls can be chained together.
enableDate
- The date and time on which the virtual MFA device was enabled.public String toString()
toString
in class Object
Object.toString()
public VirtualMFADevice clone()
Copyright © 2015. All rights reserved.