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
Nested ClassesModifier and TypeClassDescriptionstatic classA list of excluded types for each provider.static classA list of included types for each provider.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanabstract booleanfilter(CredentialsProvider provider, CredentialsDescriptor type) Returnstrueif the suppliedCredentialsDescriptoris permitted to be active for the suppliedCredentialsProvider.abstract inthashCode()abstract StringtoString()
-
Constructor Details
-
CredentialsProviderTypeRestriction
public CredentialsProviderTypeRestriction()
-
-
Method Details
-
filter
Returnstrueif the suppliedCredentialsDescriptoris permitted to be active for the suppliedCredentialsProvider.- Parameters:
provider- theCredentialsProviderto check.type- theCredentialsDescriptorto check.- Returns:
trueif and only if the suppliedCredentialsProvideris permitted to be active.- See Also:
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<CredentialsProviderTypeRestriction>- Overrides:
getDescriptorin classAbstractDescribableImpl<CredentialsProviderTypeRestriction>
-
hashCode
public abstract int hashCode() -
equals
-
toString
-