public static class UserCredentialsProvider.UserCredentialsProperty
extends hudson.model.UserProperty
| Modifier and Type | Class and Description |
|---|---|
static class |
UserCredentialsProvider.UserCredentialsProperty.DescriptorImpl
Our user property descriptor.
|
| Constructor and Description |
|---|
UserCredentialsProperty(DomainCredentials[] domainCredentials)
Constructor for stapler.
|
UserCredentialsProperty(List<Credentials> credentials)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
List<Credentials> |
getCredentials()
Gets all the user's credentials.
|
<C extends Credentials> |
getCredentials(Class<C> type)
Helper method.
|
List<DomainCredentials> |
getDomainCredentials()
Returns the
DomainCredentials |
Map<Domain,List<Credentials>> |
getDomainCredentialsMap()
The map of domain credentials.
|
hudson.model.UserProperty |
reconfigure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject form) |
void |
setDomainCredentialsMap(Map<Domain,List<Credentials>> domainCredentialsMap)
Sets the map of domain credentials.
|
@Deprecated public UserCredentialsProperty(List<Credentials> credentials)
credentials - the credentials.@DataBoundConstructor public UserCredentialsProperty(DomainCredentials[] domainCredentials)
domainCredentials - the credentials.public <C extends Credentials> List<C> getCredentials(Class<C> type)
C - type of credentials to get.type - type of credentials to get.public List<Credentials> getCredentials()
public List<DomainCredentials> getDomainCredentials()
DomainCredentialsDomainCredentials@NonNull public Map<Domain,List<Credentials>> getDomainCredentialsMap()
public void setDomainCredentialsMap(Map<Domain,List<Credentials>> domainCredentialsMap)
domainCredentialsMap - the map of domain credentials.public hudson.model.UserProperty reconfigure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject form)
throws hudson.model.Descriptor.FormException
reconfigure in interface hudson.model.ReconfigurableDescribable<hudson.model.UserProperty>reconfigure in class hudson.model.UserPropertyhudson.model.Descriptor.FormExceptionCopyright © 2016–2018. All rights reserved.