Class VaultGithubTokenCredential

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 VaultGithubTokenCredential extends AbstractAuthenticatingVaultTokenCredential
See Also:
  • Constructor Details

    • VaultGithubTokenCredential

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

    • getAccessToken

      @NonNull public Secret getAccessToken()
    • getMountPath

      @NonNull public String getMountPath()
    • setMountPath

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

      public 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