Package com.mailosaur
Class Devices
java.lang.Object
com.mailosaur.Devices
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(DeviceCreateOptions options) Creates a new virtual security device.voidPermanently delete a device.list()Returns a list of your virtual security devices.Retrieve the current one-time password.
-
Constructor Details
-
Devices
-
-
Method Details
-
list
Returns a list of your virtual security devices.- Returns:
- The result of the device listing operation.
- Throws:
MailosaurException- Thrown if Mailosaur responds with an error.IOException- Unexpected exception.
-
create
Creates a new virtual security device.- Parameters:
options- Options used to create a new Mailosaur virtual security device.- Returns:
- Mailosaur virtual security device.
- Throws:
MailosaurException- Thrown if Mailosaur responds with an error.IOException- Unexpected exception.
-
otp
Retrieve the current one-time password.- Parameters:
query- Either the unique identifier of the device, or a base32-encoded shared secret.- Returns:
- The current one-time password.
- Throws:
MailosaurException- Thrown if Mailosaur responds with an error.IOException- Unexpected exception.
-
delete
Permanently delete a device. This operation cannot be undone.- Parameters:
deviceId- The unique identifier of the device.- Throws:
MailosaurException- Thrown if Mailosaur responds with an error.
-