Class DefaultSecureStorageProvider

java.lang.Object
org.forgerock.audit.providers.DefaultSecureStorageProvider
All Implemented Interfaces:
SecureStorageProvider

public class DefaultSecureStorageProvider extends Object implements SecureStorageProvider
Default implementation of SecureStorageProvider.

Multiple SecureStorage instances can be provided, identified by a name.

  • Constructor Details

    • DefaultSecureStorageProvider

      public DefaultSecureStorageProvider()
      Creates a initially empty provider.
    • DefaultSecureStorageProvider

      public DefaultSecureStorageProvider(Map<String,SecureStorage> storages)
      Creates a provider with some storages instances.
      Parameters:
      storages - The storage instances to use in the provider.
  • Method Details

    • registerSecureStorage

      public void registerSecureStorage(String name, SecureStorage storage)
      Register a storage with the given name.
      Parameters:
      name - Name associated to the storage instance.
      storage - The storage instance.
    • getSecureStorage

      public SecureStorage getSecureStorage(String name)
      Description copied from interface: SecureStorageProvider
      Returns the secure storage corresponding to the given name.
      Specified by:
      getSecureStorage in interface SecureStorageProvider
      Parameters:
      name - The name of instance to retrieve
      Returns:
      the secure storage