Package org.forgerock.secrets.keystore
Interface KeyStoreSecretStore.AliasSpecProvider
- All Known Implementing Classes:
KeyStoreSecretStore.CompositeAliasSpecProvider
,KeyStoreSecretStore.PredicateAliasSpecProvider
,KeyStoreSecretStore.StaticAliasSpecProvider
- Enclosing class:
- KeyStoreSecretStore
public static interface KeyStoreSecretStore.AliasSpecProvider
Permits to retrieve the list of usable AliasSpecs of a specific KeyStore.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a new AliasSpec in the list of usable aliases.aliasSpecs
(List<String> aliases) Returns a list of every usable aliases in a KeyStore, may use a KeyStore's aliases list.boolean
Removes an alias from the usable aliases of a KeyStore.
-
Method Details
-
aliasSpecs
Returns a list of every usable aliases in a KeyStore, may use a KeyStore's aliases list.- Parameters:
aliases
- The list of every aliases present in a KeyStore- Returns:
- a list of AliasSpecs which should be present in a KeyStore
-
remove
Removes an alias from the usable aliases of a KeyStore.- Parameters:
alias
- the alias to remove- Returns:
- true if the alias has been removed, false otherwise
-
addOrReplace
Adds a new AliasSpec in the list of usable aliases. If the alias was already present, overrides it.- Parameters:
spec
- the AliasSpec to add into the usable aliases list.
-