Class CredentialsProviderTypeRestriction.Includes
java.lang.Object
hudson.model.AbstractDescribableImpl<CredentialsProviderTypeRestriction>
com.cloudbees.plugins.credentials.CredentialsProviderTypeRestriction
com.cloudbees.plugins.credentials.CredentialsProviderTypeRestriction.Includes
- All Implemented Interfaces:
ExtensionPoint,Describable<CredentialsProviderTypeRestriction>,Serializable
- Enclosing class:
CredentialsProviderTypeRestriction
public static class CredentialsProviderTypeRestriction.Includes
extends CredentialsProviderTypeRestriction
A list of included types for each provider. If you specify any
CredentialsProviderTypeRestriction.Includes for any specific
getProvider() then at least one CredentialsProviderTypeRestriction.Includes for that getProvider() must match for a
getType() to be permitted.- Since:
- 2.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classOur descriptorNested classes/interfaces inherited from class com.cloudbees.plugins.credentials.CredentialsProviderTypeRestriction
CredentialsProviderTypeRestriction.Excludes, CredentialsProviderTypeRestriction.IncludesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanfilter(CredentialsProvider provider, CredentialsDescriptor type) Returnstrueif the suppliedCredentialsDescriptoris permitted to be active for the suppliedCredentialsProvider.Returns theCredentialsProviderClass.getName().getType()Returns theCredentialsDescriptorClass.getName().inthashCode()toString()Methods inherited from class com.cloudbees.plugins.credentials.CredentialsProviderTypeRestriction
getDescriptor
-
Constructor Details
-
Includes
Our constructor.- Parameters:
provider- theCredentialsProviderDescriptor.getId().type- theCredentialsDescriptorDescriptor.getId().
-
-
Method Details
-
getProvider
Returns theCredentialsProviderClass.getName().- Returns:
- the
CredentialsProviderClass.getName().
-
getType
Returns theCredentialsDescriptorClass.getName().- Returns:
- the
CredentialsDescriptorClass.getName().
-
equals
- Specified by:
equalsin classCredentialsProviderTypeRestriction
-
hashCode
public int hashCode()- Specified by:
hashCodein classCredentialsProviderTypeRestriction
-
toString
- Specified by:
toStringin classCredentialsProviderTypeRestriction
-
filter
Returnstrueif the suppliedCredentialsDescriptoris permitted to be active for the suppliedCredentialsProvider.- Specified by:
filterin classCredentialsProviderTypeRestriction- Parameters:
provider- theCredentialsProviderto check.type- theCredentialsDescriptorto check.- Returns:
trueif and only if the suppliedCredentialsProvideris permitted to be active.- See Also:
-