Interface SecretStoreProvider

All Known Implementing Classes:
EnvVarSecretStoreProvider, KeychainSecretStoreProvider

public interface SecretStoreProvider
Provider SPI for contributing a SecretStore via ServiceLoader.

Mirrors PropertySourceProvider: a module on the classpath can register a store (for example an OS-keychain-backed store, or the EnvVarSecretStore) by listing its provider in a META-INF/services/org.apache.juneau.commons.secret.SecretStoreProvider file. Discovery is opt-in through SecretStores.fromServiceLoader(); it does not change the SecretStores.resolve(org.apache.juneau.commons.inject.BeanStore) default, which remains InMemorySecretStore.

Since:
10.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a secret store.
    default int
    Sort key used by ServiceLoader wiring.
  • Method Details

    • create

      Creates a secret store.
      Returns:
      The secret store, or null to skip registration.
    • order

      default int order()
      Sort key used by ServiceLoader wiring.

      Lower values sort first.

      Returns:
      The order value.