@Extension public static class SystemCredentialsProvider.ProviderImpl extends CredentialsProvider
CredentialsProvider that exposes credentials stored in
SystemCredentialsProvider.getCredentials()| 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.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 |
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. |
allCredentialsDescriptors, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupCredentials, lookupScopespublic 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.Copyright © 2004-2013. All Rights Reserved.