public abstract class CredentialsProvider extends Object implements hudson.ExtensionPoint
Credentials.| Constructor and Description |
|---|
CredentialsProvider() |
| Modifier and Type | Method and Description |
|---|---|
static hudson.DescriptorExtensionList<Credentials,hudson.model.Descriptor<Credentials>> |
allCredentialsDescriptors()
Returns all the registered
Credentials descriptors. |
<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 |
abstract <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. |
static <C extends Credentials> |
lookupCredentials(Class<C> type)
Returns all credentials which are available to the
ACL.SYSTEM Authentication
within the Hudson.getInstance(). |
static <C extends Credentials> |
lookupCredentials(Class<C> type,
org.acegisecurity.Authentication authentication)
Returns all credentials which are available to the specified
Authentication
within the Hudson.getInstance(). |
static <C extends Credentials> |
lookupCredentials(Class<C> type,
hudson.model.Item item)
Returns all credentials which are available to the
ACL.SYSTEM Authentication
for use by the specified Item. |
static <C extends Credentials> |
lookupCredentials(Class<C> type,
hudson.model.Item item,
org.acegisecurity.Authentication authentication)
Returns all credentials which are available to the specified
Authentication
for use by the specified Item. |
static <C extends Credentials> |
lookupCredentials(Class<C> type,
hudson.model.ItemGroup itemGroup)
Returns all credentials which are available to the
ACL.SYSTEM Authentication
for use by the Items in the specified ItemGroup. |
static <C extends Credentials> |
lookupCredentials(Class<C> type,
hudson.model.ItemGroup itemGroup,
org.acegisecurity.Authentication authentication)
Returns all credentials which are available to the specified
Authentication
for use by the Items in the specified ItemGroup. |
static Set<CredentialsScope> |
lookupScopes(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. |
public static hudson.DescriptorExtensionList<Credentials,hudson.model.Descriptor<Credentials>> allCredentialsDescriptors()
Credentials descriptors.Credentials descriptors.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.object - the object.null if the object is not a credentials
container.@NonNull public abstract <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 ItemGrouptype - 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 Itemtype - the type of credentials to return.item - the item.authentication - the authentication (if null assume ACL.SYSTEM.@NonNull public static <C extends Credentials> List<C> lookupCredentials(@NonNull Class<C> type)
ACL.SYSTEM Authentication
within the Hudson.getInstance().C - the credentials type.type - the type of credentials to get.@NonNull public static <C extends Credentials> List<C> lookupCredentials(@NonNull Class<C> type, @Nullable org.acegisecurity.Authentication authentication)
Authentication
within the Hudson.getInstance().C - the credentials type.type - the type of credentials to get.authentication - the authentication.@NonNull public static <C extends Credentials> List<C> lookupCredentials(@NonNull Class<C> type, @Nullable hudson.model.Item item)
ACL.SYSTEM Authentication
for use by the specified Item.C - the credentials type.type - the type of credentials to get.item - the item.@NonNull public static <C extends Credentials> List<C> lookupCredentials(@NonNull Class<C> type, @Nullable hudson.model.ItemGroup itemGroup)
ACL.SYSTEM Authentication
for use by the Items in the specified ItemGroup.C - the credentials type.type - the type of credentials to get.itemGroup - the item group.@NonNull public static <C extends Credentials> List<C> lookupCredentials(@NonNull Class<C> type, @Nullable hudson.model.ItemGroup itemGroup, @Nullable org.acegisecurity.Authentication authentication)
Authentication
for use by the Items in the specified ItemGroup.C - the credentials type.type - the type of credentials to get.itemGroup - the item group.authentication - the authentication.@NonNull public static <C extends Credentials> List<C> lookupCredentials(@NonNull Class<C> type, @Nullable hudson.model.Item item, @Nullable org.acegisecurity.Authentication authentication)
Authentication
for use by the specified Item.C - the credentials type.type - the type of credentials to get.authentication - the authentication.item - the item.@CheckForNull public static Set<CredentialsScope> lookupScopes(hudson.model.ModelObject object)
null if the
object is not relevant for scopes and the object's container should be considered instead.object - the object.null if the object is not a credentials
container.Copyright © 2004-2013. All Rights Reserved.