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 Details

    • initialize

      void initialize() throws Exception
      initialize() 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