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
Modifier and TypeClassDescriptionstatic class
A filter that implements a denylist policy, "if you are not on the list you can come in".static class
A filter that implements a allowlist policy, "if you are not on the list you can't come in".static class
A filter that does not filter anything.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
abstract boolean
filter
(CredentialsDescriptor type) Returnstrue
if and only if the suppliedCredentialsDescriptor
is permitted to be active.abstract int
hashCode()
abstract String
toString()
-
Constructor Details
-
CredentialsTypeFilter
public CredentialsTypeFilter()
-
-
Method Details
-
filter
Returnstrue
if and only if the suppliedCredentialsDescriptor
is permitted to be active.- Parameters:
type
- theCredentialsDescriptor
to check.- Returns:
true
if and only if the suppliedCredentialsDescriptor
is permitted to be active.
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<CredentialsTypeFilter>
- Overrides:
getDescriptor
in classAbstractDescribableImpl<CredentialsTypeFilter>
-
hashCode
public abstract int hashCode() -
equals
-
toString
-