Interface ICredentialFactory
-
- All Known Implementing Classes:
AnsibleVaultCredentialFactory,FileSystemCredentialFactory,MapCredentialFactory,PropertyFileCredentialFactory,WildFlyCredentialFactory
public interface ICredentialFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Collection<String>getConfiguredAliases()return a list of all configured aliases, or null if such a list cannot be provided.ICredentialsgetCredentials(String alias, Supplier<String> defaultUsernameSupplier, Supplier<String> defaultPasswordSupplier)booleanhasCredentials(String alias)default voidinitialize()initialize() of an implementation can throw an exception when the credentialFactory cannot be properly configured and used.
-
-
-
Method Detail
-
initialize
default void initialize() throws Exceptioninitialize() of an implementation can throw an exception when the credentialFactory cannot be properly configured and used.- Throws:
Exception
-
hasCredentials
boolean hasCredentials(String alias)
-
getCredentials
ICredentials getCredentials(String alias, Supplier<String> defaultUsernameSupplier, Supplier<String> defaultPasswordSupplier)
-
getConfiguredAliases
Collection<String> getConfiguredAliases() throws Exception
return a list of all configured aliases, or null if such a list cannot be provided.- Throws:
Exception
-
-