Class VaultKubernetesCredential
java.lang.Object
com.cloudbees.plugins.credentials.BaseCredentials
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
com.datapipe.jenkins.vault.credentials.AbstractVaultTokenCredential
com.datapipe.jenkins.vault.credentials.AbstractVaultTokenCredentialWithExpiration
com.datapipe.jenkins.vault.credentials.AbstractAuthenticatingVaultTokenCredential
com.datapipe.jenkins.vault.credentials.VaultKubernetesCredential
- 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
- 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
-
Field Summary
Fields inherited from class com.datapipe.jenkins.vault.credentials.AbstractVaultTokenCredentialWithExpiration
LOGGER
-
Constructor Summary
ConstructorDescriptionVaultKubernetesCredential
(com.cloudbees.plugins.credentials.CredentialsScope scope, String id, String description, String role) -
Method Summary
Modifier and TypeMethodDescriptiongetRole()
protected String
getToken
(com.bettercloud.vault.api.Auth auth) Authenticate with vault using this credential and return the token.void
setMountPath
(String mountPath) Methods inherited from class com.datapipe.jenkins.vault.credentials.AbstractAuthenticatingVaultTokenCredential
getNamespace, getToken, getVaultAuth, setNamespace
Methods inherited from class com.datapipe.jenkins.vault.credentials.AbstractVaultTokenCredentialWithExpiration
authorizeWithVault, getChildToken, getUsePolicies, getVault, setUsePolicies
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
-
VaultKubernetesCredential
-
-
Method Details
-
getMountPath
-
setMountPath
-
getRole
-
getToken
Description copied from class:AbstractAuthenticatingVaultTokenCredential
Authenticate with vault using this credential and return the token. Theauth
client will be configured with this credentials namespace.- Specified by:
getToken
in classAbstractAuthenticatingVaultTokenCredential
- Parameters:
auth
- vault auth client- Returns:
- authentication token
-