Class CredentialsProviderTypeRestriction.Excludes
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<CredentialsProviderTypeRestriction>
-
- com.cloudbees.plugins.credentials.CredentialsProviderTypeRestriction
-
- com.cloudbees.plugins.credentials.CredentialsProviderTypeRestriction.Excludes
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<CredentialsProviderTypeRestriction>
,Serializable
- Enclosing class:
- CredentialsProviderTypeRestriction
public static class CredentialsProviderTypeRestriction.Excludes extends CredentialsProviderTypeRestriction
A list of excluded types for each provider.- Since:
- 2.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CredentialsProviderTypeRestriction.Excludes.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
Descriptor.getId()
.String
getType()
Returns theCredentialsDescriptor
Descriptor.getId()
.int
hashCode()
String
toString()
-
Methods inherited from class com.cloudbees.plugins.credentials.CredentialsProviderTypeRestriction
getDescriptor
-
-
-
-
Constructor Detail
-
Excludes
@DataBoundConstructor public Excludes(String provider, String type)
Our constructor.- Parameters:
provider
- theCredentialsProvider
Descriptor.getId()
.type
- theCredentialsDescriptor
Descriptor.getId()
.
-
-
Method Detail
-
getProvider
public String getProvider()
Returns theCredentialsProvider
Descriptor.getId()
.
-
getType
public String getType()
Returns theCredentialsDescriptor
Descriptor.getId()
.
-
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.
-
-