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 VirtualMFADeviceclone()booleanequals(Object obj)ByteBuffergetBase32StringSeed()The Base32 seed defined as specified in RFC3548.DategetEnableDate()The date and time on which the virtual MFA device was enabled.ByteBuffergetQRCodePNG()A QR code PNG image that encodesotpauth://totp/$virtualMFADeviceName@$AccountName?StringgetSerialNumber()The serial number associated withVirtualMFADevice.UsergetUser()inthashCode()voidsetBase32StringSeed(ByteBuffer base32StringSeed)The Base32 seed defined as specified in RFC3548.voidsetEnableDate(Date enableDate)The date and time on which the virtual MFA device was enabled.voidsetQRCodePNG(ByteBuffer qRCodePNG)A QR code PNG image that encodesotpauth://totp/$virtualMFADeviceName@$AccountName?voidsetSerialNumber(String serialNumber)The serial number associated withVirtualMFADevice.voidsetUser(User user)StringtoString()Returns a string representation of this object; useful for testing and debugging.VirtualMFADevicewithBase32StringSeed(ByteBuffer base32StringSeed)The Base32 seed defined as specified in RFC3548.VirtualMFADevicewithEnableDate(Date enableDate)The date and time on which the virtual MFA device was enabled.VirtualMFADevicewithQRCodePNG(ByteBuffer qRCodePNG)A QR code PNG image that encodesotpauth://totp/$virtualMFADeviceName@$AccountName?VirtualMFADevicewithSerialNumber(String serialNumber)The serial number associated withVirtualMFADevice.VirtualMFADevicewithUser(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
Base32StringSeedis 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. TheBase32StringSeedis Base64-encoded.
-
getBase32StringSeed
public ByteBuffer getBase32StringSeed()
The Base32 seed defined as specified in RFC3548. The
Base32StringSeedis Base64-encoded.ByteBuffers are stateful. Calling theirgetmethods changes theirposition. We recommend usingByteBuffer.asReadOnlyBuffer()to create a read-only view of the buffer with an independentposition, and callinggetmethods on this rather than directly on the returnedByteBuffer. Doing so will ensure that anyone else using theByteBufferwill not be affected by changes to theposition.- Returns:
- The Base32 seed defined as specified in RFC3548. The
Base32StringSeedis Base64-encoded.
-
withBase32StringSeed
public VirtualMFADevice withBase32StringSeed(ByteBuffer base32StringSeed)
The Base32 seed defined as specified in RFC3548. The
Base32StringSeedis Base64-encoded.- Parameters:
base32StringSeed- The Base32 seed defined as specified in RFC3548. TheBase32StringSeedis 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=$Base32Stringwhere$virtualMFADeviceNameis one of the create call arguments,AccountNameis the user name if set (otherwise, the account ID otherwise), andBase32Stringis the seed in Base32 format. TheBase32Stringvalue 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=$Base32Stringwhere$virtualMFADeviceNameis one of the create call arguments,AccountNameis the user name if set (otherwise, the account ID otherwise), andBase32Stringis the seed in Base32 format. TheBase32Stringvalue is Base64-encoded.
-
getQRCodePNG
public ByteBuffer getQRCodePNG()
A QR code PNG image that encodes
otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32Stringwhere$virtualMFADeviceNameis one of the create call arguments,AccountNameis the user name if set (otherwise, the account ID otherwise), andBase32Stringis the seed in Base32 format. TheBase32Stringvalue is Base64-encoded.ByteBuffers are stateful. Calling theirgetmethods changes theirposition. We recommend usingByteBuffer.asReadOnlyBuffer()to create a read-only view of the buffer with an independentposition, and callinggetmethods on this rather than directly on the returnedByteBuffer. Doing so will ensure that anyone else using theByteBufferwill not be affected by changes to theposition.- Returns:
- A QR code PNG image that encodes
otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32Stringwhere$virtualMFADeviceNameis one of the create call arguments,AccountNameis the user name if set (otherwise, the account ID otherwise), andBase32Stringis the seed in Base32 format. TheBase32Stringvalue is Base64-encoded.
-
withQRCodePNG
public VirtualMFADevice withQRCodePNG(ByteBuffer qRCodePNG)
A QR code PNG image that encodes
otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32Stringwhere$virtualMFADeviceNameis one of the create call arguments,AccountNameis the user name if set (otherwise, the account ID otherwise), andBase32Stringis the seed in Base32 format. TheBase32Stringvalue is Base64-encoded.- Parameters:
qRCodePNG- A QR code PNG image that encodesotpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32Stringwhere$virtualMFADeviceNameis one of the create call arguments,AccountNameis the user name if set (otherwise, the account ID otherwise), andBase32Stringis the seed in Base32 format. TheBase32Stringvalue 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public VirtualMFADevice clone()
-
-