Class VirtualMFADevice
- java.lang.Object
-
- com.amazonaws.services.identitymanagement.model.VirtualMFADevice
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class VirtualMFADevice extends Object implements Serializable, Cloneable
Contains information about a virtual MFA device.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VirtualMFADevice()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 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.String
getSerialNumber()
The serial number associated withVirtualMFADevice
.User
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?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.void
setSerialNumber(String serialNumber)
The serial number associated withVirtualMFADevice
.void
setUser(User user)
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 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.VirtualMFADevice
withSerialNumber(String serialNumber)
The serial number associated withVirtualMFADevice
.VirtualMFADevice
withUser(User user)
-
-
-
Method Detail
-
setSerialNumber
public void setSerialNumber(String serialNumber)
The serial number associated with
VirtualMFADevice
.- Parameters:
serialNumber
- The serial number associated withVirtualMFADevice
.
-
getSerialNumber
public String getSerialNumber()
The serial number associated with
VirtualMFADevice
.- Returns:
- The serial number associated with
VirtualMFADevice
.
-
withSerialNumber
public VirtualMFADevice withSerialNumber(String serialNumber)
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
public void setBase32StringSeed(ByteBuffer base32StringSeed)
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
public ByteBuffer 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
public VirtualMFADevice withBase32StringSeed(ByteBuffer base32StringSeed)
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
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), 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
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), 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
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), 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
public void setUser(User user)
- Parameters:
user
-
-
getUser
public User getUser()
- Returns:
-
withUser
public VirtualMFADevice withUser(User user)
- Parameters:
user
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEnableDate
public void setEnableDate(Date enableDate)
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
public Date 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
public VirtualMFADevice withEnableDate(Date enableDate)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public VirtualMFADevice clone()
-
-