ToCopyableBuilder<VirtualMFADevice.Builder,VirtualMFADevice>
@Generated("software.amazon.awssdk:codegen") public class VirtualMFADevice extends Object implements ToCopyableBuilder<VirtualMFADevice.Builder,VirtualMFADevice>
Contains information about a virtual MFA device.
Modifier and Type | Class | Description |
---|---|---|
static interface |
VirtualMFADevice.Builder |
Modifier and Type | Method | Description |
---|---|---|
ByteBuffer |
base32StringSeed() |
The Base32 seed defined as specified in RFC3548.
|
static VirtualMFADevice.Builder |
builder() |
|
Date |
enableDate() |
The date and time on which the virtual MFA device was enabled.
|
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
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. |
static Class<? extends VirtualMFADevice.Builder> |
serializableBuilderClass() |
|
String |
serialNumber() |
The serial number associated with
VirtualMFADevice . |
VirtualMFADevice.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
|
User |
user() |
The IAM user associated with this virtual MFA device.
|
public String serialNumber()
The serial number associated with VirtualMFADevice
.
VirtualMFADevice
.public ByteBuffer base32StringSeed()
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 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.
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 User user()
The IAM user associated with this virtual MFA device.
public Date enableDate()
The date and time on which the virtual MFA device was enabled.
public VirtualMFADevice.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<VirtualMFADevice.Builder,VirtualMFADevice>
public static VirtualMFADevice.Builder builder()
public static Class<? extends VirtualMFADevice.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.