Class SingletonStableIdResolver
java.lang.Object
org.forgerock.secrets.propertyresolver.SingletonStableIdResolver
- All Implemented Interfaces:
 StableIdResolver
A 
StableIdResolver that matches a stableId exactly to the purpose for returning only one Secret.- 
Constructor Summary
Constructors - 
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. 
- 
Constructor Details
- 
SingletonStableIdResolver
public SingletonStableIdResolver() 
 - 
 - 
Method Details
- 
getPurposeLabelFromStableId
Description copied from interface:StableIdResolverPulls the purpose label from the stableId.- Specified by:
 getPurposeLabelFromStableIdin interfaceStableIdResolver- Parameters:
 stableId- The stableId of a secret- Returns:
 - The purpose label of the given stableId
 
 - 
candidatesForPurpose
public Stream<SecretResource> candidatesForPurpose(Stream<SecretResource> candidates, String purpose) Description copied from interface:StableIdResolverCreates candidate stream in order from latest to oldest, latest being the active secret for the purpose label.- Specified by:
 candidatesForPurposein interfaceStableIdResolver- Parameters:
 candidates- stream of candidate secret resources for the secretpurpose- purpose label for the secret to match candidates to- Returns:
 - stream of 
SecretResource 
 
 -