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
Nested ClassesModifier and TypeClassDescriptionstatic classOur global configuration.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfilter(Object context, Descriptor descriptor) static XmlFileGets the configuration file thatCredentialsProviderManageruses to store its credentials.static CredentialsProviderManagerReturns ourCredentialsProviderManagersingleton.static CredentialsProviderManagerReturns ourCredentialsProviderManagersingleton.Gets the currentCredentialsProviderFilter.Gets the current list ofCredentialsProviderTypeRestrictioninstances.Gets the currentCredentialsTypeFilter.static booleanisEnabled(CredentialsProvider provider) Returnstrueif and only if the specifiedCredentialsProvideris enabled.voidsave()voidsetProviderFilter(CredentialsProviderFilter providerFilter) Sets theCredentialsProviderFilter.voidsetRestrictions(List<CredentialsProviderTypeRestriction> restrictions) Sets the list ofCredentialsProviderTypeRestrictioninstances.voidsetTypeFilter(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
Returnstrueif and only if the specifiedCredentialsProvideris enabled.- Parameters:
provider- the specifiedCredentialsProviderto check.- Returns:
trueif and only if the specifiedCredentialsProvideris enabled.
-
getInstance
Returns ourCredentialsProviderManagersingleton.- Returns:
CredentialsProviderManagersingleton ornull
-
getInstanceOrDie
Returns ourCredentialsProviderManagersingleton.- Returns:
CredentialsProviderManagersingleton
-
filter
- Specified by:
filterin classDescriptorVisibilityFilter
-
getConfigFile
Gets the configuration file thatCredentialsProviderManageruses to store its credentials.- Returns:
- the configuration file that
CredentialsProviderManageruses to store its credentials.
-
save
- Specified by:
savein 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 ofCredentialsProviderTypeRestrictioninstances.- Returns:
- the current list of
CredentialsProviderTypeRestrictioninstances.
-
setRestrictions
Sets the list ofCredentialsProviderTypeRestrictioninstances.- Parameters:
restrictions- the new list ofCredentialsProviderTypeRestrictioninstances.
-