Interface KeyStoreSecretStore.AliasSpecProvider

All Known Implementing Classes:
KeyStoreSecretStore.CompositeAliasSpecProvider, KeyStoreSecretStore.PredicateAliasSpecProvider, KeyStoreSecretStore.StaticAliasSpecProvider
Enclosing class:
KeyStoreSecretStore

public static interface KeyStoreSecretStore.AliasSpecProvider
Permits to retrieve the list of usable AliasSpecs of a specific KeyStore.
  • Method Details

    • aliasSpecs

      Returns a list of every usable aliases in a KeyStore, may use a KeyStore's aliases list.
      Parameters:
      aliases - The list of every aliases present in a KeyStore
      Returns:
      a list of AliasSpecs which should be present in a KeyStore
    • remove

      boolean remove(KeyStoreSecretStore.AliasSpec alias)
      Removes an alias from the usable aliases of a KeyStore.
      Parameters:
      alias - the alias to remove
      Returns:
      true if the alias has been removed, false otherwise
    • addOrReplace

      void addOrReplace(KeyStoreSecretStore.AliasSpec spec)
      Adds a new AliasSpec in the list of usable aliases. If the alias was already present, overrides it.
      Parameters:
      spec - the AliasSpec to add into the usable aliases list.