public static class UserCredentialsProvider.UserCredentialsProperty extends UserProperty
| Modifier and Type | Class and Description |
|---|---|
static class |
UserCredentialsProvider.UserCredentialsProperty.DescriptorImpl
Our user property descriptor.
|
ExtensionPoint.LegacyInstancesAreScopedToHudsonuser| 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.
|
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.
|
all, getDescriptor, setUser@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 UserProperty reconfigure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject form) throws Descriptor.FormException
reconfigure in interface ReconfigurableDescribable<UserProperty>reconfigure in class UserPropertyDescriptor.FormExceptionCopyright © 2016–2021. All rights reserved.