Class SingleUserEncryptedFileBasedAuthInfoStore

java.lang.Object
com.amilesend.onedrive.connection.auth.store.SingleUserEncryptedFileBasedAuthInfoStore
All Implemented Interfaces:
AuthInfoStore

public class SingleUserEncryptedFileBasedAuthInfoStore extends Object implements AuthInfoStore
An AuthInfoStore implementation that stores and retrieves encrypted user authentication information to the filesystem. This assumes a single user associated with the specified file path, which means that any provided keyed identifiers are ignored.
See Also:
  • Constructor Details

    • SingleUserEncryptedFileBasedAuthInfoStore

      public SingleUserEncryptedFileBasedAuthInfoStore(@NonNull Path stateFilePath, @NonNull com.amilesend.client.crypto.CryptoHelper cryptoHelper)
      Creates a new SingleUserEncryptedFileBasedAuthInfoStore instance.
      Parameters:
      stateFilePath - The path to save and read from.
      cryptoHelper - The crypto helper instance used to encrypt and decrypt the auth info file state contents.
  • Method Details