Class CredentialsProviderTypeRestriction
java.lang.Object
hudson.model.AbstractDescribableImpl<CredentialsProviderTypeRestriction>
com.cloudbees.plugins.credentials.CredentialsProviderTypeRestriction
- All Implemented Interfaces:
ExtensionPoint
,Describable<CredentialsProviderTypeRestriction>
,Serializable
- Direct Known Subclasses:
CredentialsProviderTypeRestriction.Excludes
,CredentialsProviderTypeRestriction.Includes
public abstract class CredentialsProviderTypeRestriction
extends AbstractDescribableImpl<CredentialsProviderTypeRestriction>
implements Serializable, ExtensionPoint
A filter of
CredentialsDescriptor
types scoped to specific CredentialsProvider
instances used by
CredentialsProviderManager
to determine which types are applicable to each provider.- Since:
- 2.0
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A list of excluded types for each provider.static class
A list of included types for each provider.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
abstract boolean
filter
(CredentialsProvider provider, CredentialsDescriptor type) Returnstrue
if the suppliedCredentialsDescriptor
is permitted to be active for the suppliedCredentialsProvider
.abstract int
hashCode()
abstract String
toString()
-
Constructor Details
-
CredentialsProviderTypeRestriction
public CredentialsProviderTypeRestriction()
-
-
Method Details
-
filter
Returnstrue
if the suppliedCredentialsDescriptor
is permitted to be active for the suppliedCredentialsProvider
.- Parameters:
provider
- theCredentialsProvider
to check.type
- theCredentialsDescriptor
to check.- Returns:
true
if and only if the suppliedCredentialsProvider
is permitted to be active.- See Also:
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<CredentialsProviderTypeRestriction>
- Overrides:
getDescriptor
in classAbstractDescribableImpl<CredentialsProviderTypeRestriction>
-
hashCode
public abstract int hashCode() -
equals
-
toString
-