Class CredentialsTypeFilter
java.lang.Object
hudson.model.AbstractDescribableImpl<CredentialsTypeFilter>
com.cloudbees.plugins.credentials.CredentialsTypeFilter
- All Implemented Interfaces:
ExtensionPoint,Describable<CredentialsTypeFilter>,Serializable
- Direct Known Subclasses:
CredentialsTypeFilter.Excludes,CredentialsTypeFilter.Includes,CredentialsTypeFilter.None
public abstract class CredentialsTypeFilter
extends AbstractDescribableImpl<CredentialsTypeFilter>
implements Serializable, ExtensionPoint
A filter of
CredentialsDescriptor types used by CredentialsProviderManager to determine which
types are active.- Since:
- 2.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA filter that implements a denylist policy, "if you are not on the list you can come in".static classA filter that implements a allowlist policy, "if you are not on the list you can't come in".static classA filter that does not filter anything.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanabstract booleanfilter(CredentialsDescriptor type) Returnstrueif and only if the suppliedCredentialsDescriptoris permitted to be active.abstract inthashCode()abstract StringtoString()
-
Constructor Details
-
CredentialsTypeFilter
public CredentialsTypeFilter()
-
-
Method Details
-
filter
Returnstrueif and only if the suppliedCredentialsDescriptoris permitted to be active.- Parameters:
type- theCredentialsDescriptorto check.- Returns:
trueif and only if the suppliedCredentialsDescriptoris permitted to be active.
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<CredentialsTypeFilter>- Overrides:
getDescriptorin classAbstractDescribableImpl<CredentialsTypeFilter>
-
hashCode
public abstract int hashCode() -
equals
-
toString
-