Class VaultAccessor

java.lang.Object
com.datapipe.jenkins.vault.VaultAccessor
All Implemented Interfaces:
Serializable

public class VaultAccessor extends Object implements Serializable
See Also:
  • Constructor Details

    • VaultAccessor

      public VaultAccessor()
    • VaultAccessor

      public VaultAccessor(com.bettercloud.vault.VaultConfig config, VaultCredential credential)
  • Method Details

    • init

      public VaultAccessor init()
    • getConfig

      public com.bettercloud.vault.VaultConfig getConfig()
    • setConfig

      public void setConfig(com.bettercloud.vault.VaultConfig config)
    • getCredential

      public VaultCredential getCredential()
    • setCredential

      public void setCredential(VaultCredential credential)
    • getPolicies

      public List<String> getPolicies()
    • setPolicies

      public void setPolicies(List<String> policies)
    • getMaxRetries

      public int getMaxRetries()
    • setMaxRetries

      public void setMaxRetries(int maxRetries)
    • getRetryIntervalMilliseconds

      public int getRetryIntervalMilliseconds()
    • setRetryIntervalMilliseconds

      public void setRetryIntervalMilliseconds(int retryIntervalMilliseconds)
    • init

      @Deprecated public void init(String url, VaultCredential credential)
      Deprecated.
    • read

      public com.bettercloud.vault.response.LogicalResponse read(String path, Integer engineVersion)
    • revoke

      public com.bettercloud.vault.response.VaultResponse revoke(String leaseId)
    • generatePolicies

      protected static List<String> generatePolicies(String policies, EnvVars envVars)
    • retrieveVaultSecrets

      public static Map<String,String> retrieveVaultSecrets(Run<?,?> run, PrintStream logger, EnvVars envVars, VaultAccessor vaultAccessor, VaultConfiguration initialConfiguration, List<VaultSecret> vaultSecrets)
    • retrieveVaultCredentials

      public static VaultCredential retrieveVaultCredentials(Run build, VaultConfiguration config)
    • responseHasErrors

      public static boolean responseHasErrors(VaultConfiguration configuration, PrintStream logger, String path, com.bettercloud.vault.response.LogicalResponse response)
    • pullAndMergeConfiguration

      public static VaultConfiguration pullAndMergeConfiguration(Run<?,?> build, VaultConfiguration buildConfiguration)