Interface StableIdResolver
- All Known Implementing Classes:
OrderedStableIdResolver,SingletonStableIdResolver
public interface StableIdResolver
Interface for resolving stable ids in a
SecretStore.-
Method Summary
Modifier and TypeMethodDescriptioncandidatesForPurpose(Stream<SecretResource> candidates, String purpose) Creates candidate stream in order from latest to oldest, latest being the active secret for the purpose label.getPurposeLabelFromStableId(String stableId) Pulls the purpose label from the stableId.
-
Method Details
-
getPurposeLabelFromStableId
Pulls the purpose label from the stableId.- Parameters:
stableId- The stableId of a secret- Returns:
- The purpose label of the given stableId
-
candidatesForPurpose
Creates candidate stream in order from latest to oldest, latest being the active secret for the purpose label.- Parameters:
candidates- stream of candidate secret resources for the secretpurpose- purpose label for the secret to match candidates to- Returns:
- stream of
SecretResource
-