Interface StableIdResolver
-
- All Known Implementing Classes:
OrderedStableIdResolver
,SingletonStableIdResolver
public interface StableIdResolver
Interface for resolving stable ids in aSecretStore
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stream<SecretResource>
candidatesForPurpose(Stream<SecretResource> candidates, String purpose)
Creates candidate stream in order from latest to oldest, latest being the active secret for the purpose label.String
getPurposeLabelFromStableId(String stableId)
Pulls the purpose label from the stableId.
-
-
-
Method Detail
-
getPurposeLabelFromStableId
String getPurposeLabelFromStableId(String stableId)
Pulls the purpose label from the stableId.- Parameters:
stableId
- The stableId of a secret- Returns:
- The purpose label of the given stableId
-
candidatesForPurpose
Stream<SecretResource> candidatesForPurpose(Stream<SecretResource> candidates, String purpose)
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
-
-