Interface ICredentialFactory
- All Known Implementing Classes:
AbstractMapCredentialFactory
,AnsibleVaultCredentialFactory
,DelineaCredentialFactory
,FileSystemCredentialFactory
,KubernetesCredentialFactory
,PropertyFileCredentialFactory
,WildFlyCredentialFactory
public interface ICredentialFactory
Interface for a CredentialFactory. A CredentialFactory is responsible for providing credentials to the framework.
Implementations of this interface should be registered in the credentialproperties.properties
file.
Implementations of this interface should be thread-safe.
-
Method Summary
Modifier and TypeMethodDescriptionreturn a list of all configured aliases, or null if such a list cannot be provided.getCredentials
(String alias, Supplier<String> defaultUsernameSupplier, Supplier<String> defaultPasswordSupplier) boolean
hasCredentials
(String alias) void
initialize() of an implementation can throw an exception when the credentialFactory cannot be properly configured and used.
-
Method Details
-
initialize
initialize() of an implementation can throw an exception when the credentialFactory cannot be properly configured and used.- Throws:
Exception
-
hasCredentials
-
getCredentials
-
getConfiguredAliases
return a list of all configured aliases, or null if such a list cannot be provided.- Throws:
Exception
-