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