@Extension public static class SystemCredentialsProvider.ProviderImpl extends CredentialsProvider
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
ExtensionPoint.LegacyInstancesAreScopedToHudson
CREATE, DELETE, GROUP, MANAGE_DOMAINS, NONE, UPDATE, USE_ITEM, USE_OWN, VIEW
clazz
Constructor and Description |
---|
ProviderImpl() |
Modifier and Type | Method and Description |
---|---|
<C extends Credentials> |
getCredentials(Class<C> type,
Item item,
Authentication authentication)
Returns the credentials provided by this provider which are available to the specified
Authentication
for the specified Item |
<C extends Credentials> |
getCredentials(Class<C> type,
Item item,
Authentication authentication,
List<DomainRequirement> domainRequirements)
Returns the credentials provided by this provider which are available to the specified
Authentication
for the specified Item and are appropriate for the specified DomainRequirement s. |
<C extends Credentials> |
getCredentials(Class<C> type,
ItemGroup itemGroup,
Authentication authentication)
Returns the credentials provided by this provider which are available to the specified
Authentication
for items in the specified ItemGroup |
<C extends Credentials> |
getCredentials(Class<C> type,
ItemGroup itemGroup,
Authentication authentication,
List<DomainRequirement> domainRequirements)
Returns the credentials provided by this provider which are available to the specified
Authentication
for items in the specified ItemGroup and are appropriate for the specified .plugins.credentials.domains.DomainRequirement s. |
String |
getDisplayName() |
String |
getIconClassName() |
Set<CredentialsScope> |
getScopes(ModelObject object)
Returns the scopes allowed for credentials stored within the specified object or
null if the
object is not relevant for scopes and the object's container should be considered instead. |
CredentialsStore |
getStore(ModelObject object)
Returns the
CredentialsStore that this CredentialsProvider maintains specifically for this
ModelObject or null if either the object is not a credentials container or this
CredentialsProvider does not maintain a store specifically bound to this ModelObject . |
_isApplicable, all, allCredentialsDescriptors, enabled, enabled, findCredentialById, findCredentialById, getCredentialIds, getCredentialIds, getCredentialsDescriptors, getDescriptor, getFingerprintOf, getOrCreateFingerprintOf, hasCredentialsDescriptors, hasStores, isApplicable, isApplicable, isEnabled, isEnabled, listCredentials, listCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupScopes, lookupStores, saveAll, snapshot, snapshot, track, track, track, trackAll, trackAll, trackAll, trackAll, trackAll, trackAll
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
public String getDisplayName()
getDisplayName
in class CredentialsProvider
public Set<CredentialsScope> getScopes(ModelObject object)
null
if the
object is not relevant for scopes and the object's container should be considered instead.getScopes
in class CredentialsProvider
object
- the object.null
if the object is not a credentials
container.public CredentialsStore getStore(@CheckForNull ModelObject object)
CredentialsStore
that this CredentialsProvider
maintains specifically for this
ModelObject
or null
if either the object is not a credentials container or this
CredentialsProvider
does not maintain a store specifically bound to this ModelObject
.getStore
in class CredentialsProvider
object
- the Item
or ItemGroup
or User
that the store is being requested of.null
or a scoped CredentialsStore
where
CredentialsStore.getContext()
== object
.@NonNull public <C extends Credentials> List<C> getCredentials(@NonNull Class<C> type, @Nullable ItemGroup itemGroup, @Nullable Authentication authentication)
Authentication
for items in the specified ItemGroup
getCredentials
in class CredentialsProvider
C
- the credentials type.type
- the type of credentials to return.itemGroup
- the item group (if null
assume Jenkins.get()
.authentication
- the authentication (if null
assume ACL.SYSTEM
.@NonNull public <C extends Credentials> List<C> getCredentials(@NonNull Class<C> type, @Nullable ItemGroup itemGroup, @Nullable Authentication authentication, @NonNull List<DomainRequirement> domainRequirements)
Authentication
for items in the specified ItemGroup
and are appropriate for the specified .plugins.credentials.domains.DomainRequirement
s.getCredentials
in class CredentialsProvider
C
- the credentials type.type
- the type of credentials to return.itemGroup
- the item group (if null
assume Jenkins.get()
.authentication
- the authentication (if null
assume ACL.SYSTEM
.domainRequirements
- the credential domains to match (if the CredentialsProvider
does not support
DomainRequirement
s then it should
assume the match is true).@NonNull public <C extends Credentials> List<C> getCredentials(@NonNull Class<C> type, @NonNull Item item, @Nullable Authentication authentication)
Authentication
for the specified Item
getCredentials
in class CredentialsProvider
C
- the credentials type.type
- the type of credentials to return.item
- the item.authentication
- the authentication (if null
assume ACL.SYSTEM
.@NonNull public <C extends Credentials> List<C> getCredentials(@NonNull Class<C> type, @NonNull Item item, @Nullable Authentication authentication, @NonNull List<DomainRequirement> domainRequirements)
Authentication
for the specified Item
and are appropriate for the specified DomainRequirement
s.getCredentials
in class CredentialsProvider
C
- the credentials type.type
- the type of credentials to return.item
- the item.authentication
- the authentication (if null
assume ACL.SYSTEM
.domainRequirements
- the credential domain to match.public String getIconClassName()
CredentialsProvider
getIconClassName
in interface IconSpec
getIconClassName
in class CredentialsProvider
Copyright © 2016–2021. All rights reserved.