Class VaultCredentialsProvider
java.lang.Object
hudson.model.Descriptor<com.cloudbees.plugins.credentials.CredentialsProvider>
com.cloudbees.plugins.credentials.CredentialsProvider
com.datapipe.jenkins.vault.credentials.VaultCredentialsProvider
- All Implemented Interfaces:
ExtensionPoint
,Describable<com.cloudbees.plugins.credentials.CredentialsProvider>
,Saveable
,OnMaster
,IconSpec
@Extension(optional=true,
ordinal=1.0)
public class VaultCredentialsProvider
extends com.cloudbees.plugins.credentials.CredentialsProvider
This class provides the credentials that we need to authenticate against Vault
and the credentials stored in Vault, after assigning the right context to them.
- Author:
- Hassan CHAKROUN <h.chakrouun@gmail.com>
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class com.cloudbees.plugins.credentials.CredentialsProvider
CREATE, DELETE, GROUP, MANAGE_DOMAINS, NONE, UPDATE, USE_ITEM, USE_OWN, VIEW
Fields inherited from class hudson.model.Descriptor
clazz
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<C extends com.cloudbees.plugins.credentials.Credentials>
List<C>getCredentials
(Class<C> type, ItemGroup itemGroup, Authentication authentication) <C extends com.cloudbees.plugins.credentials.Credentials>
List<C>getCredentials
(Class<C> type, ItemGroup itemGroup, Authentication authentication, List<com.cloudbees.plugins.credentials.domains.DomainRequirement> domainRequirements) Methods inherited from class com.cloudbees.plugins.credentials.CredentialsProvider
_isApplicable, all, allCredentialsDescriptors, enabled, enabled, findCredentialById, findCredentialById, getCredentialIds, getCredentialIds, getCredentials, getCredentials, getCredentialsDescriptors, getDescriptor, getDisplayName, getFingerprintOf, getIconClassName, getOrCreateFingerprintOf, getScopes, getStore, hasCredentialsDescriptors, hasStores, isApplicable, isApplicable, isEnabled, isEnabled, listCredentials, listCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupScopes, lookupStores, saveAll, snapshot, snapshot, track, track, track, trackAll, trackAll, trackAll, trackAll, trackAll, trackAll
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
VaultCredentialsProvider
public VaultCredentialsProvider()
-
-
Method Details
-
getCredentials
public <C extends com.cloudbees.plugins.credentials.Credentials> List<C> getCredentials(Class<C> type, ItemGroup itemGroup, Authentication authentication) - Specified by:
getCredentials
in classcom.cloudbees.plugins.credentials.CredentialsProvider
-
getCredentials
@NonNull public <C extends com.cloudbees.plugins.credentials.Credentials> List<C> getCredentials(@NonNull Class<C> type, @Nullable ItemGroup itemGroup, @Nullable Authentication authentication, @NonNull List<com.cloudbees.plugins.credentials.domains.DomainRequirement> domainRequirements) - Overrides:
getCredentials
in classcom.cloudbees.plugins.credentials.CredentialsProvider
-