Previous Topic: ExceptionNext Topic: Storing Accounts in Memory


Choosing Custom Storage Medium

ArcotID OTP library enables you to store accounts in the storage medium of your choice. You implement the Store interface to define the storage medium, and then set that as the default.

Perform the following steps to set up a custom storage:

  1. Implement the Store interface to use the custom storage.
  2. Invoke the setStore() method in the OTP class to initialize the storage medium.

The ProxyStore class is a basic implementation of the Store interface. Each method of this class throws RuntimeException to indicate that it is just a sample and that it must be replaced.