@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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()
The IAM user associated with this virtual MFA device.
|
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)
The IAM user associated with this virtual MFA device.
|
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)
The IAM user associated with this virtual MFA device.
|
public void setSerialNumber(String serialNumber)
The serial number associated with VirtualMFADevice
.
serialNumber
- The serial number associated with VirtualMFADevice
.public String getSerialNumber()
The serial number associated with VirtualMFADevice
.
VirtualMFADevice
.public VirtualMFADevice withSerialNumber(String serialNumber)
The serial number associated with VirtualMFADevice
.
serialNumber
- The serial number associated with VirtualMFADevice
.public void setBase32StringSeed(ByteBuffer base32StringSeed)
The Base32 seed defined as specified in RFC3548. The
Base32StringSeed
is Base64-encoded.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
base32StringSeed
- The Base32 seed defined as specified in RFC3548. The
Base32StringSeed
is Base64-encoded.public ByteBuffer getBase32StringSeed()
The Base32 seed defined as specified in RFC3548. The
Base32StringSeed
is Base64-encoded.
ByteBuffer
s are stateful. Calling their get
methods changes their position
. We recommend
using ByteBuffer.asReadOnlyBuffer()
to create a read-only view of the buffer with an independent
position
, and calling get
methods on this rather than directly on the returned ByteBuffer
.
Doing so will ensure that anyone else using the ByteBuffer
will not be affected by changes to the
position
.
Base32StringSeed
is Base64-encoded.public VirtualMFADevice withBase32StringSeed(ByteBuffer base32StringSeed)
The Base32 seed defined as specified in RFC3548. The
Base32StringSeed
is Base64-encoded.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
base32StringSeed
- The Base32 seed defined as specified in RFC3548. The
Base32StringSeed
is Base64-encoded.public 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. The
Base32String
value is Base64-encoded.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
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 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. The
Base32String
value is Base64-encoded.
ByteBuffer
s are stateful. Calling their get
methods changes their position
. We recommend
using ByteBuffer.asReadOnlyBuffer()
to create a read-only view of the buffer with an independent
position
, and calling get
methods on this rather than directly on the returned ByteBuffer
.
Doing so will ensure that anyone else using the ByteBuffer
will not be affected by changes to the
position
.
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)
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.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
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 void setUser(User user)
The IAM user associated with this virtual MFA device.
user
- The IAM user associated with this virtual MFA device.public User getUser()
The IAM user associated with this virtual MFA device.
public VirtualMFADevice withUser(User user)
The IAM user associated with this virtual MFA device.
user
- The IAM user associated with this virtual MFA device.public void setEnableDate(Date enableDate)
The date and time on which the virtual MFA device was enabled.
enableDate
- The date and time on which the virtual MFA device was enabled.public Date getEnableDate()
The date and time on which the virtual MFA device was enabled.
public VirtualMFADevice withEnableDate(Date enableDate)
The date and time on which the virtual MFA device was enabled.
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 © 2013 Amazon Web Services, Inc. All Rights Reserved.