Interface CredentialVault

All Known Implementing Classes:
SimpleCredentialVault

public interface CredentialVault
Interface for a Credential Vault Credential vaults allow for the storage and retrieval of credentials by credential id.
Author:
muzquiano
  • Method Details

    • store

      void store(Credentials credentials)
      Places the given credentials into the vault
      Parameters:
      credentials - the credentials
    • retrieve

      Credentials retrieve(String endpointId)
      Retrieves credentials for a given endpoint id from the vault
      Parameters:
      endpointId - the endpoint id
      Returns:
      the credentials
    • remove

      void remove(String endpointId)
      Removes credentials for a given endpoint id from the vault
      Parameters:
      endpointId - String
    • hasCredentials

      boolean hasCredentials(String endpointId)
      Returns:
      true if any credentials are stored for this endpoint id
    • newCredentials

      Credentials newCredentials(String endpointId)
      Creates new credentials which are stored in this vault
      Parameters:
      endpointId - String
      Returns:
      the credentials object
    • getStoredIds

      String[] getStoredIds()
      Returns the ids for stored credentials
      Returns:
      String[]