Class UserCredentialsProvider.UserCredentialsProperty
java.lang.Object
hudson.model.UserProperty
com.cloudbees.plugins.credentials.UserCredentialsProvider.UserCredentialsProperty
- All Implemented Interfaces:
ExtensionPoint,Describable<UserProperty>,ReconfigurableDescribable<UserProperty>
- Enclosing class:
UserCredentialsProvider
Need a user property to hold the user's personal credentials.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classOur user property descriptor.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.UserProperty
user -
Constructor Summary
ConstructorsConstructorDescriptionUserCredentialsProperty(DomainCredentials[] domainCredentials) Constructor for stapler.UserCredentialsProperty(List<Credentials> credentials) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionGets all the user's credentials.<C extends Credentials>
List<C> getCredentials(Class<C> type) Helper method.Returns theDomainCredentialsThe map of domain credentials.reconfigure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject form) voidsetDomainCredentialsMap(Map<Domain, List<Credentials>> domainCredentialsMap) Sets the map of domain credentials.Methods inherited from class hudson.model.UserProperty
all, allByCategoryClass, getDescriptor, reconfigure, setUser
-
Constructor Details
-
UserCredentialsProperty
Deprecated.Backwards compatibility.- Parameters:
credentials- the credentials.
-
UserCredentialsProperty
Constructor for stapler.- Parameters:
domainCredentials- the credentials.- Since:
- 1.5
-
-
Method Details
-
getCredentials
Helper method.- Type Parameters:
C- type of credentials to get.- Parameters:
type- type of credentials to get.- Returns:
- the subset of the user's credentials that are of the specified type.
-
getCredentials
Gets all the user's credentials.- Returns:
- all the user's credentials.
-
getDomainCredentials
Returns theDomainCredentials- Returns:
- the
DomainCredentials - Since:
- 1.5
-
getDomainCredentialsMap
The map of domain credentials.- Returns:
- The map of domain credentials.
- Since:
- 1.5
-
setDomainCredentialsMap
Sets the map of domain credentials.- Parameters:
domainCredentialsMap- the map of domain credentials.- Since:
- 1.5
-
reconfigure
public UserProperty reconfigure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject form) - Specified by:
reconfigurein interfaceReconfigurableDescribable<UserProperty>- Overrides:
reconfigurein classUserProperty
-