Class CredentialsTypeFilter.Includes
java.lang.Object
hudson.model.AbstractDescribableImpl<CredentialsTypeFilter>
com.cloudbees.plugins.credentials.CredentialsTypeFilter
com.cloudbees.plugins.credentials.CredentialsTypeFilter.Includes
- All Implemented Interfaces:
ExtensionPoint
,Describable<CredentialsTypeFilter>
,Serializable
- Enclosing class:
- CredentialsTypeFilter
A filter that implements a allowlist policy, "if you are not on the list you can't come in".
- Since:
- 2.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Our descriptor.Nested classes/interfaces inherited from class com.cloudbees.plugins.credentials.CredentialsTypeFilter
CredentialsTypeFilter.Excludes, CredentialsTypeFilter.Includes, CredentialsTypeFilter.None
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
filter
(CredentialsDescriptor type) Returnstrue
if and only if the suppliedCredentialsDescriptor
is permitted to be active.Returns the list of allowedDescriptor.getId()
s.int
hashCode()
toString()
Methods inherited from class com.cloudbees.plugins.credentials.CredentialsTypeFilter
getDescriptor
-
Constructor Details
-
Includes
Our constructor.- Parameters:
classNames
- the list of includedDescriptor.getId()
s.
-
-
Method Details
-
filter
Returnstrue
if and only if the suppliedCredentialsDescriptor
is permitted to be active.- Specified by:
filter
in classCredentialsTypeFilter
- Parameters:
type
- theCredentialsDescriptor
to check.- Returns:
true
if and only if the suppliedCredentialsDescriptor
is permitted to be active.
-
getClassNames
Returns the list of allowedDescriptor.getId()
s. -
equals
- Specified by:
equals
in classCredentialsTypeFilter
-
hashCode
public int hashCode()- Specified by:
hashCode
in classCredentialsTypeFilter
-
toString
- Specified by:
toString
in classCredentialsTypeFilter
-