Class AbstractVaultTokenCredential

java.lang.Object
com.cloudbees.plugins.credentials.BaseCredentials
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
com.datapipe.jenkins.vault.credentials.AbstractVaultTokenCredential
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
Direct Known Subclasses:
AbstractVaultTokenCredentialWithExpiration, VaultTokenCredential, VaultTokenFileCredential

public abstract class AbstractVaultTokenCredential extends com.cloudbees.plugins.credentials.impl.BaseStandardCredentials implements VaultCredential
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials

    com.cloudbees.plugins.credentials.impl.BaseStandardCredentials.BaseStandardCredentialsDescriptor

    Nested classes/interfaces inherited from interface hudson.ExtensionPoint

    ExtensionPoint.LegacyInstancesAreScopedToHudson

    Nested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials

    com.cloudbees.plugins.credentials.common.IdCredentials.Helpers

    Nested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentials

    com.cloudbees.plugins.credentials.common.StandardCredentials.NameProvider

    Nested classes/interfaces inherited from interface com.datapipe.jenkins.vault.credentials.VaultCredential

    VaultCredential.NameProvider
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractVaultTokenCredential(com.cloudbees.plugins.credentials.CredentialsScope scope, String id, String description)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.bettercloud.vault.Vault
    authorizeWithVault(com.bettercloud.vault.VaultConfig config, List<String> policies)
     
    protected abstract String
    getToken(com.bettercloud.vault.Vault vault)
     

    Methods inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials

    equals, getDescription, getId, hashCode

    Methods inherited from class com.cloudbees.plugins.credentials.BaseCredentials

    getDescriptor, getScope

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.cloudbees.plugins.credentials.Credentials

    getDescriptor, getScope

    Methods inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials

    getId

    Methods inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentials

    getDescription
  • Constructor Details

    • AbstractVaultTokenCredential

      protected AbstractVaultTokenCredential(com.cloudbees.plugins.credentials.CredentialsScope scope, String id, String description)
  • Method Details

    • getToken

      protected abstract String getToken(com.bettercloud.vault.Vault vault)
    • authorizeWithVault

      public com.bettercloud.vault.Vault authorizeWithVault(com.bettercloud.vault.VaultConfig config, List<String> policies)
      Specified by:
      authorizeWithVault in interface VaultCredential