public abstract class CredentialsProviderTypeRestriction extends AbstractDescribableImpl<CredentialsProviderTypeRestriction> implements Serializable, ExtensionPoint
CredentialsDescriptor
types scoped to specific CredentialsProvider
instances used by
CredentialsProviderManager
to determine which types are applicable to each provider.CredentialsProviderFilter
,
CredentialsTypeFilter
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
CredentialsProviderTypeRestriction.Excludes
A list of excluded types for each provider.
|
static class |
CredentialsProviderTypeRestriction.Includes
A list of included types for each provider.
|
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
CredentialsProviderTypeRestriction() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
equals(Object obj) |
abstract boolean |
filter(CredentialsProvider provider,
CredentialsDescriptor type)
Returns
true if the supplied CredentialsDescriptor is permitted to be active for the supplied
CredentialsProvider . |
CredentialsProviderTypeRestrictionDescriptor |
getDescriptor() |
abstract int |
hashCode() |
abstract String |
toString() |
public abstract boolean filter(CredentialsProvider provider, CredentialsDescriptor type)
true
if the supplied CredentialsDescriptor
is permitted to be active for the supplied
CredentialsProvider
.provider
- the CredentialsProvider
to check.type
- the CredentialsDescriptor
to check.true
if and only if the supplied CredentialsProvider
is permitted to be active.for
how multiple instances are combined.
public CredentialsProviderTypeRestrictionDescriptor getDescriptor()
getDescriptor
in interface Describable<CredentialsProviderTypeRestriction>
getDescriptor
in class AbstractDescribableImpl<CredentialsProviderTypeRestriction>
Copyright © 2016–2022. All rights reserved.