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 class
Our descriptorNested classes/interfaces inherited from class com.cloudbees.plugins.credentials.CredentialsProviderTypeRestriction
CredentialsProviderTypeRestriction.Excludes, CredentialsProviderTypeRestriction.Includes
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
filter
(CredentialsProvider provider, CredentialsDescriptor type) Returnstrue
if the suppliedCredentialsDescriptor
is permitted to be active for the suppliedCredentialsProvider
.Returns theCredentialsProvider
Class.getName()
.getType()
Returns theCredentialsDescriptor
Class.getName()
.int
hashCode()
toString()
Methods inherited from class com.cloudbees.plugins.credentials.CredentialsProviderTypeRestriction
getDescriptor
-
Constructor Details
-
Includes
Our constructor.- Parameters:
provider
- theCredentialsProvider
Descriptor.getId()
.type
- theCredentialsDescriptor
Descriptor.getId()
.
-
-
Method Details
-
getProvider
Returns theCredentialsProvider
Class.getName()
.- Returns:
- the
CredentialsProvider
Class.getName()
.
-
getType
Returns theCredentialsDescriptor
Class.getName()
.- Returns:
- the
CredentialsDescriptor
Class.getName()
.
-
equals
- Specified by:
equals
in classCredentialsProviderTypeRestriction
-
hashCode
public int hashCode()- Specified by:
hashCode
in classCredentialsProviderTypeRestriction
-
toString
- Specified by:
toString
in classCredentialsProviderTypeRestriction
-
filter
Returnstrue
if the suppliedCredentialsDescriptor
is permitted to be active for the suppliedCredentialsProvider
.- Specified by:
filter
in classCredentialsProviderTypeRestriction
- Parameters:
provider
- theCredentialsProvider
to check.type
- theCredentialsDescriptor
to check.- Returns:
true
if and only if the suppliedCredentialsProvider
is permitted to be active.- See Also:
-