Work with PluginAdapters
The guide focuses on storing files in S3, keeping credentials in Secrets Vaults, and using Data Stores.
The general ODF approach is to inject PluginAdapters through a constructor and then use the methods available in the adapter.
Each time you create a public Java class, all objects, such as Data Stores and S3 Manager, are injected as dependencies. See some examples below:
To work with S3, inject
S3PluginAdapter. See the available methods below:
To work with a Data Store, inject
DatastorePluginAdapter.
For Secrets Vault, use
SecretsVaultPluginAdapter. See an example ofSecretsVaultPluginAdapterandDatastorePluginAdapterused together below: