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 anyCredentialsProviderTypeRestriction.Includes
for any specificgetProvider()
then at least oneCredentialsProviderTypeRestriction.Includes
for thatgetProvider()
must match for agetType()
to be permitted.- Since:
- 2.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CredentialsProviderTypeRestriction.Includes.DescriptorImpl
Our descriptor-
Nested classes/interfaces inherited from class com.cloudbees.plugins.credentials.CredentialsProviderTypeRestriction
CredentialsProviderTypeRestriction.Excludes, CredentialsProviderTypeRestriction.Includes
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
boolean
filter(CredentialsProvider provider, CredentialsDescriptor type)
Returnstrue
if the suppliedCredentialsDescriptor
is permitted to be active for the suppliedCredentialsProvider
.String
getProvider()
Returns theCredentialsProvider
Class.getName()
.String
getType()
Returns theCredentialsDescriptor
Class.getName()
.int
hashCode()
String
toString()
-
Methods inherited from class com.cloudbees.plugins.credentials.CredentialsProviderTypeRestriction
getDescriptor
-
-
-
-
Constructor Detail
-
Includes
@DataBoundConstructor public Includes(String provider, String type)
Our constructor.- Parameters:
provider
- theCredentialsProvider
Descriptor.getId()
.type
- theCredentialsDescriptor
Descriptor.getId()
.
-
-
Method Detail
-
getProvider
public String getProvider()
Returns theCredentialsProvider
Class.getName()
.- Returns:
- the
CredentialsProvider
Class.getName()
.
-
getType
public String getType()
Returns theCredentialsDescriptor
Class.getName()
.- Returns:
- the
CredentialsDescriptor
Class.getName()
.
-
equals
public boolean equals(Object o)
- Specified by:
equals
in classCredentialsProviderTypeRestriction
-
hashCode
public int hashCode()
- Specified by:
hashCode
in classCredentialsProviderTypeRestriction
-
toString
public String toString()
- Specified by:
toString
in classCredentialsProviderTypeRestriction
-
filter
public boolean filter(CredentialsProvider provider, CredentialsDescriptor type)
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:
for how multiple instances are combined.
-
-