Class VirtualMFADevice
- All Implemented Interfaces:
Serializable
,Cloneable
Contains information about a virtual MFA device.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The Base32 seed defined as specified in RFC3548.The date and time on which the virtual MFA device was enabled.A QR code PNG image that encodesotpauth://totp/$virtualMFADeviceName@$AccountName?
The serial number associated withVirtualMFADevice
.getUser()
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 encodesotpauth://totp/$virtualMFADeviceName@$AccountName?
void
setSerialNumber
(String serialNumber) The serial number associated withVirtualMFADevice
.void
toString()
Returns a string representation of this object; useful for testing and debugging.withBase32StringSeed
(ByteBuffer base32StringSeed) The Base32 seed defined as specified in RFC3548.withEnableDate
(Date enableDate) The date and time on which the virtual MFA device was enabled.withQRCodePNG
(ByteBuffer qRCodePNG) A QR code PNG image that encodesotpauth://totp/$virtualMFADeviceName@$AccountName?
withSerialNumber
(String serialNumber) The serial number associated withVirtualMFADevice
.
-
Constructor Details
-
VirtualMFADevice
public VirtualMFADevice()
-
-
Method Details
-
setSerialNumber
The serial number associated with
VirtualMFADevice
.- Parameters:
serialNumber
- The serial number associated withVirtualMFADevice
.
-
getSerialNumber
The serial number associated with
VirtualMFADevice
.- Returns:
- The serial number associated with
VirtualMFADevice
.
-
withSerialNumber
The serial number associated with
VirtualMFADevice
.- Parameters:
serialNumber
- The serial number associated withVirtualMFADevice
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setBase32StringSeed
The Base32 seed defined as specified in RFC3548. The
Base32StringSeed
is Base64-encoded.AWS SDK for Java performs a Base64 encoding on this field before sending this request to AWS service by default. 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.
- Parameters:
base32StringSeed
- The Base32 seed defined as specified in RFC3548. TheBase32StringSeed
is Base64-encoded.
-
getBase32StringSeed
The Base32 seed defined as specified in RFC3548. The
Base32StringSeed
is Base64-encoded.ByteBuffer
s are stateful. Calling theirget
methods changes theirposition
. We recommend usingByteBuffer.asReadOnlyBuffer()
to create a read-only view of the buffer with an independentposition
, and callingget
methods on this rather than directly on the returnedByteBuffer
. Doing so will ensure that anyone else using theByteBuffer
will not be affected by changes to theposition
.- Returns:
- The Base32 seed defined as specified in RFC3548. The
Base32StringSeed
is Base64-encoded.
-
withBase32StringSeed
The Base32 seed defined as specified in RFC3548. The
Base32StringSeed
is Base64-encoded.- Parameters:
base32StringSeed
- The Base32 seed defined as specified in RFC3548. TheBase32StringSeed
is Base64-encoded.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setQRCodePNG
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), andBase32String
is the seed in Base32 format. TheBase32String
value is Base64-encoded.AWS SDK for Java performs a Base64 encoding on this field before sending this request to AWS service by default. 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.
- Parameters:
qRCodePNG
- A QR code PNG image that encodesotpauth://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), andBase32String
is the seed in Base32 format. TheBase32String
value is Base64-encoded.
-
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), andBase32String
is the seed in Base32 format. TheBase32String
value is Base64-encoded.ByteBuffer
s are stateful. Calling theirget
methods changes theirposition
. We recommend usingByteBuffer.asReadOnlyBuffer()
to create a read-only view of the buffer with an independentposition
, and callingget
methods on this rather than directly on the returnedByteBuffer
. Doing so will ensure that anyone else using theByteBuffer
will not be affected by changes to theposition
.- Returns:
- 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), andBase32String
is the seed in Base32 format. TheBase32String
value is Base64-encoded.
-
withQRCodePNG
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), andBase32String
is the seed in Base32 format. TheBase32String
value is Base64-encoded.- Parameters:
qRCodePNG
- A QR code PNG image that encodesotpauth://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), andBase32String
is the seed in Base32 format. TheBase32String
value is Base64-encoded.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setUser
- Parameters:
user
-
-
getUser
- Returns:
-
withUser
- Parameters:
user
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEnableDate
The date and time on which the virtual MFA device was enabled.
- Parameters:
enableDate
- The date and time on which the virtual MFA device was enabled.
-
getEnableDate
The date and time on which the virtual MFA device was enabled.
- Returns:
- The date and time on which the virtual MFA device was enabled.
-
withEnableDate
The date and time on which the virtual MFA device was enabled.
- Parameters:
enableDate
- The date and time on which the virtual MFA device was enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-