Interface SecretManager

All Known Implementing Classes:
PropertiesSecretManager

public interface SecretManager
An interface for secret/credential managers.
Since:
10.5
Version:
10.5
Author:
Luke
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String name)
    Retrieves a secret.
    Returns the names of all the secrets.
    void
    Optional initialization method
    int
    Returns the number of loaded secrets.
  • Method Details

    • get

      String get(String name)
      Retrieves a secret.
      Parameters:
      name - the secret name
      Returns:
      the secret value, or null if not found
    • getKeys

      Collection<String> getKeys()
      Returns the names of all the secrets.
      Returns:
      a Collection of secret names
    • size

      int size()
      Returns the number of loaded secrets.
      Returns:
      the number of secrets
    • load

      void load() throws IOException
      Optional initialization method
      Throws:
      IOException - if an erorr occurs