@Extension public class SystemCredentialsProvider extends hudson.model.ManagementLink implements hudson.model.Describable<SystemCredentialsProvider>, hudson.model.Saveable, org.kohsuke.stapler.StaplerProxy
| Modifier and Type | Class and Description |
|---|---|
static class |
SystemCredentialsProvider.DescriptorImpl
Our management link descriptor.
|
static class |
SystemCredentialsProvider.ProviderImpl |
static class |
SystemCredentialsProvider.StoreImpl
Our
CredentialsStore. |
static class |
SystemCredentialsProvider.UserFacingAction |
| Constructor and Description |
|---|
SystemCredentialsProvider()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.kohsuke.stapler.HttpResponse |
doConfigSubmit(org.kohsuke.stapler.StaplerRequest req)
Handles form submission.
|
static hudson.XmlFile |
getConfigFile()
Gets the configuration file that this
CredentialsProvider uses to store its credentials. |
hudson.DescriptorExtensionList<Credentials,hudson.model.Descriptor<Credentials>> |
getCredentialDescriptors()
Gets all the credentials descriptors.
|
List<Credentials> |
getCredentials()
Get all the (
Domain.global()) credentials. |
String |
getDescription() |
hudson.model.Descriptor<SystemCredentialsProvider> |
getDescriptor() |
String |
getDisplayName() |
List<DomainCredentials> |
getDomainCredentials()
Get all the credentials.
|
Map<Domain,List<Credentials>> |
getDomainCredentialsMap()
Get all the credentials.
|
String |
getIconFileName() |
static SystemCredentialsProvider |
getInstance()
Gets the singleton instance.
|
hudson.DescriptorExtensionList<DomainSpecification,hudson.model.Descriptor<DomainSpecification>> |
getSpecificationDescriptors()
Gets all the
DomainSpecification descriptors. |
Object |
getTarget()
Only sysadmin can access this page.
|
String |
getUrlName() |
void |
save() |
void |
setDomainCredentialsMap(Map<Domain,List<Credentials>> domainCredentialsMap)
Set all the credentials.
|
public String getIconFileName()
getIconFileName in interface hudson.model.ActiongetIconFileName in class hudson.model.ManagementLinkpublic String getDisplayName()
getDisplayName in interface hudson.model.ActiongetDisplayName in interface hudson.model.ModelObjectpublic String getDescription()
getDescription in class hudson.model.ManagementLinkpublic String getUrlName()
getUrlName in interface hudson.model.ActiongetUrlName in class hudson.model.ManagementLinkpublic List<Credentials> getCredentials()
Domain.global()) credentials.Domain.global()) credentials.public List<DomainCredentials> getDomainCredentials()
@NonNull public Map<Domain,List<Credentials>> getDomainCredentialsMap()
public void setDomainCredentialsMap(Map<Domain,List<Credentials>> domainCredentialsMap)
domainCredentialsMap - all the credentials.public hudson.DescriptorExtensionList<Credentials,hudson.model.Descriptor<Credentials>> getCredentialDescriptors()
public hudson.DescriptorExtensionList<DomainSpecification,hudson.model.Descriptor<DomainSpecification>> getSpecificationDescriptors()
DomainSpecification descriptors.DomainSpecification descriptors.public hudson.model.Descriptor<SystemCredentialsProvider> getDescriptor()
getDescriptor in interface hudson.model.Describable<SystemCredentialsProvider>public Object getTarget()
getTarget in interface org.kohsuke.stapler.StaplerProxypublic org.kohsuke.stapler.HttpResponse doConfigSubmit(org.kohsuke.stapler.StaplerRequest req)
throws javax.servlet.ServletException,
IOException
req - the request.javax.servlet.ServletException - if something goes wrong.IOException - if something goes wrong.public void save()
throws IOException
save in interface hudson.model.SaveableIOExceptionpublic static hudson.XmlFile getConfigFile()
CredentialsProvider uses to store its credentials.CredentialsProvider uses to store its credentials.public static SystemCredentialsProvider getInstance()
Copyright © 2004-2014. All Rights Reserved.