@Extension public static class SystemCredentialsProvider.ProviderImpl extends CredentialsProvider
CREATE, DELETE, GROUP, MANAGE_DOMAINS, UPDATE, USE_ITEM, USE_OWN, VIEW| Constructor and Description |
|---|
SystemCredentialsProvider.ProviderImpl() |
| Modifier and Type | Method and Description |
|---|---|
<C extends Credentials> |
getCredentials(Class<C> type,
hudson.model.Item item,
org.acegisecurity.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,
hudson.model.Item item,
org.acegisecurity.Authentication authentication,
List<DomainRequirement> domainRequirements)
Returns the credentials provided by this provider which are available to the specified
Authentication
for items in the specified Item and are appropriate for the specified .credentials.domains.DomainRequirements. |
<C extends Credentials> |
getCredentials(Class<C> type,
hudson.model.ItemGroup itemGroup,
org.acegisecurity.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,
hudson.model.ItemGroup itemGroup,
org.acegisecurity.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.DomainRequirements. |
Set<CredentialsScope> |
getScopes(hudson.model.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(hudson.model.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. |
allCredentialsDescriptors, findCredentialById, findCredentialById, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupScopes, lookupStores, snapshot, snapshotpublic SystemCredentialsProvider.ProviderImpl()
public Set<CredentialsScope> getScopes(hudson.model.ModelObject object)
null if the
object is not relevant for scopes and the object's container should be considered instead.getScopes in class CredentialsProviderobject - the object.null if the object is not a credentials
container.@NonNull public <C extends Credentials> List<C> getCredentials(@NonNull Class<C> type, @Nullable hudson.model.ItemGroup itemGroup, @Nullable org.acegisecurity.Authentication authentication)
Authentication
for items in the specified ItemGroupgetCredentials in class CredentialsProvidertype - the type of credentials to return.itemGroup - the item group (if null assume Hudson.getInstance().authentication - the authentication (if null assume ACL.SYSTEM.@NonNull public <C extends Credentials> List<C> getCredentials(@NonNull Class<C> type, @NonNull hudson.model.Item item, @Nullable org.acegisecurity.Authentication authentication)
Authentication
for the specified ItemgetCredentials in class CredentialsProvidertype - 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 hudson.model.Item item, @Nullable org.acegisecurity.Authentication authentication, @NonNull List<DomainRequirement> domainRequirements)
Authentication
for items in the specified Item and are appropriate for the specified .credentials.domains.DomainRequirements.getCredentials in class CredentialsProvidertype - the type of credentials to return.item - the item.authentication - the authentication (if null assume ACL.SYSTEM.domainRequirements - the credential domain to match.@NonNull public <C extends Credentials> List<C> getCredentials(@NonNull Class<C> type, @Nullable hudson.model.ItemGroup itemGroup, @Nullable org.acegisecurity.Authentication authentication, @NonNull List<DomainRequirement> domainRequirements)
Authentication
for items in the specified ItemGroup and are appropriate for the specified .plugins.credentials.domains.DomainRequirements.getCredentials in class CredentialsProvidertype - the type of credentials to return.itemGroup - the item group (if null assume Hudson.getInstance().authentication - the authentication (if null assume ACL.SYSTEM.domainRequirements - the credential domains to match (if the CredentialsProvider does not support
DomainRequirements then it should
assume the match is true).public CredentialsStore getStore(@CheckForNull hudson.model.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 CredentialsProviderobject - the Item or ItemGroup that the store is being requested of.null or a scoped CredentialsStore where
CredentialsStore.getContext() == object.Copyright © 2004-2014. All Rights Reserved.