Class VaultKubernetesCredential

java.lang.Object
com.cloudbees.plugins.credentials.BaseCredentials
All Implemented Interfaces:
com.cloudbees.plugins.credentials.common.IdCredentials, com.cloudbees.plugins.credentials.common.StandardCredentials, com.cloudbees.plugins.credentials.Credentials, VaultCredential, ExtensionPoint, Describable<com.cloudbees.plugins.credentials.Credentials>, Serializable

public class VaultKubernetesCredential extends AbstractAuthenticatingVaultTokenCredential
See Also:
  • Constructor Details

    • VaultKubernetesCredential

      @DataBoundConstructor public VaultKubernetesCredential(@CheckForNull com.cloudbees.plugins.credentials.CredentialsScope scope, @CheckForNull String id, @CheckForNull String description, @NonNull String role)
  • Method Details

    • getMountPath

      @NonNull public String getMountPath()
    • setMountPath

      @DataBoundSetter public void setMountPath(@NonNull String mountPath)
    • getRole

      @NonNull public String getRole()
    • getToken

      protected String getToken(com.bettercloud.vault.api.Auth auth)
      Description copied from class: AbstractAuthenticatingVaultTokenCredential
      Authenticate with vault using this credential and return the token. The auth client will be configured with this credentials namespace.
      Specified by:
      getToken in class AbstractAuthenticatingVaultTokenCredential
      Parameters:
      auth - vault auth client
      Returns:
      authentication token