Class VaultAwsIamCredential

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

    • VaultAwsIamCredential

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

    • getRole

      @NonNull public String getRole()
    • setRole

      @DataBoundSetter public void setRole(@NonNull String role)
    • getServerId

      @NonNull public String getServerId()
    • setServerId

      @DataBoundSetter public void setServerId(@NonNull String serverId)
    • 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