@Extension public class CredentialsProviderManager extends DescriptorVisibilityFilter implements Serializable, Saveable
CredentialsProvider
implementations in a Jenkins
Modifier and Type | Class and Description |
---|---|
static class |
CredentialsProviderManager.Configuration
Our global configuration.
|
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
CredentialsProviderManager()
Our constructor.
|
all, apply, applyType, filterType
public static boolean isEnabled(CredentialsProvider provider)
true
if and only if the specified CredentialsProvider
is enabled.provider
- the specified CredentialsProvider
to check.true
if and only if the specified CredentialsProvider
is enabled.@Nullable public static CredentialsProviderManager getInstance()
CredentialsProviderManager
singleton.CredentialsProviderManager
singleton or null
@NonNull public static CredentialsProviderManager getInstanceOrDie()
CredentialsProviderManager
singleton.CredentialsProviderManager
singletonpublic boolean filter(Object context, Descriptor descriptor)
filter
in class DescriptorVisibilityFilter
public static XmlFile getConfigFile()
CredentialsProviderManager
uses to store its credentials.CredentialsProviderManager
uses to store its credentials.public void save() throws IOException
save
in interface Saveable
IOException
@NonNull public CredentialsProviderFilter getProviderFilter()
CredentialsProviderFilter
.CredentialsProviderFilter
.public void setProviderFilter(@CheckForNull CredentialsProviderFilter providerFilter)
CredentialsProviderFilter
.providerFilter
- the new CredentialsProviderFilter
.@NonNull public CredentialsTypeFilter getTypeFilter()
CredentialsTypeFilter
.CredentialsTypeFilter
.public void setTypeFilter(@CheckForNull CredentialsTypeFilter typeFilter)
CredentialsTypeFilter
.typeFilter
- the new CredentialsTypeFilter
.@NonNull public List<CredentialsProviderTypeRestriction> getRestrictions()
CredentialsProviderTypeRestriction
instances.CredentialsProviderTypeRestriction
instances.public void setRestrictions(List<CredentialsProviderTypeRestriction> restrictions)
CredentialsProviderTypeRestriction
instances.restrictions
- the new list of CredentialsProviderTypeRestriction
instances.Copyright © 2016–2020. All rights reserved.