com.cloudbees.plugins.credentials
Class SystemCredentialsProvider.ProviderImpl
java.lang.Object
com.cloudbees.plugins.credentials.CredentialsProvider
com.cloudbees.plugins.credentials.SystemCredentialsProvider.ProviderImpl
- All Implemented Interfaces:
- hudson.ExtensionPoint
- Enclosing class:
- SystemCredentialsProvider
@Extension
public static class SystemCredentialsProvider.ProviderImpl
- extends CredentialsProvider
The CredentialsProvider that exposes credentials stored in
SystemCredentialsProvider.getCredentials()
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
|
Method Summary |
|
getCredentials(java.lang.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 |
|
getCredentials(java.lang.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 |
java.util.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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SystemCredentialsProvider.ProviderImpl
public SystemCredentialsProvider.ProviderImpl()
getScopes
public java.util.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.
- Overrides:
getScopes in class CredentialsProvider
- Parameters:
object - the object.
- Returns:
- the set of scopes that are relevant for the object or
null if the object is not a credentials
container.
getCredentials
@NonNull
public <C extends Credentials> java.util.List<C> getCredentials(@NonNull
java.lang.Class<C> type,
@Nullable
hudson.model.ItemGroup itemGroup,
@Nullable
org.acegisecurity.Authentication authentication)
- Returns the credentials provided by this provider which are available to the specified
Authentication
for items in the specified ItemGroup
- Specified by:
getCredentials in class CredentialsProvider
- Parameters:
type - the type of credentials to return.itemGroup - the item group (if null assume Hudson.getInstance().authentication - the authentication (if null assume ACL.SYSTEM.
- Returns:
- the list of credentials.
getCredentials
@NonNull
public <C extends Credentials> java.util.List<C> getCredentials(@NonNull
java.lang.Class<C> type,
@NonNull
hudson.model.Item item,
@Nullable
org.acegisecurity.Authentication authentication)
- Returns the credentials provided by this provider which are available to the specified
Authentication
for the specified Item
- Overrides:
getCredentials in class CredentialsProvider
- Parameters:
type - the type of credentials to return.item - the item.authentication - the authentication (if null assume ACL.SYSTEM.
- Returns:
- the list of credentials.
Copyright © 2004-2012. All Rights Reserved.