Class CredentialsProviderManager
java.lang.Object
hudson.model.DescriptorVisibilityFilter
com.cloudbees.plugins.credentials.CredentialsProviderManager
- All Implemented Interfaces:
ExtensionPoint
,Saveable
,Serializable
@Extension
public class CredentialsProviderManager
extends DescriptorVisibilityFilter
implements Serializable, Saveable
Manages the various
CredentialsProvider
implementations in a Jenkins
- Since:
- 2.0
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Our global configuration.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
filter
(Object context, Descriptor descriptor) static XmlFile
Gets the configuration file thatCredentialsProviderManager
uses to store its credentials.static CredentialsProviderManager
Returns ourCredentialsProviderManager
singleton.static CredentialsProviderManager
Returns ourCredentialsProviderManager
singleton.Gets the currentCredentialsProviderFilter
.Gets the current list ofCredentialsProviderTypeRestriction
instances.Gets the currentCredentialsTypeFilter
.static boolean
isEnabled
(CredentialsProvider provider) Returnstrue
if and only if the specifiedCredentialsProvider
is enabled.void
save()
void
setProviderFilter
(CredentialsProviderFilter providerFilter) Sets theCredentialsProviderFilter
.void
setRestrictions
(List<CredentialsProviderTypeRestriction> restrictions) Sets the list ofCredentialsProviderTypeRestriction
instances.void
setTypeFilter
(CredentialsTypeFilter typeFilter) Sets theCredentialsTypeFilter
.Methods inherited from class hudson.model.DescriptorVisibilityFilter
all, apply, applyType, filterType
-
Constructor Details
-
CredentialsProviderManager
public CredentialsProviderManager()Our constructor.
-
-
Method Details
-
isEnabled
Returnstrue
if and only if the specifiedCredentialsProvider
is enabled.- Parameters:
provider
- the specifiedCredentialsProvider
to check.- Returns:
true
if and only if the specifiedCredentialsProvider
is enabled.
-
getInstance
Returns ourCredentialsProviderManager
singleton.- Returns:
CredentialsProviderManager
singleton ornull
-
getInstanceOrDie
Returns ourCredentialsProviderManager
singleton.- Returns:
CredentialsProviderManager
singleton
-
filter
- Specified by:
filter
in classDescriptorVisibilityFilter
-
getConfigFile
Gets the configuration file thatCredentialsProviderManager
uses to store its credentials.- Returns:
- the configuration file that
CredentialsProviderManager
uses to store its credentials.
-
save
- Specified by:
save
in interfaceSaveable
- Throws:
IOException
-
getProviderFilter
Gets the currentCredentialsProviderFilter
.- Returns:
- the current
CredentialsProviderFilter
.
-
setProviderFilter
Sets theCredentialsProviderFilter
.- Parameters:
providerFilter
- the newCredentialsProviderFilter
.
-
getTypeFilter
Gets the currentCredentialsTypeFilter
.- Returns:
- the current
CredentialsTypeFilter
.
-
setTypeFilter
Sets theCredentialsTypeFilter
.- Parameters:
typeFilter
- the newCredentialsTypeFilter
.
-
getRestrictions
Gets the current list ofCredentialsProviderTypeRestriction
instances.- Returns:
- the current list of
CredentialsProviderTypeRestriction
instances.
-
setRestrictions
Sets the list ofCredentialsProviderTypeRestriction
instances.- Parameters:
restrictions
- the new list ofCredentialsProviderTypeRestriction
instances.
-